Convert deprecated language code (found in Android)
This commit is contained in:
parent
029af89d36
commit
60797aa828
@ -329,6 +329,13 @@ Translations::Translations() //: m_dictionary_manager("UTF-16")
|
|||||||
for (int l = 0; locale[l].language != NULL; l++)
|
for (int l = 0; locale[l].language != NULL; l++)
|
||||||
{
|
{
|
||||||
language = locale[l].language;
|
language = locale[l].language;
|
||||||
|
// Convert deprecated language code
|
||||||
|
if (language == "iw")
|
||||||
|
language = "he";
|
||||||
|
else if (language == "in")
|
||||||
|
language = "id";
|
||||||
|
else if (language == "ji")
|
||||||
|
language = "yi";
|
||||||
if (locale[l].country != NULL)
|
if (locale[l].country != NULL)
|
||||||
{
|
{
|
||||||
language += "-";
|
language += "-";
|
||||||
|
Loading…
Reference in New Issue
Block a user