From d05bf63840014907d17b9f7c366f3039a3f0cda1 Mon Sep 17 00:00:00 2001 From: Don HO Date: Wed, 29 Apr 2020 02:34:27 +0200 Subject: [PATCH] Add Nepali localization --- PowerEditor/installer/nativeLang/nepali.xml | 1270 +++++++++++++++++ .../installer/nsisInclude/langs4Npp.nsh | 6 + PowerEditor/src/Parameters.cpp | 2 + PowerEditor/src/localizationString.h | 3 +- 4 files changed, 1280 insertions(+), 1 deletion(-) create mode 100644 PowerEditor/installer/nativeLang/nepali.xml diff --git a/PowerEditor/installer/nativeLang/nepali.xml b/PowerEditor/installer/nativeLang/nepali.xml new file mode 100644 index 00000000..513d7757 --- /dev/null +++ b/PowerEditor/installer/nativeLang/nepali.xml @@ -0,0 +1,1270 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <डिलिमिटर title="डिलिमिटर"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <खोल्नुहोस्InAdminModeWithoutबन्दCurrent title="बचत असफल भयो" message="फाईल बचत गर्न सकिदैन र यो सुरक्षित हुन सक्छ. +के तपाइँ प्रशासक मोडमा नोटप्याड ++ सुरू गर्न चाहनुहुन्छ?"/> + <खोल्नुहोस्InAdminModeFailed title="प्रशासक मोडमा खोल्नुहोस्" message="प्रशासक मोडमा नोटप्याड ++ खोल्न सकिदैन।"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/PowerEditor/installer/nsisInclude/langs4Npp.nsh b/PowerEditor/installer/nsisInclude/langs4Npp.nsh index a181ff14..503f5e30 100644 --- a/PowerEditor/installer/nsisInclude/langs4Npp.nsh +++ b/PowerEditor/installer/nsisInclude/langs4Npp.nsh @@ -295,6 +295,9 @@ SectionGroup "Localization" localization ${MementoUnselectedSection} "Venetian" venetian CopyFiles "$PLUGINSDIR\nppLocalization\venetian.xml" "$INSTDIR\localization\venetian.xml" ${MementoSectionEnd} + ${MementoUnselectedSection} "Nepali" nepali + CopyFiles "$PLUGINSDIR\nppLocalization\nepali.xml" "$INSTDIR\localization\nepali.xml" + ${MementoSectionEnd} SectionGroupEnd SectionGroup un.localization @@ -566,4 +569,7 @@ SectionGroup un.localization Section un.venetian Delete "$INSTDIR\localization\venetian.xml" SectionEnd + Section un.nepali + Delete "$INSTDIR\localization\nepali.xml" + SectionEnd SectionGroupEnd diff --git a/PowerEditor/src/Parameters.cpp b/PowerEditor/src/Parameters.cpp index a2d50b10..63573446 100644 --- a/PowerEditor/src/Parameters.cpp +++ b/PowerEditor/src/Parameters.cpp @@ -3931,6 +3931,8 @@ generic_string NppParameters::getLocPathFromStr(const generic_string & localizat return TEXT("welsh.xml"); if (localizationCode == TEXT("zu") || localizationCode == TEXT("zu-za")) return TEXT("zulu.xml"); + if (localizationCode == TEXT("ne") || localizationCode == TEXT("nep")) + return TEXT("nepali.xml"); return generic_string(); } diff --git a/PowerEditor/src/localizationString.h b/PowerEditor/src/localizationString.h index a61251f7..76890c0c 100644 --- a/PowerEditor/src/localizationString.h +++ b/PowerEditor/src/localizationString.h @@ -118,5 +118,6 @@ LocalizationSwitcher::LocalizationDefinition localizationDefs[] = {TEXT("Pig latin"), TEXT("piglatin.xml")}, {TEXT("Zulu"), TEXT("zulu.xml")}, {TEXT("Vèneto"), TEXT("venetian.xml")}, - {TEXT("Gaeilge"), TEXT("irish.xml")} + {TEXT("Gaeilge"), TEXT("irish.xml")}, + {TEXT("नेपाली"), TEXT("nepali.xml")} };