dragotin / kraft

Kraft helps to handle your daily quotes and invoices in your small business.
http://volle-kraft-voraus.de
GNU General Public License v2.0
56 stars 18 forks source link

Feature Request: Language selection stored in configuration files #140

Open noseshimself opened 2 years ago

noseshimself commented 2 years ago

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.

dragotin commented 2 years ago

Can you elaborate which problem you are trying to solve?

noseshimself commented 2 years ago

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 commented 2 years ago

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.

dragotin commented 2 years ago

@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 ;-)

noseshimself commented 2 years ago

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.

narcisgarcia commented 1 year ago

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.