Unknow option '--generate-translations dont '

Fou-lu

New member
Messages
145
Points
0
Github
Pedro
Can someone please confirm me how to run the emulator with the "--generate-translations" parameter? Or if this still works in the emulator. Because I'm not able to use it, even following the guidelines in this topic: 





unknown.png

 
need use translation plugin, try search more recent tutorial or look in github wiki

 
since someone ask, I also post my finding

https://annieruru.blogspot.com/2019/01/how-to-install-plugin.html

1. get generate-translations plugin to run

plugins_list: [
/* Enable HPMHooking when plugins in use rely on Hooking */
"HPMHooking",
//"db2sql",
//"sample",
//"other",
//"mapcache",
"generate-translations",

// "aaa",
"zzz",
// "noitem",
"OnPCStatCalcEvent",
"OnPCUseSkillEvent",
]


2. type "cmd"

herc_mapcache_1_1.png


3. type map-server.exe -- help

herc_mapcache_1_2.png


4. type map-server.exe --generate-translations

generate-translations.png


GOT THIS ERROR

generate-translations_error.png


@4144, I can get this method to run db2sql plugin without error, but this plugin throws error on me

 
this can be windows issue. on linux works fine. you have created directory

generated_translations


?

windows always works different. probably best way for avoid windows and visual studio issues is drop visual studio support. and to use normal compilers...

try create also directories:

Code:
generated_translations\npc
generated_translations\other
 
or simpler. try apply this patch to generate-translations.c

Code:
-               } else if (*p == PATHSEP) {
+               } else if (*p == PATHSEP || *p == '/') {

 
windows always works different. probably best way for avoid windows and visual studio issues is drop visual studio support. and to use normal compilers...
wow ... if hercules officially drop visual studio, I switch to rathena

or simpler. try apply this patch to generate-translations.c

- } else if (*p == PATHSEP) {
+ } else if (*p == PATHSEP || *p == '/') {

Code:
-               } else if (*p == PATHSEP) {
+               } else if (*p == PATHSEP || *p == '/') {
yes, its working fine now

now just wait topic starter also got it working or not

 
need use translation plugin, try search more recent tutorial or look in github wiki
How do you manage to use this under linux? No matter how much I enter map-server.exe --generate-translations on putty, I get an error message. The plugins are activated in my src, already recompiled without problem

lol.png

 
at first you should compile server and plugins

next open dir where server compiled and run

Code:
./map-server --generate-translations
 
Do you know why I get "Map not found" on character selection when I recompiled my server and activated my generate translation plugin and entered my test files in db / <my lang> / <folder > /my_translation.Po?

EDIT: 

It's not very clear, reading this link, 





I don't understand if I have to do a translation one by one of all the txt that my plugin generates or if I have to make a single .po file with the translation of whatever I want to translate.

There is no tutorial to speak of it.
I also don't understand how to integrate my translation into the server. Let me explain myself, I translate everything I want into my language, but I want to leave the server language in English, in order to leave the choice to my players to do @lang or not.
However, nothing clearly tells us how to make my server understand that a language other than English is available.

Will someone have the patience to enlighten me and enlighten us?

Thank you.

 
Last edited by a moderator:
Back
Top