From 541b4d1c7a6a4259240d25326d26f1e7c5184ce9 Mon Sep 17 00:00:00 2001 From: Don HO Date: Fri, 5 Feb 2021 15:53:07 +0100 Subject: [PATCH] Add new localization file abkhazian.xml --- .../installer/nativeLang/abkhazian.xml | 1354 +++++++++++++++++ PowerEditor/installer/nativeLang/french.xml | 2 +- .../installer/nsisInclude/langs4Npp.nsh | 6 + PowerEditor/src/Parameters.cpp | 2 + PowerEditor/src/localizationString.h | 3 +- 5 files changed, 1365 insertions(+), 2 deletions(-) create mode 100644 PowerEditor/installer/nativeLang/abkhazian.xml diff --git a/PowerEditor/installer/nativeLang/abkhazian.xml b/PowerEditor/installer/nativeLang/abkhazian.xml new file mode 100644 index 000000000..60f6086c8 --- /dev/null +++ b/PowerEditor/installer/nativeLang/abkhazian.xml @@ -0,0 +1,1354 @@ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/PowerEditor/installer/nativeLang/french.xml b/PowerEditor/installer/nativeLang/french.xml index 44ad0e8da..6bd86b02e 100644 --- a/PowerEditor/installer/nativeLang/french.xml +++ b/PowerEditor/installer/nativeLang/french.xml @@ -1,6 +1,6 @@ - +
diff --git a/PowerEditor/installer/nsisInclude/langs4Npp.nsh b/PowerEditor/installer/nsisInclude/langs4Npp.nsh index 97b6eec47..82afaad75 100644 --- a/PowerEditor/installer/nsisInclude/langs4Npp.nsh +++ b/PowerEditor/installer/nsisInclude/langs4Npp.nsh @@ -17,6 +17,9 @@ SectionGroup "Localization" localization SetOverwrite on + ${MementoUnselectedSection} "Abkhazian" abkhazian + CopyFiles "$PLUGINSDIR\nppLocalization\abkhazian.xml" "$INSTDIR\localization\abkhazian.xml" + ${MementoSectionEnd} ${MementoUnselectedSection} "Afrikaans" afrikaans CopyFiles "$PLUGINSDIR\nppLocalization\afrikaans.xml" "$INSTDIR\localization\afrikaans.xml" ${MementoSectionEnd} @@ -294,6 +297,9 @@ SectionGroup "Localization" localization SectionGroupEnd SectionGroup un.localization + Section un.abkhazian + Delete "$INSTDIR\localization\abkhazian.xml" + SectionEnd Section un.afrikaans Delete "$INSTDIR\localization\afrikaans.xml" SectionEnd diff --git a/PowerEditor/src/Parameters.cpp b/PowerEditor/src/Parameters.cpp index fef1f9338..db832be6c 100644 --- a/PowerEditor/src/Parameters.cpp +++ b/PowerEditor/src/Parameters.cpp @@ -4030,6 +4030,8 @@ generic_string NppParameters::getLocPathFromStr(const generic_string & localizat return TEXT("samogitian.xml"); if (localizationCode == TEXT("yue")) return TEXT("hongKongCantonese.xml"); + if (localizationCode == TEXT("ab") || localizationCode == TEXT("abk")) + return TEXT("abkhazian.xml"); return generic_string(); } diff --git a/PowerEditor/src/localizationString.h b/PowerEditor/src/localizationString.h index ae959c48e..a79d77044 100644 --- a/PowerEditor/src/localizationString.h +++ b/PowerEditor/src/localizationString.h @@ -109,5 +109,6 @@ LocalizationSwitcher::LocalizationDefinition localizationDefs[] = {TEXT("Vèneto"), TEXT("venetian.xml")}, {TEXT("Gaeilge"), TEXT("irish.xml")}, {TEXT("नेपाली"), TEXT("nepali.xml")}, - {TEXT("香港繁體"), TEXT("hongKongCantonese.xml")} + {TEXT("香港繁體"), TEXT("hongKongCantonese.xml")}, + {TEXT("Аԥсуа бызшәа"), TEXT("abkhazian.xml")} };