I am doing code for multi language support. It’s working for German, French and English. but when ever i trying same code for Hindi and Chinese then it’s not working.
my sample code.
LocalisedStrings * localisedStr;
if(languageSelector->getText().compare(T("English")) == 0)
{
LocalisedStrings::setCurrentMappings(0);
}
else if(languageSelector->getText().compare(T("Chinese")) == 0)
{
String filePath = File::getCurrentWorkingDirectory()
.getChildFile("chi.txt").getFullPathName();
File languageFile(filePath);
localisedStr = new LocalisedStrings(languageFile);
LocalisedStrings::setCurrentMappings(localisedStr);
}
My chi.txt file contains
language: Chinese
countries: chi
"User name" = “用戶名”
“Password” = “密碼”
Instead of displaying it in Chinese it displays only squares …
Regards,
Kiran