Code review comment for lp:~attente/ubuntu-ui-toolkit/1263163

Revision history for this message
David Planella (dpm) wrote :

Which value does lang return?

- If it's something like ca_ES.UTF-8, then it's probably LANG or LC_MESSAGES that would need to be updated
- If it's something like ca, then I guess LANGUAGE might be fine, but with the caveat that we'd be overwriting any values that the user has put there. That should be fine on the phone, but not on the desktop, where a user might have set LANGUAGE to e.g. ca:de:it

LANG and LC_MESSAGES are the standard variables supported everywhere, whereas LANGUAGE is a gettext extension that's not supported by all apps and frameworks.

Also, does just changing the environment variable change the language of the whole UI on the fly? Generally a reboot is required for that.

« Back to merge proposal