getLanguageCode function
dynamic
getLanguageCode(
- dynamic platformID,
- dynamic languageID,
- dynamic ltag
Implementation
getLanguageCode(platformID, languageID, ltag) {
switch (platformID) {
case 0: // Unicode
if (languageID == 0xFFFF) {
return 'und';
} else if (ltag != null) {
return ltag[languageID];
}
break;
case 1: // Macintosh
return macLanguages[languageID];
case 3: // Windows
return windowsLanguages[languageID];
}
return null;
}