How to localization

How to localization
0.0 0


My app want to support multi-language. but i can’t found any class or struct to support this feature.

I just saw that text can be load from a xml file depond on language set on the device.
in that mean the xml must be parser by ourself? or cocos2d-x has supply some class to load that file.
In android there is a class Resource ,it will load all text from the xml, we just to give the lable name framework will give us the reall language text.

I want to know if the cocos2d has the samilar mechanizm about the localization ? could you give us the sample code?


No, cocos2d-x don’t have mechanism for multi-language now.
You should load corresponding xml file by current language, and parse xml file by your self.