Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix usage of i18nc with arguments

Halla Rempt8d4077018be2
diff --git a/plugins/dockers/textproperties/LocaleHandler.cpp b/plugins/dockers/textproperties/LocaleHandler.cpp
index a554f9ad77..58a3332993 100644
--- a/plugins/dockers/textproperties/LocaleHandler.cpp
+++ b/plugins/dockers/textproperties/LocaleHandler.cpp
@@ -23,13 +23,13 @@ const QString localeName (const KoWritingSystemUtils::Bcp47Locale &locale) {
if (!lang.isEmpty() && lang != "C") {
if (!locale.regionTag.isEmpty()) {
if (!locale.variantTags.isEmpty()) {
- name = i18nc("language, region, variant", "%1, %2, variant: %3").arg(lang).arg(region).arg(locale.variantTags.join("-"));
+ name = i18nc("language, region, variant", "%1, %2, variant: %3", lang, region, locale.variantTags.join("-"));
} else {
- name = i18nc("language, region", "%1, %2").arg(lang).arg(region);
+ name = i18nc("language, variant", "%1, variant: %2", lang, region);
}
} else {
if (!locale.variantTags.isEmpty()) {
- name = i18nc("language, variant", "%1, variant: %3").arg(lang).arg(locale.variantTags.join("-"));
+ name = i18nc("language, variant", "%1, variant: %2", lang, locale.variantTags.join("-"));
} else {
name = lang;
}