diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2021-04-19 10:51:52 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2022-11-15 15:12:11 +0100 |
commit | 12a311eb3492635e3d7307fd8ebd3aa1932c2443 (patch) | |
tree | 83f710e26be416656552ad227a704154e4de88b4 /src/linguist/shared/po.cpp | |
parent | 802684fe2381a17870ad3761de570d2dfcfbdf37 (diff) |
Nomenclature change: country -> territory
In line with the recent change in QLocale's nomenclature, do the same
in Linguist. In the process, obtain a list of territory enum values
sorted by territory name a little more efficiently, bypassing an
intermediary unsorted list of territory enum values.
Change-Id: I18fed74499312f0b502bc8a93fbb2a69c65bca05
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/linguist/shared/po.cpp')
-rw-r--r-- | src/linguist/shared/po.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linguist/shared/po.cpp b/src/linguist/shared/po.cpp index 3a0742c53..1da8b95d2 100644 --- a/src/linguist/shared/po.cpp +++ b/src/linguist/shared/po.cpp @@ -730,7 +730,7 @@ bool savePO(const Translator &translator, QIODevice &dev, ConversionData &) if (!translator.languageCode().isEmpty()) { QLocale::Language l; QLocale::Territory c; - Translator::languageAndCountry(translator.languageCode(), &l, &c); + Translator::languageAndTerritory(translator.languageCode(), &l, &c); const char *gettextRules; if (getNumerusInfo(l, c, 0, 0, &gettextRules)) addPoHeader(headers, hdrOrder, "Plural-Forms", QLatin1String(gettextRules)); |