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).
language-options
is an Ubuntu-specific perl script installed as an extension to AccountsService.libgnome-desktop
providesGnome.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).