From 2aad03302a80f609359ba6bb29aab9fdad08d608 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 31 Mar 2010 11:30:49 +0200 Subject: fix writing of length variant separators in the singular case --- tools/linguist/shared/po.cpp | 2 ++ 1 file changed, 2 insertions(+) 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")); -- cgit v0.12