Jump to content
  • 0

Choosing language


Question

Posted

Hey guys,

My team and me have now much translated and trying to include the feature,

if a player login, he can choose a language.

If the player now login, all will displayed in his chosen language (Client & Server-Side) like fRO or other official servers.

Planned is:

- At the Server Select a player can choose a language!

jjpfg4.png

- All item-description will be in the chosen language.

- All serverside things will be displayed in the chosen language. "npcs, msg_athena.conf etc."

Client-Side options:

- For every language it will gives an own client.

- All translated stuff will be at the same client and the server choose the right files! (But how???)

- The server read different grfs for each language.

Server-Side options:

- All scripts contains "if (language = 1)", "if (language = 2)", etc...

- For each language will give another rAthena, but with the same login-/map-/char_server. (But I think it will not work.)

- Complete SQL based. Example "Different SQL Tables for every language."

If a player chosen the language -> french, the npc call the "french sql_table".

Does anyone knows a solution, any available feature or has any clues to help me?

It would be nice and helps us really much.

Thank you in advance.

bump^^

2 answers to this question

Recommended Posts

Posted (edited)

- At the Server Select a player can choose a language!

Better make 3-4 Clients with name "German.exe",etc that reads different idnum2tables/iteminfo(possible via hex)

- All serverside things will be displayed in the chosen language. "npcs, msg_athena.conf etc."

As they login , a npc will trigger which will save its default language, but you have to put everywhere "if (#language)" ALTERNATE METHOD:

make a function and call it like mesl(msgID,LangID)[i have made it for myself]

Client-Side options:
1) For every language it will gives an own client.
2) All translated stuff will be at the same client and the server choose the right files! (But how???)
3) The server read different grfs for each language.

1) As I told,Better make 3-4 Clients with name "German.exe",etc that reads different idnum2tables/iteminfo(possible via hex)

2)Via Hex.

3) 1 GRF will contain all files,(or if you have Small clients for different languages, then different grf)

Server-Side options:
1) All scripts contains "if (language = 1)", "if (language = 2)", etc...
2) For each language will give another rAthena, but with the same login-/map-/char_server. (But I think it will not work.)
3) Complete SQL based. Example "Different SQL Tables for every language."
If a player chosen the language -> french, the npc call the "french sql_table"

1)As they login , a npc will trigger which will save its default language, but you have to put everywhere "if (#language)" ALTERNATE METHOD:

make a function and call it like mesl(msgID,LangID)[i have made it for myself]

2)1st Method is good enough.

3)Why different sql table?Please elaborate this point.

See my pm.

So the Solution is:

make 2-4 client reading different item files, as they login npc will prompt to choose language, all npc will not be triggered by script command "mes" but with "mesl(msgID,LngID)" or at init load with "mesl2(msgID Strart,msgID Final) so it stores in npc array and simply do "mes .msgID[0];"[My Mod.]

Edited by Dastgir Pojee

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...