Add Nepali localization

This commit is contained in:
Don HO 2020-04-29 02:34:27 +02:00
parent 66c882a6d5
commit d05bf63840
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
4 changed files with 1280 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -295,6 +295,9 @@ SectionGroup "Localization" localization
${MementoUnselectedSection} "Venetian" venetian ${MementoUnselectedSection} "Venetian" venetian
CopyFiles "$PLUGINSDIR\nppLocalization\venetian.xml" "$INSTDIR\localization\venetian.xml" CopyFiles "$PLUGINSDIR\nppLocalization\venetian.xml" "$INSTDIR\localization\venetian.xml"
${MementoSectionEnd} ${MementoSectionEnd}
${MementoUnselectedSection} "Nepali" nepali
CopyFiles "$PLUGINSDIR\nppLocalization\nepali.xml" "$INSTDIR\localization\nepali.xml"
${MementoSectionEnd}
SectionGroupEnd SectionGroupEnd
SectionGroup un.localization SectionGroup un.localization
@ -566,4 +569,7 @@ SectionGroup un.localization
Section un.venetian Section un.venetian
Delete "$INSTDIR\localization\venetian.xml" Delete "$INSTDIR\localization\venetian.xml"
SectionEnd SectionEnd
Section un.nepali
Delete "$INSTDIR\localization\nepali.xml"
SectionEnd
SectionGroupEnd SectionGroupEnd

View File

@ -3931,6 +3931,8 @@ generic_string NppParameters::getLocPathFromStr(const generic_string & localizat
return TEXT("welsh.xml"); return TEXT("welsh.xml");
if (localizationCode == TEXT("zu") || localizationCode == TEXT("zu-za")) if (localizationCode == TEXT("zu") || localizationCode == TEXT("zu-za"))
return TEXT("zulu.xml"); return TEXT("zulu.xml");
if (localizationCode == TEXT("ne") || localizationCode == TEXT("nep"))
return TEXT("nepali.xml");
return generic_string(); return generic_string();
} }

View File

@ -118,5 +118,6 @@ LocalizationSwitcher::LocalizationDefinition localizationDefs[] =
{TEXT("Pig latin"), TEXT("piglatin.xml")}, {TEXT("Pig latin"), TEXT("piglatin.xml")},
{TEXT("Zulu"), TEXT("zulu.xml")}, {TEXT("Zulu"), TEXT("zulu.xml")},
{TEXT("Vèneto"), TEXT("venetian.xml")}, {TEXT("Vèneto"), TEXT("venetian.xml")},
{TEXT("Gaeilge"), TEXT("irish.xml")} {TEXT("Gaeilge"), TEXT("irish.xml")},
{TEXT("नेपाली"), TEXT("nepali.xml")}
}; };