Skip to content

Enable translations by having the init calling setlocale

Sebastien requested to merge seb128/plymouth:translations-set-locale into master

Currently there is a setlocale call done in on_newroot but that function doesn't seem to be called at least when doing

$ plymouthd --no-daemon
$ plymouth show-splash
$ plymouth change-mode --system-upgrade

Is there a way to emulate a system or firmware update after reboot? Ubuntu doesn't do packagekit offline updates so it's not easy to test that mode out of using those steps from an active session?

The setlocale() call seems to be placed in that function to accomodate the initrd loaded case where the disk content isn't available yet but I don't understand the plymouth code enough to say if that's specific to systems where disk encryption is enabled?

@jwrdegoede since you added the initial setlocale() call maybe you have a clue about those questions? I expect the solution proposed is not technical right but at least if fixes the case described and is a start point for discussion

Merge request reports