FedeDP / ncursesFM

Ncurses File Manager for linux
GNU General Public License v3.0
83 stars 3 forks source link

How to activate locale translation . #20

Closed JujuLand closed 7 years ago

JujuLand commented 7 years ago

Hi, I have now build v3.1 with success, and I have created fr.po which has been compiled as fr.mo, but I don't find haw to activate my locale.

I have tried to modify something in /etc/default/ncursesFM.conf, but it doesn't seem to do something.

Thanks A+

JujuLand commented 7 years ago

Herei s fr.po fr.po.zip

FedeDP commented 7 years ago

It automatically uses language from your system; can you paste here output of "echo $LANG" ? Btw thanks for translation file! I will add it to repo as soon as i go back home :)

PS: have you installed the .mo file? Ie: you should add fr.po file inside msg/ folder, than issue a "make" and finally "sudo make install"

JujuLand commented 7 years ago

ok, I understand. My LANG is fr_FR.UTF8, so I must rename fr.po to fr_FR.po. Right ?

A+

FedeDP commented 7 years ago

No, it is enough to leave it fr.po.

JujuLand commented 7 years ago

I had forgotten to install, that was the reason. I have renamed it, and iit works too.

Thanks A+

FedeDP commented 7 years ago

Thank you for taking the time to translate ncursesFM! I'll obviously add you to translators' list (https://github.com/FedeDP/ncursesFM/wiki/I18n#translators). Thanks again!

JujuLand commented 7 years ago

I found a typo in your pot: msgid "remove all user bookmakrs."

and one in mine: msgstr "chrcher un fichier" instead of "chercher un fichier"

A+

FedeDP commented 7 years ago

Thanks, i will fix it...or you can! Feel free to open a Pull Request to upload your translation and fix "bookmakrs" string (you should look for that typo in src/string_constants.c and in every .po file) if you are willing to.

JujuLand commented 7 years ago

As I don't know how to use pull, I prefer send you an archive

A+ po-files.tar.gz

FedeDP commented 7 years ago

Thank you very much! Your changes are now in master. Can you please rebuild ncursesFM from git and let me know if french lang works fine? Thank you!

EDIT: https://github.com/FedeDP/ncursesFM/wiki/I18n#translators :)

FedeDP commented 7 years ago

I was able to properly test french language and it works fine. Again, thank you for your time! If you have any idea/suggestion/feature request, feel free to open any issue!