Skip to content
  • Michael Catanzaro's avatar
    prefs-dialog: Don't crash when locale has no language name · 28f41ec6
    Michael Catanzaro authored
    It's expected that sometimes we might not be able to retrieve a language
    name from a given locale. In that case, we could either ignore the
    locale, or just give up on displaying a name for it.
    
    We could, if we really wanted to, try harder, assume it's a language
    code, and look up the right name for the language code. This is what we
    used to do in Epiphany 3.30. But then we have to display such languages
    in the current locale, instead of translated like all other languages in
    the list, which would look wrong and awkward. We'd also need to make
    undesirable modifications to the gnome-desktop code. Since modern
    Epiphany doesn't allow creating such locales, and this only affects
    users who used the language dialog in older versions of Epiphany
    -- probably a very small minority of users -- there's probably no need
    to bother with this.
    28f41ec6