aMule Forum

English => Compilation problems => Topic started by: errico2 on July 16, 2008, 03:08:05 PM

Title: Spanish amule
Post by: errico2 on July 16, 2008, 03:08:05 PM
I have compiled amule and it's working well.
But I'm spanish, and I would like to have amule in spanish. I'm trying to compile it using spanish, but I can't. I have done:
1) I have read FAQs:
 - how to translate aMule into your native language --> but.... I'm not a translater
 - HOWTO Compile and install aMule from sources  --> well, I know how to compile, I don't know how to view spanish version.....

2) My LANG:
$ echo $LANG
es_ES.UTF-8

3) Compiling:
./configure --enable-amule-daemon --enable-amulecmd --with-language=ES

4) Editing ~/.aMule/amule.conf:
$ grep -i lang amule.conf
Language=ES

5) And I am not able... always in english. Using amule or amulegui, in preferences, I can't select language, always System default.....


Anyone can help me and say me what i am doing wrong ?


Thanks in advance, errico2.
Title: Re: Spanish amule
Post by: GonoszTopi on July 16, 2008, 03:13:50 PM
Using amule or amulegui, in preferences, I can't select language, always System default.....

That means that the language files aren't correctly installed.

Did you run "make install" after compilation (as root)? Do you have NLS support enabled (check configure output)?
Title: Re: Spanish amule
Post by: errico2 on July 17, 2008, 11:12:23 AM
I'm not sure if I did a "make install".

So i compile again:

./configure --enable-amule-daemon --enable-amulecmd --enable-webserver --enable-amule-gui --enable-alc --enable-alcc --disable-debug --enable-optimize --with-language=ES

checking whether NLS is requested... yes

make

su -
make install

and again, in english. I start amulegui -> preferences -> language..... and only System Default
amulecmd in english too...

Any idea?

Thanks a lot GonoszTopi
Title: Re: Spanish amule
Post by: Vollstrecker on July 17, 2008, 02:44:12 PM
Please give us the complete output of :

locale

file /usr/share/locale/es/LC_MESSAGES/amule.mo
Title: Re: Spanish amule
Post by: GonoszTopi on July 17, 2008, 03:31:10 PM
Please try configuring again without "--with-language=ES".
Or you can also try "--with-language=es" (lowercase)

Do a "make" and "make install" afterwards.

The problem might be that you specified the required language as "ES" (uppercase), but the language name is "es" (lowercase).
Title: Re: Spanish amule
Post by: Vollstrecker on July 17, 2008, 05:04:51 PM
Yep, --with-language doesn't recognize anything other than lowercase.
Title: Re: Spanish amule
Post by: errico2 on July 19, 2008, 12:42:35 AM
I have compiled again using :
./configure --with-crypto-prefix=/mypath/cryptopp-5.5.2 --enable-amule-daemon --enable-amulecmd --enable-webserver --enable-amule-gui --enable-alc --enable-alcc --disable-debug --enable-optimize --with-language=es

make -j 4
su -
make install

And...english again. Changed amule.conf and remote.conf, to lowercase lang:
Language=es

English again

My locale:
$ locale
LANG=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=



But..... amule.mo doesn't exist... perhaps the problem ?:
$ file /usr/share/locale/es/LC_MESSAGES/amule.mo
/usr/share/locale/es/LC_MESSAGES/amule.mo: ERROR: cannot open `/usr/share/locale/es/LC_MESSAGES/amule.mo' (No such file or directory)


Thanks for all
Title: Re: Spanish amule
Post by: GonoszTopi on July 19, 2008, 10:51:30 PM
Please try

file /usr/local/share/locale/es/LC_MESSAGES/amule.mo
Title: Re: Spanish amule
Post by: errico2 on July 19, 2008, 11:37:19 PM
No, there is no anything.

$ file /usr/local/share/locale/es/LC_MESSAGES/amule.mo
/usr/local/share/locale/es/LC_MESSAGES/amule.mo: ERROR: cannot open `/usr/local/share/locale/es/LC_MESSAGES/amule.mo' (No such file or directory)
$ su -
Password:
# find / -name amule.mo
#

Where can i get this file ?

Thanks for all
Title: Re: Spanish amule
Post by: GonoszTopi on July 19, 2008, 11:54:36 PM
It should be installed.

After configure finishes, is should report you a line (among others):
Should aMule be compiled with i18n support?                yes

If this is the case, please try again without the "--with-language=es" switch. You should have all languages available.
Title: Re: Spanish amule
Post by: Vollstrecker on July 20, 2008, 12:51:08 AM
The $LANG in configure is cas sensitive. The langs have toe be given lowercase, or we should convert this somewhere in configure.
Title: Re: Spanish amule
Post by: GonoszTopi on July 20, 2008, 07:53:14 PM
[...] we should convert this somewhere in configure.

That would have to be a quite sophisticated conversion routine, because for example "pt_BR" is a valid language identifier.
Title: Re: Spanish amule
Post by: errico2 on July 21, 2008, 11:34:21 AM
Fine. This was the problem:

  Should aMule be compiled with i18n support?                no

Searching in configure log:
checking for autopoint... ./configure: line 17734: autopoint: command not found
no
configure: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support.

I have installed gettext-tools, and now it works.
Thanks a lot GonoszTopi.

Only one more question...... All are in spanish, but amulecmd is in english. Is amulecmd translated ? or it is another problem in my pc ?

Thanks again
Title: Re: Spanish amule
Post by: GonoszTopi on July 22, 2008, 06:20:58 PM
Remote tools use a different configuration file. You can use "amulecmd -l es -w" to write the language setting into remote.conf (http://www.amule.org/wiki/index.php/Remote.conf). Please refer to "amulecmd --help" for more information, or you can read the amulecmd wiki page (http://www.amule.org/wiki/index.php/AMuleCMD) for a good beginning.
Title: Re: Spanish amule
Post by: errico2 on July 23, 2008, 09:07:20 AM
It's working.
Thanks a lot, GonoszTopi