Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1046763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:11:50+00:00 2026-05-16T16:11:50+00:00

Made this community wiki :3 I’m developing a basic RPG, and one of my

  • 0

Made this community wiki :3

I’m developing a basic RPG, and one of my goals from the beginning is to make sure that my program is language non-specific. Basically, before I design or start programming any menus, I want to make sure that I can load and display them out of supported languages so I am not hard-coding in values.

(It would save me from many migranes down the road)

For this example, let’s use Western Left-to-Right languages. English, Spanish, German, French, Italian.

This is a basic example of what I have.
One XML file contains a mapping and design of a conversation.

<conversation>
<dialog>line1</dialog>
<dialog>line2</dialog>
</conversation>

Other XML files contains the definitions.

<mappings language="English">
<line1>This is line 1 in English!</line1>
<line2>Other lines are contained in language-separated xml files</line2>
</mappings>

Heh. This would work great, besides the fact that I forgot that English doesn’t assign genders to their words, whereas other languages do. So, where one sentence might be enough in English, I might need to have two sentences in other languages, one to cover the masuline tense and the other to cover the feminine tense.

What would be the most condusive way of solving this problem? Right now, I’ve considered coming up with different mapping tables, one excuslively for masculine-tense sentences whereas the other table would cover just feminine-tenses. Or just reading from different defintion tables.

And another kicker would be based within my game data design. I never thought about it, but I might need to store within my game items and characters their sexes so I can use the correct sentence. However, other languages might have their own specific quirks that I would need to consider as well (though thankfully, from what I know Italian and Spanish are relatively similar, and French possibly as well.)

So, obviously this is a huge task ahead of me. What other design considerations should I think of? Rightnow, I’m thinking a static class would be easiest. Configure selected language at startup, throw in inputs and hopefully get a string back.

Any ideas (looking to throw ideas around :P)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:11:51+00:00Added an answer on May 16, 2026 at 4:11 pm

    There’s two general ways to approach this: brute force and trying to be clever. Brute force means writing each possible line and including it with your XML files. It’s a lot of work, but it will work.

    Trying to be clever gets into deep water, fairly fast, particularly if you’re trying to cover a whole lot of languages.

    You need to keep more information about characters than gender. In Russian, for example, there are different words meaning “you” depending on whether you’re being informal or formal (or talking to multiple people), and the verb endings are also different. There are different translations of “please pass the bread” depending on the formality. In other languages, getting the translation right depends on social status.

    There are issues, as pawel_dyda pointed out, with singular, plural, and possibly dual case. Other languages also use different word orders: “The arrows are X coppers each, so to buy Y arrows you’ll need Z silver” may require you to keep track of the order of the numbers.

    Visual C++ and MFC come with internationalization facilities that are actually pretty good. You’d keep the strings in a resource file, and it’s possible to substitute numbers and the like in while keeping the order correct for different languages.

    Look up “internationalization” (often abbreviated to “i18n”) on the web. There’s plenty of stuff out there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implicitly made this a community wiki seeing that the answers can be
Since I'm sure many people have different standard, I've made this post a community
I've made this Community Wiki because some may think it's open to debate and
I made this web service that returns a datatable from sql server db. Can
This is something that made me doubt for a while so I thought it
This is a second-hand question from an OS development site, but it made me
Coming from this question , I have a wxComboCtrl with a custom popup made
i made this code for inserting data to an system mail that know to
I've made this decorator, which results in an infinite redirect loop. The problem is
I wonder if someone knows if there is a pre-made solution for this: I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.