summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <tails@boum.org>2014-03-17 18:42:36 +0000
committerTails developers <tails@boum.org>2014-03-17 18:42:36 +0000
commit708420a1f7c086f85b554f269c098eab6a676a33 (patch)
treeec3b454472e6434d5f750f32c7bdcd8c128bb58a
parent4f26df38ad27ec7cf4814458046351a2a2cf6ddb (diff)
Wrap PO files we create/update.
This avoids seeing poedit users reformat every PO file they touch.
-rw-r--r--po/mki18n.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/po/mki18n.py b/po/mki18n.py
index 932e0a1..f57943d 100644
--- a/po/mki18n.py
+++ b/po/mki18n.py
@@ -145,7 +145,7 @@ def makePO(applicationDirectoryPath, applicationDomain=None, verbose=0) :
# -s : sort output by string content (easier to use when we need to merge several .po files)
# --files-from=app.fil : The list of files is taken from the file: app.fil
# --output= : specifies the name of the output file (using a .pot extension)
- cmd = 'xgettext -s --no-wrap --files-from=app.fil --output=messages.pot --keyword=translate_and_brand'
+ cmd = 'xgettext -s --files-from=app.fil --output=messages.pot --keyword=translate_and_brand'
if verbose: print cmd
os.system(cmd)
@@ -157,7 +157,7 @@ def makePO(applicationDirectoryPath, applicationDomain=None, verbose=0) :
else:
langPOfileName = "%s.po" % (langCode)
if os.path.exists(langPOfileName):
- cmd = 'msgmerge -s --no-wrap "%s" messages.pot > "%s.new"' % (langPOfileName, langPOfileName)
+ cmd = 'msgmerge -s "%s" messages.pot > "%s.new"' % (langPOfileName, langPOfileName)
if verbose: print cmd
os.system(cmd)
os.chdir(currentDir)
@@ -188,7 +188,7 @@ def catPO(applicationDirectoryPath, listOf_extraPo, applicationDomain=None, targ
fileList = ''
for fileName in listOf_extraPo:
fileList += ("%s_%s.po " % (fileName,langCode))
- cmd = "msgcat -s --no-wrap %s %s > %s.cat" % (langPOfileName, fileList, langPOfileName)
+ cmd = "msgcat -s %s %s > %s.cat" % (langPOfileName, fileList, langPOfileName)
if verbose: print cmd
os.system(cmd)
if targetDir is None: