diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-07-17 14:16:31 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-07-17 14:35:21 (GMT) |
commit | b4d801bf4d6e664ad729e3e95b212b83cc0c784f (patch) | |
tree | 086991093228f4296c576d258c3418ae86e23d5b /tools/linguist/shared/ts.cpp | |
parent | 1d52548c21f9ca47e2ef02cd944b7640b0d4dd6b (diff) | |
download | Qt-b4d801bf4d6e664ad729e3e95b212b83cc0c784f.zip Qt-b4d801bf4d6e664ad729e3e95b212b83cc0c784f.tar.gz Qt-b4d801bf4d6e664ad729e3e95b212b83cc0c784f.tar.bz2 |
reorganize numerus form count normalization
replace implicit normalization of individual messages on file writeout
with global normalization which is called by the command line tools.
this should a) be faster and b) cover the most critical case: lrelease.
Diffstat (limited to 'tools/linguist/shared/ts.cpp')
-rw-r--r-- | tools/linguist/shared/ts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/linguist/shared/ts.cpp b/tools/linguist/shared/ts.cpp index 6c95dbd..a0ce727 100644 --- a/tools/linguist/shared/ts.cpp +++ b/tools/linguist/shared/ts.cpp @@ -693,8 +693,8 @@ bool saveTS(const Translator &translator, QIODevice &dev, ConversionData &cd, in t << " type=\"obsolete\""; if (msg.isPlural()) { t << ">"; - QStringList translns = translator.normalizedTranslations(msg, cd, &result); - for (int j = 0; j < qMax(1, translns.count()); ++j) { + const QStringList &translns = msg.translations(); + for (int j = 0; j < translns.count(); ++j) { t << "\n <numerusform"; writeVariants(t, " ", translns[j]); t << "</numerusform>"; |