Jump to content
  • Advertisement
Sign in to follow this  
Lenolian

[.net] Localization

This topic is 4808 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am currently trying to localize my engine. For french and english there is no problem, everything is display fine. But now i am trying to support chineese but only ??? are displayed. I tried to modify the culture used by the current thread, but still dont work. Here is an exemple :
Localizer localizer = new Localizer("Transumanar", @"E:\Resources"); Console.WriteLine(localizer.GetString("Test"));
localizer.SetCulture("fr-FR");
Console.WriteLine(localizer.GetString("Test"));
localizer.SetCulture("zh-CN");
Console.WriteLine(localizer.GetString("Test"));

which should write :
Quote:
Hello Bonjour 你好
but instead i get :
Quote:
Hello Bonjour ??
So what should i do to support chineese writing in my engine ?

Share this post


Link to post
Share on other sites
Advertisement
The console might not be able to show unicode (chinese) characters.
Create a textbox with a unicode font (Arial Unicode) and try to show in the textbox instead.

Otherwise, change the localization of your system.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!