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
ca79894b
Commit
ca79894b
authored
Apr 12, 2013
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
0816a678
6f47ec0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
trans/machine/google.py
trans/machine/google.py
+4
-1
trans/machine/tmserver.py
trans/machine/tmserver.py
+1
-1
No files found.
trans/machine/google.py
View file @
ca79894b
...
@@ -47,4 +47,7 @@ class GoogleTranslation(MachineTranslation):
...
@@ -47,4 +47,7 @@ class GoogleTranslation(MachineTranslation):
oe
=
'UTF-8'
oe
=
'UTF-8'
)
)
return
[(
response
[
0
][
0
][
0
],
100
,
self
.
name
,
text
)]
translation
=
' '
.
join
([
sentence
[
0
]
for
sentence
in
response
[
0
]])
source
=
' '
.
join
([
sentence
[
1
]
for
sentence
in
response
[
0
]])
return
[(
translation
,
100
,
self
.
name
,
source
)]
trans/machine/tmserver.py
View file @
ca79894b
...
@@ -59,7 +59,7 @@ class TMServerTranslation(MachineTranslation):
...
@@ -59,7 +59,7 @@ class TMServerTranslation(MachineTranslation):
url
=
'%s/tmserver/en/%s/unit/%s'
%
(
url
=
'%s/tmserver/en/%s/unit/%s'
%
(
MT_TMSERVER
.
rstrip
(
'/'
),
MT_TMSERVER
.
rstrip
(
'/'
),
urllib
.
quote
(
language
),
urllib
.
quote
(
language
),
urllib
.
quote
(
text
),
urllib
.
quote
(
text
.
encode
(
'utf-8'
)
),
)
)
response
=
self
.
json_req
(
url
)
response
=
self
.
json_req
(
url
)
...
...
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