"Not available in your language" warnings when my language is en_GB
As I clicked around Software in GNOME OS Nightly, with LANG=en_GB.UTF-8
, I found several apps labelled as:
This app is not available in your language and will appear in US English.
For example:
This is technically true: the app is not translated to en_GB
. But US English and GB English are mutually intelligible; and in this case it happens that all strings are the same in US and UK English (I checked
I see from the code that the logic goes roughly as follows:
- If LANG (with codeset and modifier stripped) is
C
,en
, oren_US
, assume the app is translated - Otherwise, if the app is translated into any of the
g_get_locale_variants()
of the current locale, deem it to be translated
The use of g_get_locale_variants()
is meant to deal with the case of (e.g.) a fr
translation being good enough for a fr_CA
user. I wonder if we should special-case English further: if one of the variants of the user's locale is en
, then deem the app to be translated. (Of course, I am pleased when an app has been "translated" to have extra 'u's and pavements, but I think the warning banner is not necessary when it has not been.)