Multi Language

Started by
2 comments, last by Petar Titelski 16 years, 6 months ago
Id like to make multi language game, how do you code that in C++? I want all text to be defined in one file e.g. Language.h I want each line of text in game to be available in several languages, so when coding, I want to use something like: print(text_Welcome[selectedLanguage]) and that line would print "welcome" or "???????" or other, depending on the selectedLanguage Variable. anyone has experience with this in C++?
Advertisement
The term you are looking for is 'localization'. I don't know any libraries, but that is the term to google if you are looking for resources!

Best of luck!
Generally you don't want to use a header for localization strings. Better approaches are to use third party resource systems like ICU's resource bundles or even Windows string table resource scripts.
Thank you for your replies.

This topic is closed to new replies.

Advertisement