aMule Forum

English => aMule Help => Topic started by: luquino on March 20, 2011, 03:51:49 AM

Title: how add a translation to aMule?
Post by: luquino on March 20, 2011, 03:51:49 AM
Hi! I have aMule 2.2.6 on Ubuntu 10.04. aMule is installed from stamdard repos and it appears in spanish language (because my computer is located in spanish).
I wonder if it should be possible to add italian tramslation to aMule so when I change language in the system, aMule changes language as well.
In the wiki I found the it.po, but I don't know if it's useful and, eventually, how to use it.
thx a lot for your help.
Title: Re: how add a translation to aMule?
Post by: Vollstrecker on March 20, 2011, 12:45:49 PM
Have you generated the italian localoes for your system?
Title: Re: how add a translation to aMule?
Post by: luquino on March 20, 2011, 05:07:03 PM
Yes, at login I can choose language between Spanish and Italian. Each language works for the system.
Title: Re: how add a translation to aMule?
Post by: Vollstrecker on March 20, 2011, 09:12:36 PM
What language is choosen in preferences? Spanish or System Defautl?
Title: Re: how add a translation to aMule?
Post by: luquino on March 22, 2011, 09:54:57 PM
system default
Title: Re: how add a translation to aMule?
Post by: luquino on March 24, 2011, 04:25:27 AM
no way then?
Title: Re: how add a translation to aMule?
Post by: luquino on April 08, 2011, 11:54:58 PM
Please, it would be useful for me to have the two languages for amule.
Title: Re: how add a translation to aMule?
Post by: GonoszTopi on April 11, 2011, 09:06:43 AM
I don't know about Ubuntu packaging scheme, you may only need to install the appropriate localization package.

Anyway, see if the file /usr/share/locale/it/LC_MESSAGES/amule.mo exists, in which case the problem lies somewhere else.
Title: Re: how add a translation to aMule?
Post by: luquino on April 11, 2011, 07:08:23 PM
well, when I installed aMule on my pc it was setted on Spanish language, so now I faind the es locale installed 
Code: [Select]
luca@luca-desktop:~$ locate /usr/share/locale/*/LC_MESSAGES/amule.mo
/usr/share/locale/es/LC_MESSAGES/amule.mo
luca@luca-desktop:~$

The problem is exactly how to add the Italian localization for italian.
Title: Re: how add a translation to aMule?
Post by: Vollstrecker on April 12, 2011, 01:40:27 PM
Where did you get your installation from?
Title: Re: how add a translation to aMule?
Post by: luquino on April 12, 2011, 07:21:33 PM
ubuntu repos, universe

version is  2.2.6+debian0-7 (lucid)
Title: Re: how add a translation to aMule?
Post by: Vollstrecker on April 12, 2011, 07:38:48 PM
According to http://packages.ubuntu.com/lucid/all/amule-common/filelist you have to have more installed languages. Try "apt-get install --reinstall amule-common" to get the missing files. If this doesn't work, compare the output of "locale" in every env and "locale  -a".
Title: Re: how add a translation to aMule?
Post by: luquino on April 12, 2011, 08:27:18 PM
That sounds strange.
If I try to reinstall amule -common during italian session, it installs always the spanish messages file.

anyway:
locale -a
Code: [Select]
luca@luca-desktop:~$ locale -a
C
en_AG
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NG
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
es_AR.utf8
es_BO.utf8
es_CL.utf8
es_CO.utf8
es_CR.utf8
es_DO.utf8
es_EC.utf8
es_ES.utf8
es_GT.utf8
es_HN.utf8
es_MX.utf8
es_NI.utf8
es_PA.utf8
es_PE.utf8
es_PR.utf8
es_PY.utf8
es_SV.utf8
es_US.utf8
es_UY.utf8
es_VE.utf8
it_CH.utf8
it_IT.utf8
POSIX
luca@luca-desktop:~$

locale
Code: [Select]
Spanish env

luca@luca-desktop:~$ locale
LANG=es_PE.utf8
LANGUAGE=es_PE:it_IT:en
LC_CTYPE="es_PE.utf8"
LC_NUMERIC="es_PE.utf8"
LC_TIME="es_PE.utf8"
LC_COLLATE="es_PE.utf8"
LC_MONETARY="es_PE.utf8"
LC_MESSAGES="es_PE.utf8"
LC_PAPER="es_PE.utf8"
LC_NAME="es_PE.utf8"
LC_ADDRESS="es_PE.utf8"
LC_TELEPHONE="es_PE.utf8"
LC_MEASUREMENT="es_PE.utf8"
LC_IDENTIFICATION="es_PE.utf8"
LC_ALL=
luca@luca-desktop:~$


Italian env

luca@luca-desktop:~$ locale
LANG=es_PE.utf8
LANGUAGE=it_IT:en
LC_CTYPE="es_PE.utf8"
LC_NUMERIC="es_PE.utf8"
LC_TIME="es_PE.utf8"
LC_COLLATE="es_PE.utf8"
LC_MONETARY="es_PE.utf8"
LC_MESSAGES=it_IT.UTF-8
LC_PAPER="es_PE.utf8"
LC_NAME="es_PE.utf8"
LC_ADDRESS="es_PE.utf8"
LC_TELEPHONE="es_PE.utf8"
LC_MEASUREMENT="es_PE.utf8"
LC_IDENTIFICATION="es_PE.utf8"
LC_ALL=
luca@luca-desktop:~$

Title: Re: how add a translation to aMule?
Post by: Vollstrecker on April 12, 2011, 08:44:57 PM
So you see your problem, login in italian just changes the LANGUAGE-Var. Which crappy piece of software claims to set locale and then does such a thing.
Title: Re: how add a translation to aMule?
Post by: luquino on April 12, 2011, 08:53:20 PM
well, I can't answer to your question.
what I see is that when I login in Italian everything speaks Italian: menus, firefox and other programs, help messages, etc.
So, to solve my problem, can I download somewhere an Italian .mo file to put in the right directory on my pc?
Title: Re: how add a translation to aMule?
Post by: Vollstrecker on April 12, 2011, 10:29:54 PM
Downlload and extract the deb, then you can copy all needed files.
Title: Re: how add a translation to aMule?
Post by: luquino on April 12, 2011, 11:43:42 PM
OK, that is a joke.
Before I said that italian locale where not installed, after reinstall of amule-common, because whit locate command I didn't see other than spanish.
Actually italian .mo for amule where installed, but I could see it only after a
Code: [Select]
sudo updatedb  So, now amule changes languages subjected to the env.
Thanks for the help.