Page 1 of 1

Changing language without root

Posted: 05 Nov 2018 14:16
by Chairn
Hey,

I installed VLC on Scientific Linux 6.9 using Nix because i don't have root rights on the machine. The problem is that the interface is in english and i'd like to change it to french.
When i launch vlc in the terminal, i got the following:

Code: Select all

(process:20697): Gtk-WARNING **: 14:11:12.562: Locale not supported by C library. Using the fallback 'C' locale.
Using vlc --verbose 2, i have this line:

Code: Select all

[00007fd8a7933830] main libvlc debug: translation test: code is "C"
Output of locale:

Code: Select all

locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=fr_FR.UTF-8 LC_CTYPE="fr_FR.UTF-8" LC_NUMERIC="fr_FR.UTF-8" LC_TIME="fr_FR.UTF-8" LC_COLLATE="fr_FR.UTF-8" LC_MONETARY="fr_FR.UTF-8" LC_MESSAGES="fr_FR.UTF-8" LC_PAPER="fr_FR.UTF-8" LC_NAME="fr_FR.UTF-8" LC_ADDRESS="fr_FR.UTF-8" LC_TELEPHONE="fr_FR.UTF-8" LC_MEASUREMENT="fr_FR.UTF-8" LC_IDENTIFICATION="fr_FR.UTF-8" LC_ALL=fr_FR.UTF-8
There is no menu to change the language, but the translation do exist in /nix/store/jlagk4bfyynb0yxj5ji0kkibr10qi24g-vlc-3.0.4/share/locale/fr/LC_MESSAGES/vlc.mo .
Using vlc --menu-language=fr (or french, or français) didn't help.

I can't move this file (vlc.mo) to /usr/share/locale because i have no root rights. Is there a way to tell VLC where to look for translation?
I put this file in ~/.local/share/locale but this didn't help either.
I have other software installed with Nix and they do look for their translation in the installation folder which does not seem to be the case for VLC.

Thanks for your help.

Re: Changing language without root

Posted: 05 Nov 2018 15:11
by chubinou
hi,

maybe you set the LOCPATH to the path were your locales are installed

http://man7.org/linux/man-pages/man7/lo ... NVIRONMENT

Re: Changing language without root

Posted: 05 Nov 2018 16:09
by Chairn
I tried but not only it didn't solve the problem, it's also messing with other software such as thunderbird and gnome.

So i've set:

Code: Select all

export LOCPATH=/usr/share/locale:/home/myself/.nix-profile/share/locale
but other software are still messed up (and VLC is still in english).