UI translations not being used in Flatpak
@aleb
Submitted by Alex Băluț
Description
When starting Pitivi stable in a different locale, some strings appear untranslated even though they should appear translated, as https://l10n.gnome.org/module/pitivi/#1.0 shows 100% for de
.
It seems the messages translated in the code with _("Message")
are translated fine, but the texts from the .ui
files are not translated, for example:
builder = Gtk.Builder()
builder.add_from_file(os.path.join(get_ui_dir(), "titleeditor.ui"))
This is how I start Pitivi in the "de" locale:
$ flatpak install http://flatpak.pitivi.org/pitivi.flatpakref
$ flatpak config --set languages "de"
$ flatpak update org.pitivi.Pitivi
$ LC_ALL=de_DE.utf8 LANG=de_DE.utf8 flatpak run org.pitivi.Pitivi//stable
(pitivi:3): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
[...]
Edited by Alexandru Băluț