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
f13a2574
Commit
f13a2574
authored
Mar 12, 2015
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
a7f03add
ab6c2be2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
weblate/trans/checks/format.py
weblate/trans/checks/format.py
+1
-1
weblate/trans/machine/mymemory.py
weblate/trans/machine/mymemory.py
+1
-1
No files found.
weblate/trans/checks/format.py
View file @
f13a2574
...
...
@@ -168,7 +168,7 @@ class BaseFormatCheck(TargetCheck):
src_matches
=
self
.
get_cache
(
unit
,
cache_slot
)
# New style cache
if
type
(
src_matches
)
is
tuple
:
if
isinstance
(
src_matches
,
tuple
)
:
uses_position
,
src_matches
=
src_matches
else
:
src_matches
=
None
...
...
weblate/trans/machine/mymemory.py
View file @
f13a2574
...
...
@@ -46,7 +46,7 @@ class MyMemoryTranslation(MachineTranslation):
'''
Reformats match to (translation, quality) tuple.
'''
if
type
(
match
[
'quality'
])
is
int
:
if
isinstance
(
match
[
'quality'
],
int
)
:
quality
=
match
[
'quality'
]
elif
match
[
'quality'
]
is
not
None
and
match
[
'quality'
].
isdigit
():
quality
=
int
(
match
[
'quality'
])
...
...
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