We set LANGUAGE environment variable and then call Gnome.Languages.get_language_from_locale or Gnome.Languages.get_country_from_code to get language and region names in their own languages.
However, we don't set LANGUAGE with both ISO 639 language code and ISO 3166 territory name (e.g. "ja_JP" or "zh_CN") here. Instead, we set it only with ISO 639 language code (e.g. "ja" or "zh").
Just setting language code doesn't work for some languages that has variants like Chinese and thus the Gnome.Languages APIs returns untranslated language names.
Fixes #15
We set LANGUAGE environment variable and then call Gnome.Languages.get_language_from_locale or Gnome.Languages.get_country_from_code to get language and region names in their own languages.
However, we don't set LANGUAGE with both ISO 639 language code and ISO 3166 territory name (e.g. "ja_JP" or "zh_CN") here. Instead, we set it only with ISO 639 language code (e.g. "ja" or "zh").
Just setting language code doesn't work for some languages that has variants like Chinese and thus the Gnome.Languages APIs returns untranslated language names.
After
Before