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
a67a758d
Commit
a67a758d
authored
Jan 13, 2015
by
Daniele Bartocci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #633
Updated context fetching for XLIFF format
parent
8ea44a59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
weblate/trans/formats.py
weblate/trans/formats.py
+11
-1
No files found.
weblate/trans/formats.py
View file @
a67a758d
...
...
@@ -458,8 +458,18 @@ class FileFormat(object):
# Find is broken for propfile, ignore results
if
len
(
found_units
)
>
0
and
not
isinstance
(
self
.
store
,
propfile
):
for
ttkit_unit
in
found_units
:
# XLIFF is special in ttkit - it uses locations for what
# is context in other formats
if
isinstance
(
ttkit_unit
,
xliffunit
):
ttkit_unit_context
=
ttkit_unit
.
getlocations
()
if
len
(
ttkit_unit
.
getlocations
())
==
0
:
ttkit_unit_context
=
''
else
:
ttkit_unit_context
=
ttkit_unit
.
getlocations
()[
0
]
else
:
ttkit_unit_context
=
ttkit_unit
.
getcontext
()
# Does context match?
if
ttkit_unit
.
getcontext
()
==
context
:
if
ttkit_unit
_context
==
context
:
return
(
FileUnit
(
ttkit_unit
),
False
)
else
:
# Fallback to manual find for value based files
...
...
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