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
76ee5555
Commit
76ee5555
authored
Apr 11, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not confuse machine translation source with translation source
Let's name this service in this case.
parent
982fb858
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
trans/machine/base.py
trans/machine/base.py
+1
-1
trans/tests/js_views.py
trans/tests/js_views.py
+2
-2
weblate/html/translate.html
weblate/html/translate.html
+1
-1
weblate/media/loader.js
weblate/media/loader.js
+1
-1
No files found.
trans/machine/base.py
View file @
76ee5555
...
...
@@ -176,7 +176,7 @@ class MachineTranslation(object):
try
:
translations
=
self
.
download_translations
(
language
,
text
,
unit
)
return
[{
'text'
:
trans
[
0
],
'quality'
:
trans
[
1
],
's
our
ce'
:
trans
[
2
]}
return
[{
'text'
:
trans
[
0
],
'quality'
:
trans
[
1
],
's
ervi
ce'
:
trans
[
2
]}
for
trans
in
translations
]
except
Exception
as
exc
:
weblate
.
logger
.
error
(
...
...
trans/tests/js_views.py
View file @
76ee5555
...
...
@@ -58,8 +58,8 @@ class JSViewsTest(ViewTestCase):
self
.
assertEqual
(
data
[
'translations'
],
[
{
'quality'
:
100
,
's
our
ce'
:
'Dummy'
,
'text'
:
'Nazdar světe!'
},
{
'quality'
:
100
,
's
our
ce'
:
'Dummy'
,
'text'
:
'Ahoj světe!'
},
{
'quality'
:
100
,
's
ervi
ce'
:
'Dummy'
,
'text'
:
'Nazdar světe!'
},
{
'quality'
:
100
,
's
ervi
ce'
:
'Dummy'
,
'text'
:
'Ahoj světe!'
},
]
)
...
...
weblate/html/translate.html
View file @
76ee5555
...
...
@@ -196,7 +196,7 @@
<thead>
<tr>
<th>
{% trans "Translation" %}
</th>
<th>
{% trans "S
our
ce" %}
</th>
<th>
{% trans "S
ervi
ce" %}
</th>
<th></th>
<tr>
</thead>
...
...
weblate/media/loader.js
View file @
76ee5555
...
...
@@ -64,7 +64,7 @@ function process_machine_translation(data, textStatus, jqXHR) {
dec_loading
();
if
(
data
.
responseStatus
==
200
)
{
data
.
translations
.
forEach
(
function
(
el
,
idx
,
ar
)
{
var
code
=
$
(
'
<tr data-quality=
'
+
el
.
quality
+
'
"><td class="translatetext target">
'
+
el
.
text
+
'
</td><td>
'
+
el
.
s
our
ce
+
'
</td><td><a class="copymt small-button">
'
+
gettext
(
'
Copy
'
)
+
'
</a></td></tr>
'
);
var
code
=
$
(
'
<tr data-quality=
'
+
el
.
quality
+
'
"><td class="translatetext target">
'
+
el
.
text
+
'
</td><td>
'
+
el
.
s
ervi
ce
+
'
</td><td><a class="copymt small-button">
'
+
gettext
(
'
Copy
'
)
+
'
</a></td></tr>
'
);
$
(
'
#machine-translations
'
).
append
(
code
);
});
$
(
'
a.copymt
'
).
button
({
text
:
true
,
icons
:
{
primary
:
"
ui-icon-copy
"
}}).
click
(
function
()
{
...
...
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