Skip to content

Commit

Permalink
Remove BOM from 2 localization files
Browse files Browse the repository at this point in the history
- corrected xml encoding from UTF8 with BOM -> required UTF8 for zulu and kurdish
- added zulu to localization list, see also notepad-plus-plus#5209
- space -> tab in localizationString.h according to the rest of the list

Close notepad-plus-plus#5209, close notepad-plus-plus#5397
  • Loading branch information
chcg authored and polluks committed Jun 5, 2019
1 parent 16a5845 commit e2ae988
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions PowerEditor/Test/FunctionList/cpp/unitTest
Original file line number Diff line number Diff line change
Expand Up @@ -3773,6 +3773,8 @@ generic_string NppParameters::getLocPathFromStr(const generic_string & localizat
return TEXT("vietnamese.xml");
if (localizationCode == TEXT("cy-gb"))
return TEXT("welsh.xml");
if (localizationCode == TEXT("zu") || localizationCode == TEXT("zu-za"))
return TEXT("zulu.xml");

return generic_string();
}
Expand Down
2 changes: 1 addition & 1 deletion PowerEditor/installer/nativeLang/kurdish.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<NotepadPlus>
<Native-Langue name="كوردی" RTL="yes" filename="kurdish.xml" version="7.5">
<Menu>
Expand Down
2 changes: 1 addition & 1 deletion PowerEditor/installer/nativeLang/zulu.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<!--
***********************************************************************************
zulu language binary translations file for Notepad++ ::
Expand Down
2 changes: 2 additions & 0 deletions PowerEditor/src/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3926,6 +3926,8 @@ generic_string NppParameters::getLocPathFromStr(const generic_string & localizat
return TEXT("vietnamese.xml");
if (localizationCode == TEXT("cy-gb"))
return TEXT("welsh.xml");
if (localizationCode == TEXT("zu") || localizationCode == TEXT("zu-za"))
return TEXT("zulu.xml");

return generic_string();
}
Expand Down
2 changes: 1 addition & 1 deletion PowerEditor/src/localizationString.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,5 @@ LocalizationSwitcher::LocalizationDefinition localizationDefs[] =
{TEXT("Brezhoneg"), TEXT("breton.xml")},
{TEXT("کوردی‬"), TEXT("kurdish.xml")},
{TEXT("Pig latin"), TEXT("piglatin.xml")},
{TEXT("Zulu"), TEXT("zulu.xml")}
{TEXT("Zulu"), TEXT("zulu.xml")}
};

0 comments on commit e2ae988

Please sign in to comment.