summaryrefslogtreecommitdiff
path: root/solenv/bin
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-21 14:31:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-21 14:31:24 +0100
commite87108c5e769749e9ea2923e18250a276ed8a9a4 (patch)
tree0ec4f904ec1a574c2a3f0e6606bd3f273607ad70 /solenv/bin
parentb761db42f542b2627480db47edfb656b47fffd04 (diff)
further bodge bad translations with mismatching starting newlines
Change-Id: I91d559596dcfbca603613bc4e9db7fe3348984c6
Diffstat (limited to 'solenv/bin')
-rwxr-xr-xsolenv/bin/interim-update-module-for-gettext4
1 files changed, 4 insertions, 0 deletions
diff --git a/solenv/bin/interim-update-module-for-gettext b/solenv/bin/interim-update-module-for-gettext
index 02508032aea3..67aecd9b6848 100755
--- a/solenv/bin/interim-update-module-for-gettext
+++ b/solenv/bin/interim-update-module-for-gettext
@@ -65,6 +65,10 @@ if npos > 0:
comments[-1] = polib.genKeyId(keyid.encode('utf-8'))
entry.comment = "\n".join(comments)
if (len(entry.msgid) and len(entry.msgstr)):
+ if (entry.msgid[0] == '\n' and entry.msgstr[0] != '\n'):
+ entry.msgstr = '\n' + entry.msgstr
+ elif (entry.msgid[0] != '\n' and entry.msgstr[0] == '\n'):
+ entry.msgstr = ' ' + entry.msgstr
if (entry.msgid[-1] == '\n' and entry.msgstr[-1] != '\n'):
entry.msgstr = entry.msgstr + '\n'
elif (entry.msgid[-1] != '\n' and entry.msgstr[-1] == '\n'):