summaryrefslogtreecommitdiffstats
path: root/tools/linguist
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-10-21 12:41:32 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-10-22 08:40:42 (GMT)
commite546f7b1bfe98436c26fb6aa11a88053ae4eb185 (patch)
tree1e0238a6c988f9de18b0db76ab8df4e2158b6d6e /tools/linguist
parent38f7a788242fcc5ed7e75291bffd2b1b16d76f76 (diff)
downloadQt-e546f7b1bfe98436c26fb6aa11a88053ae4eb185.zip
Qt-e546f7b1bfe98436c26fb6aa11a88053ae4eb185.tar.gz
Qt-e546f7b1bfe98436c26fb6aa11a88053ae4eb185.tar.bz2
actually guess the target language from the file name
--help says it does, but it didn't really.
Diffstat (limited to 'tools/linguist')
-rw-r--r--tools/linguist/lupdate/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/linguist/lupdate/main.cpp b/tools/linguist/lupdate/main.cpp
index 6b554e0..bdaec4f 100644
--- a/tools/linguist/lupdate/main.cpp
+++ b/tools/linguist/lupdate/main.cpp
@@ -160,6 +160,8 @@ static void updateTsFiles(const Translator &fetchedTor, const QStringList &tsFil
tor.setCodecName(codecForTr);
if (!targetLanguage.isEmpty())
tor.setLanguageCode(targetLanguage);
+ else
+ tor.setLanguageCode(Translator::guessLanguageCodeFromFileName(fileName));
if (!sourceLanguage.isEmpty())
tor.setSourceLanguageCode(sourceLanguage);
}