Fou-lu 7 Posted September 17, 2020 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: Quote Share this post Link to post Share on other sites
0 4144 364 Posted September 17, 2020 need use translation plugin, try search more recent tutorial or look in github wiki Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted September 17, 2020 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" 3. type map-server.exe -- help 4. type map-server.exe --generate-translations GOT THIS ERROR @4144, I can get this method to run db2sql plugin without error, but this plugin throws error on me Quote Share this post Link to post Share on other sites
0 4144 364 Posted September 18, 2020 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: generated_translations\npc generated_translations\other Quote Share this post Link to post Share on other sites
0 4144 364 Posted September 18, 2020 or simpler. try apply this patch to generate-translations.c - } else if (*p == PATHSEP) { + } else if (*p == PATHSEP || *p == '/') { 1 AnnieRuru reacted to this Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted September 18, 2020 22 minutes ago, 4144 said: 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 8 minutes ago, 4144 said: or simpler. try apply this patch to generate-translations.c - } else if (*p == PATHSEP) { + } else if (*p == PATHSEP || *p == '/') { - } 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 Quote Share this post Link to post Share on other sites
0 4144 364 Posted September 18, 2020 and here pull request with bit better fix https://github.com/HerculesWS/Hercules/pull/2836 Quote Share this post Link to post Share on other sites
0 Daraen 8 Posted January 21, 2021 On 9/17/2020 at 5:59 PM, 4144 said: 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 Quote Share this post Link to post Share on other sites
0 4144 364 Posted January 21, 2021 at first you should compile server and plugins next open dir where server compiled and run ./map-server --generate-translations Quote Share this post Link to post Share on other sites
0 Daraen 8 Posted January 21, 2021 Thank you ! Quote Share this post Link to post Share on other sites
0 Daraen 8 Posted January 22, 2021 (edited) 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. Edited January 22, 2021 by Daraen Quote Share this post Link to post Share on other sites
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:
Share this post
Link to post
Share on other sites