Changing language without root

*nix specific usage questions
Chairn
New Cone
New Cone
Posts: 3
Joined: 05 Nov 2018 14:04

Changing language without root

Postby Chairn » 05 Nov 2018 14:16

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.

chubinou
Developer
Developer
Posts: 521
Joined: 23 Jul 2015 15:19

Re: Changing language without root

Postby chubinou » 05 Nov 2018 15:11

hi,

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

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

Chairn
New Cone
New Cone
Posts: 3
Joined: 05 Nov 2018 14:04

Re: Changing language without root

Postby Chairn » 05 Nov 2018 16:09

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).


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 7 guests