summaryrefslogtreecommitdiffstats
path: root/tools/linguist/lupdate
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-07-17 14:16:31 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-07-17 14:35:21 (GMT)
commitb4d801bf4d6e664ad729e3e95b212b83cc0c784f (patch)
tree086991093228f4296c576d258c3418ae86e23d5b /tools/linguist/lupdate
parent1d52548c21f9ca47e2ef02cd944b7640b0d4dd6b (diff)
downloadQt-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/lupdate')
-rw-r--r--tools/linguist/lupdate/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/linguist/lupdate/main.cpp b/tools/linguist/lupdate/main.cpp
index 78e5b5f..cedc01e 100644
--- a/tools/linguist/lupdate/main.cpp
+++ b/tools/linguist/lupdate/main.cpp
@@ -199,6 +199,11 @@ static void updateTsFiles(const Translator &fetchedTor, const QStringList &tsFil
out.stripObsoleteMessages();
out.stripEmptyContexts();
+ out.normalizeTranslations(cd);
+ if (!cd.errors().isEmpty()) {
+ printOut(cd.error());
+ cd.clearErrors();
+ }
if (!out.save(fileName, cd, QLatin1String("auto"))) {
printOut(cd.error());
*fail = true;