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
3d452732
Commit
3d452732
authored
Mar 11, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing import and fix lookup
parent
8ee6446b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
trans/formats.py
trans/formats.py
+3
-4
No files found.
trans/formats.py
View file @
3d452732
...
...
@@ -23,6 +23,7 @@ File format specific behavior.
from
django.utils.translation
import
ugettext_lazy
as
_
from
translate.storage.lisa
import
LISAfile
from
translate.storage
import
factory
from
trans.utils
import
get_source
import
importlib
import
__builtin__
...
...
@@ -137,8 +138,6 @@ class FileFormat(object):
if
pounit
is
not
None
:
return
(
pounit
,
True
)
add
=
True
found
=
pounit
is
not
None
else
:
# Find all units with same source
found_units
=
self
.
store
.
findunits
(
source
)
...
...
@@ -149,8 +148,8 @@ class FileFormat(object):
return
(
pounit
,
False
)
else
:
# Fallback to manual find for value based files
for
pounit
in
store
.
units
:
if
get_source
(
pounit
)
==
s
rc
:
for
pounit
in
s
elf
.
s
tore
.
units
:
if
get_source
(
pounit
)
==
s
ource
:
return
(
pounit
,
False
)
return
(
None
,
False
)
...
...
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