aMule Forum
English => aMule Help => Topic started by: sh0k on November 01, 2009, 01:19:59 PM
-
hi, complete noob here...
i'd like to use the italian .po file for emule to translate it... how can i do it? do i need to put it somewhere? i tried to put it in root/.amule but the language still doesn't appear in the configuration window.
please tell me the steps, i've already searched in the wiki and forum but without success
tx in advance
-
I assume you use Linux here and the following applies to unix-like operating systems.
If you only want to use aMule, you don't need .po files. The translations are saved as .mo-files inside /usr/share/locale/it/LC_MESSAGES/amule.mo (possibly also in /usr/local/share/... or it_IT instead of it)
In order to use these files, you need to have this locale installed. Please check with the command locale -a in a terminal if your list contains "it_IT", "it" or similar. If not, please activate the locale by opening "/etc/locale.gen", removing the '#' character in front of the line saying "# it_IT.UTF-8 UTF-8" and afterwards running "locale-gen".
If the locale exists, aMule should show the translation. If not,please tell us what distribution you use and how you installed aMule.
-
thanks for the reply,
the locale exists (tried with locale -a)
however i'm sure i've found the problem: there's no amule.mo file inside (also searched the entire filesystem), i've tried extracting the files from .deb pakage i dowloaded but can't find .mo files. i have to admit that the deb package is for ubuntu 8.04 hardy and i have Puppy linux, maybe this is the problem. on forum/site of puppy there's only an old version on amule, however, exept for the translation, amule works perfectly
should i download the file somewhere?
-
Considering your setup, it's probably easiest to take the po file, run the command msgfmt -c --statistics it_IT.po -o amule.mo and copy it to the .../it_IT/LC_MESSAGES/ (or it) directory. There should already be other mo files there.
You can find the required po-file in the source code in the folder "po". Please use the same version for translation and aMule, otherwise it might not be completely translated. Above command will tell you if there are any "fuzzy" (possibly incorrectly translated) or untranslated strings. If there are more than 5, you have the wrong version of the po-file.
-
problem solved thank you! :D i didn't know the command to create the mo file
there's another annoiance i have: how can i stop the root user warning ( warning! you are running amule as root...) every time i start the program?? i don't want to change user
i can't find an option in preferences
-
You can't, unless you chose to recompile aMule. In this case, it is sufficient to comment out the lines triggering the message in amule.cpp. (I'll tell you exactly which lines, if you tell me the version you use.)
-
recompile means configuring from the sources? in this case i'd need to reinstall amule totally?can i only change one file? (maybe, i don't know, i can replace only the executable)
if compile means doing ./configure make make install i'm sure i will encounter problems because of missing libraries (especially in the make install part, tried with other programs, it's a nightmare having to search the libraries for puppy), that's why i downloaded the deb file, already configured.
however i use the latest version 2.2.6 and if you tell me the procedure i can try, always undestand that i'm new in linux environment (but i don't mean i dislike it :D)
-
It would be sufficient to only replace the 'amule' binary file, but yes, you would have to compile (configure,make,...) it.
You said you used a Ubuntu package - is there a possibility to do the compilation on the same Ubuntu version, too? (Maybe a live-cd provided you have enough RAM or a virtual machine?)
-
ok i can try, please tell me which lines i need to modify or cancel in amule.cpp in the sources. i can first try compiling directly in puppy then if there are problems i'll try with ubuntu 8.04. to compile, do i need to make only configure or configure && make? (i mean, to create the amule binary file)
-
No problem. Comment lines 649-663 in amule.cpp (Either adding // to the beginning of each line or adding a /* to the beginning of the first line and */ to the end of the last line. Please excuse if know C/C++ and I explain obvious things to you.) That's for 2.2.6, the line numbers might differ for the developmental version.
649 #ifndef __WXMSW__
650 if (getuid() == 0) {
651 wxString msg =
652 wxT("Warning! You are running aMule as root.\n")
653 wxT("Doing so is not recommended for security reasons,\n")
654 wxT("and you are advised to run aMule as an normal\n")
655 wxT("user instead.");
656
657 ShowAlert(msg, _("WARNING"), wxCENTRE | wxOK | wxICON_ERROR );
658
659 fprintf(stderr, "\n--------------------------------------------------\n");
660 fprintf(stderr, "%s", (const char*)unicode2UTF8(msg));
661 fprintf(stderr, "\n--------------------------------------------------\n\n");
662 }
663 #endif
Compiling requires you to execute both ./compile ./configure and make, afterwards you'll find the "amule" file in the src-directory. You should also have a look at http://wiki.amule.org/index.php/Compilation_Installation for hints about the compilation process.
-
hi, i'm still here sorry for the delay,i was ill... i tried compiling with ubuntu 8.04 but i have problems: i recieve errors, i think the iso misses libraries needed. however i also tried to install some dependencies but i have problems installing them, infact ubuntu says: can't update because there's a later version and other things. so reassuming tried compiling -> problems -> downloaded libraries (searched and found people with the same error) -> can't install them!! :o i'm stuck. now if you can try compiling it with the ubuntu iso for me and send me the file i would be grateful! here are the sources for hardy -> http://www.vollstreckernet.de/ubuntu/
hope you have time to help,
tx in advance
-
I'm sorry, but I don't use Ubuntu myself and installing Ubuntu + compiling would take me quite some time.
Considering it's only about the root message, I would recommend you to use a non-root user instead or just click the message away when you start aMule.
-
there's another annoiance i have: how can i stop the root user warning ( warning! you are running amule as root...) every time i start the program?? i don't want to change user
Let's talk things straight, shall we? Why is this such an annoyance to you?
You shouldn't be connecting to the internet using a root account anyway.
If someone breaks into your computer, it will give him instant super-user privileges. That's not something you want either, do you?
-
i'm not here for moral suggestions about what i should or shouldn't do...maybe i am a hacker and can hack your computer now ;D
anyway, i thank you wuischke for your help and time,
bye
-
maybe i am a hacker and can hack your computer now ;D
Or yours might be hacked already... 8)