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
d7b816af
Commit
d7b816af
authored
Nov 26, 2013
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
808654a8
11e64330
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
trans/checks/same.py
trans/checks/same.py
+4
-0
trans/machine/base.py
trans/machine/base.py
+2
-0
trans/machine/tmserver.py
trans/machine/tmserver.py
+1
-1
No files found.
trans/checks/same.py
View file @
d7b816af
...
@@ -164,6 +164,8 @@ SAME_BLACKLIST = frozenset((
...
@@ -164,6 +164,8 @@ SAME_BLACKLIST = frozenset((
'gammu'
,
'gammu'
,
'general'
,
'general'
,
'gentoo'
,
'gentoo'
,
'geocache'
,
'geocaching'
,
'gettext'
,
'gettext'
,
'global'
,
'global'
,
'gnu'
,
'gnu'
,
...
@@ -171,6 +173,7 @@ SAME_BLACKLIST = frozenset((
...
@@ -171,6 +173,7 @@ SAME_BLACKLIST = frozenset((
'gib'
,
'gib'
,
'git'
,
'git'
,
'gpl'
,
'gpl'
,
'gpx'
,
'graphic'
,
'graphic'
,
'graphics'
,
'graphics'
,
'gtk'
,
'gtk'
,
...
@@ -417,6 +420,7 @@ SAME_BLACKLIST = frozenset((
...
@@ -417,6 +420,7 @@ SAME_BLACKLIST = frozenset((
'source'
,
'source'
,
'spatial'
,
'spatial'
,
'spline'
,
'spline'
,
'sport'
,
'sql'
,
'sql'
,
'standard'
,
'standard'
,
'start'
,
'start'
,
...
...
trans/machine/base.py
View file @
d7b816af
...
@@ -190,6 +190,8 @@ class MachineTranslation(object):
...
@@ -190,6 +190,8 @@ class MachineTranslation(object):
Returns list of machine translations.
Returns list of machine translations.
'''
'''
language
=
self
.
convert_language
(
language
)
language
=
self
.
convert_language
(
language
)
if
text
==
''
:
return
[]
if
not
self
.
is_supported
(
language
):
if
not
self
.
is_supported
(
language
):
return
[]
return
[]
...
...
trans/machine/tmserver.py
View file @
d7b816af
...
@@ -69,7 +69,7 @@ class TMServerTranslation(MachineTranslation):
...
@@ -69,7 +69,7 @@ class TMServerTranslation(MachineTranslation):
self
.
url
,
self
.
url
,
urllib
.
quote
(
appsettings
.
SOURCE_LANGUAGE
),
urllib
.
quote
(
appsettings
.
SOURCE_LANGUAGE
),
urllib
.
quote
(
language
),
urllib
.
quote
(
language
),
urllib
.
quote
(
text
.
encode
(
'utf-8'
)),
urllib
.
quote
(
text
[:
500
]
.
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