ramonflores Posted January 31, 2006 Report Share Posted January 31, 2006 Some times it is suitable that a program use a language different from the system default. For example to run lyx without problems. The classic way to do it in linux is setting the LANG environment variable before starting the program, ex: LANG=fr_FR lyx But in Mandriva 2006 this do not work. Do anybody know how to achieve this in Mandriva? Ramom [moved from Installing Mandriva by spinynorman] Quote Link to comment Share on other sites More sharing options...
scarecrow Posted January 31, 2006 Report Share Posted January 31, 2006 urpmi locales-fr and after that you can either export LANG (it lasts as long as your terminal session is open, and then is gone), or setting a special user where "export LANG=..." is put at his startup environment. Quote Link to comment Share on other sites More sharing options...
ramonflores Posted February 1, 2006 Author Report Share Posted February 1, 2006 I had installed locales-fr, but exporting LANG do not work in my computer. Even arfter runing: export LC_ALL=fr export LC_LANG=fr as can be seen in the attached screenshot. Quote Link to comment Share on other sites More sharing options...
ramonflores Posted February 1, 2006 Author Report Share Posted February 1, 2006 I had installed locales-fr, but exporting LANG do not work in my computer. Even arfter runing:export LC_ALL=fr export LC_LANG=fr as can be seen in the attached screenshot. It looks like that something went wrong with the screenshot. Let's try again. Quote Link to comment Share on other sites More sharing options...
ramonflores Posted February 7, 2006 Author Report Share Posted February 7, 2006 I had installed locales-fr, but exporting LANG do not work in my computer. Even arfter runing:export LC_ALL=fr export LC_LANG=fr One question please. Is me the only one that have this problem? I would thank that somebody using Mandriva2006 make a test, and confirm if this is a bug or just my problem. Ramom Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted February 7, 2006 Report Share Posted February 7, 2006 The variables I find on my system are: LANG=en_GB LANGUAGE=en_GB:en I'm wondering if you're setting the wrong ones, which is why it's not working for you. Quote Link to comment Share on other sites More sharing options...
scarecrow Posted February 7, 2006 Report Share Posted February 7, 2006 (edited) Ah, so you just want the KDE menus in French, and not in Portuguese/Brazilian... urpmi kde-i18n-fr (I think this is the correct name of the RPM). Then you can switch via kcontrol/regional&accessibilty/Country/Region & Language. This will affect only the KDE applications- for Openoffice you must install the french RPM's, while for Firefox/Thunderbird you can just install the "fr.xpi" extension ( it's easy to find the one matching the version you're running- from ftp.mozilla.org ), and then start the application like firefox -UILOcale fr%u and thunderbird -UILOcale fr%u Edited February 7, 2006 by scarecrow Quote Link to comment Share on other sites More sharing options...
ramonflores Posted February 9, 2006 Author Report Share Posted February 9, 2006 Ah, so you just want the KDE menus in French, and not in Portuguese/Brazilian...urpmi kde-i18n-fr (I think this is the correct name of the RPM). Then you can switch via kcontrol/regional&accessibilty/Country/Region & Language. This will affect only the KDE applications- for Openoffice you must install the french RPM's, while for Firefox/Thunderbird you can just install the "fr.xpi" extension ( it's easy to find the one matching the version you're running- from ftp.mozilla.org ), and then start the application like firefox -UILOcale fr%u and thunderbird -UILOcale fr%u No, I don't want all KDE menus in French. I just want one program in French, and the others programs in Portuguese. Quote Link to comment Share on other sites More sharing options...
scarecrow Posted February 9, 2006 Report Share Posted February 9, 2006 The only way to have just ONE KDE app in language A, and all others in language B, is recompiling it yourself- unless its developer has application-specific i18n packages (e.g. K3B is such an app, but it's not a core KDE application). Quote Link to comment Share on other sites More sharing options...
ramonflores Posted February 10, 2006 Author Report Share Posted February 10, 2006 The only way to have just ONE KDE app in language A, and all others in language B, is recompiling it yourself- unless its developer has application-specific i18n packages (e.g. K3B is such an app, but it's not a core KDE application). Is this a feature of Mandriva or of the new versions of KDE? In my computer I have installed two distributions, RedHat 8.0 and Mandriva2006. In RedHat8.0 there are no problems to have one KDE app in language A, other in language B, and the remaining in language C. As can be seen in the attachment. In the screenshot you can see that the general locale is pt_PT.iso88591, and two different konquerors, one in en_GB and the other in pt_BR. The pt_BR version is similar to the pt_PT version (that is not shown), but slightly different. Quote Link to comment Share on other sites More sharing options...
ramonflores Posted March 1, 2006 Author Report Share Posted March 1, 2006 Finally I got the solution . Reading the manuals is a good thing, but sometimes there are too many manuals. In the site KDE for System Administrators, there is the page Environment Variables that says: KDE_LANG To Overrides the KDE language configuration, e.g. "KDE_LANG=fr kprogram &" starts a program with french translation if the necessary files are installed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.