rednotebook
rednotebook copied to clipboard
Language setting does not change, though LANG is set
Describe the bug Based on the documentation, it is possible to set the language used by rednotebook using environment variables. Even though I set the LANG environment variable with a different language than the default of my system (but which is available on my system), rednotebook keeps using the default en_US language
To Reproduce
- open a terminal
- run the following command:
export LANG=it_IT.UTF-8; rednotebook
- rednotebook starts but the language is set to en_US it_IT is available as a language, i can select it inside rednotebook with the right mouse button
Expected behavior I expect rednotebook to use the language set in the LANG environment variable
Screenshots No relevant screenshots
Versions:
- RedNotebook version 2.22
- Operating system and version: Linux Mint 20.2, based on Ubuntu 20.04 LTS
Log output when reproducing bug There are no relevant logs related to the issue.
This works for me: LC_CTYPE=de_DE /usr/bin/rednotebook
@nobanzai thanks for your answer, though It does not work for me. I set to a different language than the en_US one (the default one) the following environmental variables: LANG LANGUAGE LC_CTYPE but rednotebook still uses the en_US language
On Mittwoch, 8. September 2021 19:59:25 CEST buscon wrote:
@nobanzai thanks for your answer, though It does not work for me. I set to a different language than the en_US one (the default one) the following environmental variables: LANG LANGUAGE LC_CTYPE but rednotebook still uses the en_US language
Yep, you have to set it directly in the commandline you also start rednotebook. I use en_US as my default language, too. But running rednotebook with exactly the mentioned line is accepted by the program - at least for me.
Bye. Michael.
Michael Hirmke
I do set the enviromental variables in the same commandline where I run rednotebook, but still, the default language does not change anyway.
Mistery!
On Mittwoch, 8. September 2021 20:12:33 CEST buscon wrote:
I do set the enviromental variables in the same commandline where I run rednotebook, but still, the default language does not change anyway.
Mistery!
Indeed 8-<
Bye. Michael.
Michael Hirmke
I experimented with this a bit and found the following on my Ubuntu system:
- LANGUAGE sets the language for the interface (i.e., text on buttons, menus, etc.).
- LANG and LC_CTYPE set the language for the spell checker.
- LC_TIME sets the language for the date strings (weekday names, month names, etc.).
To set both LC_CTYPE and LC_TIME simultaneously, you can use LC_ALL instead.
I experimented with this a bit and found the following on my Ubuntu system:
* LANGUAGE sets the language for the interface (i.e., text on buttons, menus, etc.). * LANG and LC_CTYPE set the language for the spell checker. * LC_TIME sets the language for the date strings (weekday names, month names, etc.).
To set both LC_CTYPE and LC_TIME simultaneously, you can use LC_ALL instead.
thanks for your comment! I confirm that setting LC_ALL fixes the issue. If I set only one of the ENV you mentioned above, it is not enough.