View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000382 | Cinelerra-GG | [All Projects] Bug | public | 2020-02-17 13:55 | 2020-02-22 17:37 |
Reporter | MatN | Assigned To | PhyllisSmith | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | X86_64 | OS | Mint XFCE | OS Version | 19.3 |
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000382: Cannot switch UI language as per manual. | ||||
Description | If I follow the instructions in manual chapter 16.7, entry "LANG and LANGUAGE", and set it to e.g. DE, cin always reports "Could not set locale." , and the UI stays in English. I don't know if this is a documentation error, or bug. As a side note, would it be useful to be able to set this in the cin preferences somewhere, overriding the LANG/LANGUAGE settings? Also, I count 16 cin.mo files below /usr/share/locale . Is there somewhere an indication on how complete each of these are? Percentage or so? | ||||
Tags | No tags attached. | ||||
I checked the program and mwindow.C uses getenv to check the locale value (results of which you can see by typing "printenv" in a window) first for LANGUAGE. If that is set, then that is what is used as your language. If not, then it checks to see if LC_ALL is set and if so, then uses that. Last, if neither of the above is set, then the value of LANG is used for the language. And I will update the manual accordingly! |
|
I think different Operating Systems and desktops may handle this differently so I will correct the manual to say so because this is how it reads now with today's update: LANG Cinelerra can be localized to display menus and messages in many languages. Currently there are 16 languages in addition to English, of varying quality. A little more information on these is in the Translations chapter. Language settings are normally read from your Linux O/S language settings. To run on a language different than the one selected on your system just change the LANG environment ariable before starting up Cinelerra like this: export LANG=2 letter language code_2 letter country code.UTF-8 For example, from a window type: export LANG=es_ES.UTF-8 then startup Cinelerra and you will have translations in Spanish. If you started Cinelerra from that same window using the {cinelerra_path}/bin/cin you will see a message in that window something similar to: lang changed from ’en_US.UTF-8’ to ’es_ES-UTF-8’ Depending on your Operating System and Desktop application, there may be other ways to accomplish a language change. For example, on Fedora with the Gnome desktop, the simplest method of switching your language to German and immediately starting Cinelerra is to use: LANGUAGE=de {cinelerra_path}/bin/cin I will test some more after seeing MatN's results. |
|
I completely forgot about BT113, my bad, sorry | |
I installed extra languages. If in (MINT XFCE) I change the language to "German, Germany UTF-8" , then after logout/login, doing (in a terminal) "export | grep -i lang" shows declare -x GDM_LANG="de_DE" declare -x LANG="de_DE.UTF-8" declare -x LANGUAGE="de_DE" and cin starts up in German. If I set it to "English, United States UTF-8" the same export command shows: declare -x GDM_LANG="en_US" declare -x LANG="en_US.UTF-8" declare -x LANGUAGE="en_US" Cin starts in English. If I set LANG="de_DE.UTF-8" but LANGUAGE="en_US" cin starts in English. If I set LANG="en_US.UTF-8" but LANGUAGE="de_DE" cin starts in German. So it looks like cin reacts only the LANGUAGE, not LANG. I must have made an mistake before, although I was sure I tested both, and another program (Wireshark) switched to German while Cin did not. Maybe Wireshark looks at a different environment variable. |
|
BT 0000113 for a settings preference logged awhile back -- it needs to be done sooner or later. Both "export LANG=de_DE" and "LANG=de_DE {cinelerra_path}/bin/cin" work on Fedora. I will fix the manual. For some reason I used to get LANGUAGE=de to work but now does not. I will also make a note in the manual about the status of the various language translated po/mo files. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2020-02-17 13:55 | MatN | New Issue | |
2020-02-17 17:02 | PhyllisSmith | Assigned To | => PhyllisSmith |
2020-02-17 17:02 | PhyllisSmith | Status | new => acknowledged |
2020-02-17 17:02 | PhyllisSmith | Note Added: 0002810 | |
2020-02-17 21:07 | MatN | Note Added: 0002811 | |
2020-02-17 21:08 | MatN | Note Added: 0002812 | |
2020-02-18 04:52 | PhyllisSmith | Note Added: 0002814 | |
2020-02-18 22:31 | PhyllisSmith | Note Added: 0002819 | |
2020-02-22 17:37 | PhyllisSmith | Status | acknowledged => closed |
2020-02-22 17:37 | PhyllisSmith | Resolution | open => fixed |