aMule Forum
English => Compilation problems => Topic started 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.
-
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)?
-
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
-
Please give us the complete output of :
locale
file /usr/share/locale/es/LC_MESSAGES/amule.mo
-
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).
-
Yep, --with-language doesn't recognize anything other than lowercase.
-
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
-
Please try
file /usr/local/share/locale/es/LC_MESSAGES/amule.mo
-
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
-
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.
-
The $LANG in configure is cas sensitive. The langs have toe be given lowercase, or we should convert this somewhere in configure.
-
[...] 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.
-
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
-
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.
-
It's working.
Thanks a lot, GonoszTopi