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
450fc050
Commit
450fc050
authored
Mar 17, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sort translate-toolkit imports
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
04d2d17b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
weblate/trans/formats.py
weblate/trans/formats.py
+7
-8
No files found.
weblate/trans/formats.py
View file @
450fc050
...
...
@@ -36,16 +36,15 @@ import six
from
django.utils.translation
import
ugettext_lazy
as
_
from
translate.convert
import
po2php
from
translate.storage.base
import
TranslationStore
from
translate.storage.lisa
import
LISAfile
from
translate.storage.properties
import
propunit
,
propfile
from
translate.storage.xliff
import
xlifffile
,
ID_SEPARATOR
from
translate.misc
import
quote
from
translate.storage.lisa
import
LISAfile
from
translate.storage.mo
import
mofile
,
mounit
from
translate.storage.php
import
phpunit
,
phpfile
from
translate.storage.po
import
pounit
,
pofile
from
translate.storage.poheader
import
default_header
from
translate.storage.p
hp
import
phpunit
,
ph
pfile
from
translate.storage.p
roperties
import
propunit
,
pro
pfile
from
translate.storage.ts2
import
tsunit
,
tsfile
from
translate.storage
import
mo
from
translate.storage
.xliff
import
xlifffile
,
ID_SEPARATOR
from
translate.storage
import
factory
from
weblate.trans.util
import
get_string
,
join_plural
,
add_configuration_error
...
...
@@ -846,11 +845,11 @@ class PoFormat(FileFormat):
'''
Generates compiled messages file.
'''
outputfile
=
mo
.
mo
file
()
outputfile
=
mofile
()
for
unit
in
self
.
store
.
units
:
if
not
unit
.
istranslated
()
and
not
unit
.
isheader
():
continue
mounit
=
mo
.
mo
unit
()
mounit
=
mounit
()
if
unit
.
isheader
():
mounit
.
source
=
""
else
:
...
...
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