elementary / switchboard-plug-locale

Switchboard Locale Plug
GNU Lesser General Public License v3.0
11 stars 10 forks source link

Utils: Replace usage of language-options #138

Closed davidmhewitt closed 2 years ago

davidmhewitt commented 2 years ago

language-options is an Ubuntu-specific perl script installed as an extension to AccountsService.

libgnome-desktop provides Gnome.Languages.get_all_locales that achieves the same thing in a way that will work on other distros.

I've also removed the hardcoded length checks on the locales as this would have been preventing some of the 3 letter locales from being parsed and displayed. There's a GNOME method that can do that parsing for us.

There's a bunch of other Ubuntu specific stuff in this plug, but I'll make changes in small increments like this so we can test it a bit a time. This changes how the lists of available languages and regions are loaded. On Odin, this has no effect on the top level list of "installed languages", but there seem to be more regions available with this branch (which I guess isn't a bad thing).