Commit 0e93e181 authored by Jehan's avatar Jehan

app: locales without ISO-639-1 codes should not be ignored

Some languages have no 2-letter ISO-639-1. This is the case in particular
for 3 languages we have translations for: ast (Asturian), csb (Kashubian)
and nds (Low German), which have only 3-letter ISO-639-2/3 codes.
They were not visible in the list of languages in the Preferences dialog
until now.
parent 409fa79e
......@@ -155,6 +155,18 @@ iso_codes_parser_entry (IsoCodesParser *parser,
{
lang = *values;
}
else if (strcmp (*names, "iso_639_2B_code") == 0 && code == NULL)
{
/* 2-letter ISO 639-1 codes have priority.
* But some languages have no 2-letter code.
* Ex: Asturian (ast).
*/
code = *values;
}
else if (strcmp (*names, "iso_639_2T_code") == 0 && code == NULL)
{
code = *values;
}
else if (strcmp (*names, "iso_639_1_code") == 0)
{
code = *values;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment