I’m just developing my new game with cocos2d-html5 + js_bindigns, and I’m asking for developers who have managed to put multiple languages support on their game.
What’s the best approach for solve this problem on cocos2d-html5?
On iOs/Android it’s easy to have a localized folder with localized images/strings/etc…, can I do that on cocos2d-html5 and made the code works on every platform?.
I’m thinking of making a singleton class “LanguageManager” with some methods like:
~~getLocalizedImage(key) ->returns the image source
And have an xml file for each supported language and put all the resources under the res/lang.
What do you thing about this idea?
Just another question.
CCLabelBMP or CCLabelTTF? for having text localized. Having CCLabelBMP means that I need to know “all the characters” from a language I don’t understand, for example “chinese”, and made an image with this characters.
Maybe I can made an script that parses the “chinese.xml” utf8 chars and returns the chinese chars used on the file, so I can copy&paste does characters on GlypDesigner(http://www.71squared.com/es/glyphdesigner) and made the fnt file.
Do you thing this is good aproach for having this feature on cocos2d extensions? I could contribute to cocos2d with my code.
I apologiced for my english