Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
778001e6
Commit
778001e6
authored
Nov 07, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better displaying of RTL languages in related strings
parent
4f01248d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
weblate/html/js/other.html
weblate/html/js/other.html
+1
-1
weblate/html/js/similar.html
weblate/html/js/similar.html
+1
-1
weblate/html/translate.html
weblate/html/translate.html
+2
-7
weblate/lang/models.py
weblate/lang/models.py
+3
-0
weblate/media/css/style.css
weblate/media/css/style.css
+4
-1
No files found.
weblate/html/js/other.html
View file @
778001e6
...
...
@@ -10,7 +10,7 @@
<tr>
<td>
{{ item.translation.subproject }}
</td>
<td
class=
"translatetext"
><a
href=
"{{ item.get_absolute_url }}"
>
{{ item.source|fmttranslation }}
</a></td>
<td
class=
"translatetext"
><a
href=
"{{ item.get_absolute_url }}"
>
{{ item.target|fmttranslationdiff:unit }}
</a></td>
<td
class=
"translatetext"
{{
item
.
translation
.
language
.
get_html
}}
><a
href=
"{{ item.get_absolute_url }}"
>
{{ item.target|fmttranslationdiff:unit }}
</a></td>
<td>
{% include "unit-state.html" %}
</td>
<td>
{% if perms.trans.save_translation %}
...
...
weblate/html/js/similar.html
View file @
778001e6
...
...
@@ -10,7 +10,7 @@
<tr>
<td>
{{ item.translation.subproject }}
</td>
<td
class=
"translatetext"
><a
href=
"{{ item.get_absolute_url }}"
>
{{ item.source|fmttranslation }}
</a></td>
<td
class=
"translatetext"
><a
href=
"{{ item.get_absolute_url }}"
>
{{ item.target|fmttranslation:item.translation.language }}
</a></td>
<td
class=
"translatetext"
{{
item
.
translation
.
language
.
get_html
}}
><a
href=
"{{ item.get_absolute_url }}"
>
{{ item.target|fmttranslation:item.translation.language }}
</a></td>
<td>
{% include "unit-state.html" %}
</td>
</tr>
{% endfor %}
...
...
weblate/html/translate.html
View file @
778001e6
...
...
@@ -159,15 +159,10 @@
</thead>
<tbody>
{% for item in unit.nearby %}
<tr>
<tr
{%
if
unit.position =
=
item
.
position
%}
class=
"current_translation"
{%
endif
%}
>
<td
class=
"number"
><a
href=
"{{ item.get_absolute_url }}"
>
{{ item.position }}
</a></td>
{% if unit.position == item.position %}
<td
class=
"translatetext current_translation"
><a
href=
"{{ item.get_absolute_url }}"
>
{{ item.source|fmttranslation }}
</a></td>
<td
class=
"translatetext current_translation"
><a
href=
"{{ item.get_absolute_url }}"
>
{{ item.target|fmttranslation:unit.translation.language }}
</a></td>
{% else %}
<td
class=
"translatetext"
><a
href=
"{{ item.get_absolute_url }}"
>
{{ item.source|fmttranslation }}
</a></td>
<td
class=
"translatetext"
><a
href=
"{{ item.get_absolute_url }}"
>
{{ item.target|fmttranslation:unit.translation.language }}
</a></td>
{% endif %}
<td
class=
"translatetext"
{{
item
.
translation
.
language
.
get_html
}}
><a
href=
"{{ item.get_absolute_url }}"
>
{{ item.target|fmttranslation:unit.translation.language }}
</a></td>
<td>
{% include "unit-state.html" %}
</td>
</tr>
{% endfor %}
...
...
weblate/lang/models.py
View file @
778001e6
...
...
@@ -375,3 +375,6 @@ class Language(models.Model):
if
translations
[
'total__sum'
]
==
0
:
return
0
return
round
(
translations
[
'translated__sum'
]
*
100.0
/
translations
[
'total__sum'
],
1
)
def
get_html
(
self
):
return
'lang="%s" dir="%s"'
%
(
self
.
code
,
self
.
direction
)
weblate/media/css/style.css
View file @
778001e6
...
...
@@ -60,7 +60,10 @@ ul.breadcrumbs li {
.translatetext
{
background-color
:
#eee
;
}
.current_translation
{
.translatetext
a
,
.translatetext
a
span
{
display
:
block
;
}
tr
.current_translation
td
.translatetext
{
background-color
:
#ddd
;
}
.translation_comment
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment