pop-os / desktop-widget

Pop Desktop Settings Widget
GNU Lesser General Public License v3.0
43 stars 34 forks source link

Translations not working #91

Closed jacobgkau closed 2 years ago

jacobgkau commented 2 years ago

On 22.04, I don't see any translations showing up. For example, trying to test https://github.com/pop-os/desktop-widget/pull/90, I installed that branch, created a new user via G-C-C, set the new user's account to French via the Users panel in G-C-C, and logged in with that user. I see some strings translated (such as the name of the section in the sidebar), but the strings within the page are not translated:

Screenshot from 2022-04-11 11-11-32

The same thing is happening in 21.10 with the Polish translation from https://github.com/pop-os/desktop-widget/pull/89:

image

jacobgkau commented 2 years ago

If I change the fallback_language in i18n.toml, then whatever I set as the fallback language does show up, which seems to indicate that the translation files themselves have valid syntax.

mmstick commented 2 years ago

It may be that the C library isn't calling the init() function which detects the system language and loads the definitions for it.