diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-03-31 09:30:49 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-03-31 16:37:13 (GMT) |
commit | 2aad03302a80f609359ba6bb29aab9fdad08d608 (patch) | |
tree | 01354c1bc7202a88e5363dd0e56e363fc990ba43 /tools/linguist | |
parent | e07e8a02aab1dec4f91323d2912a54b3a78b075a (diff) | |
download | Qt-2aad03302a80f609359ba6bb29aab9fdad08d608.zip Qt-2aad03302a80f609359ba6bb29aab9fdad08d608.tar.gz Qt-2aad03302a80f609359ba6bb29aab9fdad08d608.tar.bz2 |
fix writing of length variant separators in the singular case
Diffstat (limited to 'tools/linguist')
-rw-r--r-- | tools/linguist/shared/po.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/linguist/shared/po.cpp b/tools/linguist/shared/po.cpp index 19e2f13..bdd8c25 100644 --- a/tools/linguist/shared/po.cpp +++ b/tools/linguist/shared/po.cpp @@ -671,6 +671,8 @@ bool savePO(const Translator &translator, QIODevice &dev, ConversionData &cd) out << poEscapedString(prefix, QLatin1String("msgid"), noWrap, msg.sourceText()); if (!msg.isPlural()) { QString transl = msg.translation(); + transl.replace(QChar(Translator::BinaryVariantSeparator), + QChar(Translator::TextVariantSeparator)); out << poEscapedString(prefix, QLatin1String("msgstr"), noWrap, transl); } else { QString plural = msg.extra(QLatin1String("po-msgid_plural")); |