Windows Phone 8 Game Development by 2013

Windows Phone 8 Game Development by 2013

Author:2013
Language: eng
Format: epub
Publisher: Packt Publishing


As you can see, the first field is the map instance. It allows you to create a collection of items that are accessible with keys. In your case, all keys and values need to have the wstring type. The second field has the name m_languages and is the vector instance for which particular elements need to have the wstring type. Here, you will store all suitable language codes.

The Load method just calls the PrepareLanguages and PrepareTranslations private methods, as shown in the following code. Thus, at the end, you will have data of all translations in the m_translations field.

void LocalizedStrings::Load(wstring language) { PrepareLanguages(language); PrepareTranslations(); }



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.