kraft icon indicating copy to clipboard operation
kraft copied to clipboard

Feature Request: Language selection stored in configuration files

Open noseshimself opened this issue 2 years ago • 6 comments

If the user is not able to control environment variables it might be a good idea to have an option for overriding the automatic detection.

noseshimself avatar Jun 23 '22 02:06 noseshimself

Can you elaborate which problem you are trying to solve?

dragotin avatar Jun 25 '22 20:06 dragotin

Running kraft on a Chromebook with its default (Linux VM) environment being rest to LANG=C. I would prefer being able to fix things like the currency and language settings from application settings.

Don't make me start asking for an ARM AppImage...

noseshimself avatar Jun 27 '22 01:06 noseshimself

Maximally brutal solution: Create an additional Linux container "Office". Install debconf and locale-gen. Edit /etc/locale.gen to enable the locale you desire and run locale-gen. After that you can nail your personal locale to whatever you want.

noseshimself avatar Jun 29 '22 22:06 noseshimself

@noseshimself IIRC you found a solution for this, right? Please close if so.

I am not very keen on having a own locale management in Kraft. I'd prefer to inherit from environment for simplicity. Most users probably never think nor care about things like locale ;-)

dragotin avatar Jul 25 '22 07:07 dragotin

Use the built-in tools. 8-)

Configure /etc/locale.gen correctly. ChromeOS tried to resist a bit but the Linux containers are sufficiently Debian to use the built-in tools and enforce their settings using systemd.

It would still be nice to get an English UI and still get German output (and decimal separators) but that's an add-on.

noseshimself avatar Jul 26 '22 14:07 noseshimself

CASE: Kraft provides UI languages A, B, C. A is the default (english). User has an environment locale D, whis is not translated in Kraft UI. This user is more comfortable with "B" language, better than english.

Then user should be able to select an UI language other than system/default/english.

narcisgarcia avatar Oct 17 '22 18:10 narcisgarcia