From 7fee33928b8cfe04f3e6f265f95462c176acc28f Mon Sep 17 00:00:00 2001 From: Manu Date: Sun, 30 Jul 2017 23:27:29 +0800 Subject: [PATCH] Avoid wrapping long text in multiple lines. --- static_gettext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static_gettext.py b/static_gettext.py index 69d1e7e..e72cc6c 100755 --- a/static_gettext.py +++ b/static_gettext.py @@ -37,9 +37,9 @@ class Localizer( object ): ESCAPE_RE = re.compile( r'(\')' ) BLANKOUT_RE = re.compile( r'\S' ) - XGETTEXT_CMD = u'xgettext -L Perl --from-code=utf-8 -o - -' + XGETTEXT_CMD = u'xgettext -L Perl --no-wrap --from-code=utf-8 -o - -' MSGUNIQ_CMD = u'msguniq --to-code=utf-8 "%s"' - MSGMERGE_CMD = u'msgmerge -q "%s" "%s"' + MSGMERGE_CMD = u'msgmerge -q --no-wrap "%s" "%s"' def __init__( self, domain, inputbase, localebase, outputbase, languages, extensions=None ): self.dir = dir