Jump to content
  • 0
Fou-lu

Unknow option '--generate-translations dont '

Question

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.a76e859c8f7f1b981c57cf25b0a6e5a0.png

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

 

 

Share this post


Link to post
Share on other sites
  • 0

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

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

 

Share this post


Link to post
Share on other sites
  • 0
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

Share this post


Link to post
Share on other sites
  • 0
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

 

lol.png.894da2437b5e93401b55081c69eb7c20.png

 

Share this post


Link to post
Share on other sites
  • 0

at first you should compile server and plugins

next open dir where server compiled and run

./map-server --generate-translations

 

Share this post


Link to post
Share on other sites
  • 0

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 by Daraen

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.