Jump to content

locale string system


Go to solution Solved by Sonitex,

Recommended Posts

Hi guys, 

 

Does anyone have any idea of how to translate lines like this

 

spacer.png

 

or

 

spacer.png

 

 

using this system...

 

 

I created a function that send a packet to get the proper string from client, but it didn't work as I expected

 

any tips could be useful .. 

 

thx in advance..

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Premium
  • Solution

In cases such as horse name postfix, you can do it directly in client source. 

 

In the following function, check if an instance is a horse and append the string to its name ('s Horse).

void CInstanceBase::__Create_SetName(const SCreateData& c_rkCreateData)

 

In other cases where you must use a locale string as an argument, you either add multilingual data to the server or create a separate packet just for this locale string. 

 

Edit: There are also other ways like passing "[STRING_221]" as a string argument and on the client side you fetch a locale string with ID 221. This can be also useful for item and monster names :)

Edited by Sonitex
Link to comment
Share on other sites

4 hours ago, Sonitex said:

In cases such as horse name postfix, you can do it directly in client source. 

 

In the following function, check if an instance is a horse and append the string to its name ('s Horse).


void CInstanceBase::__Create_SetName(const SCreateData& c_rkCreateData)

 

In other cases where you must use a locale string as an argument, you either add multilingual data to the server or create a separate packet just for this locale string. 

 

Edit: There are also other ways like passing "[STRING_221]" as a string argument and on the client side you fetch a locale string with ID 221. This can be also useful for item and monster names :)

 

 

Thx man ❤️

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.