axel-download-accelerator / axel

Lightweight CLI download accelerator
GNU General Public License v2.0
2.87k stars 258 forks source link

Italian translation #113

Closed ordex closed 6 years ago

ordex commented 6 years ago

We are currently working on an Italian translation to be integrated with the rest. Lang code will be: it_IT

eribertomota commented 6 years ago

Em quarta-feira, 20 de setembro de 2017, Antonio Quartulli < notifications@github.com> escreveu:

We are currently working on an Italian translation to be integrated with the rest. Lang code will be: it_IT

Very good!

ordex commented 6 years ago

@eribertomota I have copied the it_IT.po file in the po directory and added it to the LINGUAS file. Then I have cleaned up my repo and restarted with autogen.sh... I see the it_IT.po file being used during the processing, but then, when I run Axel it still prints messages in English. What do I need to change to run it in Italian? I have executed: export LINGUAS=it_IT

eribertomota commented 6 years ago

2017-09-21 1:03 GMT-03:00 Antonio Quartulli notifications@github.com:

@eribertomota https://github.com/eribertomota I have copied the it_IT.po file in the po directory and added it to the LINGUAS file. Then I have cleaned up my repo and restarted with autogen.sh... I see the it_IT.po file being used during the processing, but then, when I run Axel it still prints messages in English. What do I need to change to run it in Italian? I have executed: export LINGUAS=it_IT

Hi,

You need to run 'make update-po' inside po/ directory.

ismaell commented 6 years ago

It should be something like: export LANG=it_IT.UTF-8

ordex commented 6 years ago

I think the UTF-8 part is for LANG/LC_ALL, but not for LINGUAS.

By the way, something is wrong with what I am doing in axel, because after exporting the LINGUAS=it_IT, other command line tools are converting to Italian, while axel is still in english.

I ran make update-po

ordex commented 6 years ago

I'll upload the changes so you all can have a look

ismaell commented 6 years ago

@ordex Ah, wait, you meant to generate only it_IT... ok, that's probably working, is the .mo file installed?

ordex commented 6 years ago

@ismaell the .mo file is created, but must I install the .mo files somewhere in the system? or is it supposed to work even when running from the build folder?

eribertomota commented 6 years ago

2017-09-22 2:00 GMT-03:00 Antonio Quartulli notifications@github.com:

@ismaell https://github.com/ismaell the .mo file is created, but must I install the .mo files somewhere in the system? or is it supposed to work even when running from the build folder?

See here the final files in to be distributed by Debian package: https://packages.debian.org/sid/amd64/axel/filelist

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/axel-download-accelerator/axel/issues/113#issuecomment-331350544, or mute the thread https://github.com/notifications/unsubscribe-auth/AGIyruD1nRej5Q93LchAWn_xkQEd12l1ks5skz8LgaJpZM4Pdd4e .

ordex commented 6 years ago

I see. Very useful, thanks!

ordex commented 6 years ago

Ok, I made it work! The location where the .mo files are looked up can be changed with --localedir passed to ./configure (if this can be helpful).