Open Meridian Project Forums

  • November 23, 2017, 08:55:56 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: Language translation/MsgSendUser issues  (Read 1481 times)

Delerium

  • Hero Member
  • *****
  • Karma: +54/-1
  • Posts: 590
    • View Profile
Language translation/MsgSendUser issues
« on: March 26, 2015, 11:15:44 PM »

This has been mentioned in IRC a few times but with the possibility of multiple in-game text languages coming closer to reality there are some other issues that will need to be addressed. The most pressing one I can see is what to do regarding MsgSendUser calls; other languages might need the articles and pronouns moved or removed completely thus would require a different version of MsgSendUser to be used.

So far I'm thinking we add a new UC protocol to send the client's display language to the server (server can store it in a new PFLAG field for the player) and then just use if else statements to pick the right MsgSendUser to use. Luckily only a subset of these message calls will be affected by differences in language, but this still might get klunky if we get more than 3 or 4 full translations going (which might be kind of unlikely). Looking for any better suggestions or comments here.

Another issue is choosing the language in the client - I want to go with a menu option here as I can think of cases where someone with a German or Russian operating system might want to display the English (or other) text for learning purposes or simply because they're used to it that way, so forcing language based on OS might not be the best option. Here I'm thinking we could populate a drop-down menu in the client menu bar with languages that have a translation available (client can keep track of this while loading in the .rsb file). Not 100% sure how to build this yet but unless someone can tell me it's completely impossible, or suggest a better idea this is likely what I will try to do.

Currently the compiler/server/client code works fine, the remaining parts left to work on are these issues and more compiler checks to prevent defining multiple strings of the same language for the same resource.
Logged

Delerium

  • Hero Member
  • *****
  • Karma: +54/-1
  • Posts: 590
    • View Profile
Re: Language translation/MsgSendUser issues
« Reply #1 on: March 31, 2015, 01:02:21 AM »

Another issue is choosing the language in the client - I want to go with a menu option here as I can think of cases where someone with a German or Russian operating system might want to display the English (or other) text for learning purposes or simply because they're used to it that way, so forcing language based on OS might not be the best option. Here I'm thinking we could populate a drop-down menu in the client menu bar with languages that have a translation available (client can keep track of this while loading in the .rsb file). Not 100% sure how to build this yet but unless someone can tell me it's completely impossible, or suggest a better idea this is likely what I will try to do.

This part is now complete (http://i.imgur.com/uyTJa3R.png). The menu is populated when the player enters the game based on what resources are available (checked when resources are all loaded in). So for display languages, the client menus and such will be chosen based on the user locale (the stuff in client.rc/merintr.rc) and in-game resources (.rsc/.rsb files) will be chosen based on the language picked from this menu.
Logged
Tags: