Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Action script...
- // [Initial MovieClip Action of sprite 300]
- #initclip 11
- class LocalizationManager
- {
- function LocalizationManager()
- {
- } // End of the function
- static function getGlobalLocalizedString(p_identifier_str, caller)
- {
- var _loc2 = "";
- if (caller != null || caller != undefined)
- {
- _loc2 = "\n\t\t componant caller :" + caller._target;
- } // end if
- if (p_identifier_str.charAt(0) != "$")
- {
- trace ("WARNING: LocalizationManager::getGlobalLocalizedString - Identifier is not formated corrently: " + p_identifier_str + _loc2);
- }
- else if (p_identifier_str == "" || p_identifier_str == undefined)
- {
- trace ("WARNING: LocalizationManager::getGlobalLocalizedString - Identifier is empty or undefined: " + p_identifier_str + _loc2);
- } // end else if
- var _loc3 = String(flash.external.ExternalInterface.call("getGloballyLocalizedString", p_identifier_str));
- if (_loc3 == undefined || _loc3 == null)
- {
- _loc3 = p_identifier_str;
- trace ("WARNING: LocalizationManager::getGlobalLocalizedString -" + p_identifier_str + " was not resolved corrently: " + _loc2);
- } // end if
- return (_loc3);
- } // End of the function
- static function getLanguageID()
- {
- return (Number(flash.external.ExternalInterface.call("GetLanguage")));
- } // End of the function
- static function getLocalizedString(p_identifier_str)
- {
- var _loc2 = _global.localization_obj;
- if (_loc2 != null)
- {
- return (String(_loc2.getString(p_identifier_str)));
- } // end if
- return (null);
- } // End of the function
- static var LANG_ENGLISH = 0;
- static var LANG_FRENCH = 1;
- static var LANG_GERMAN = 2;
- static var LANG_ITALIAN = 3;
- static var LANG_SPANISH = 4;
- static var LANG_JAPANESE = 5;
- static var LANG_PORTUGUESE = 6;
- static var LANG_POLISH = 7;
- static var LANG_UK_ENGLISH = 8;
- static var LANG_RUSSIAN = 9;
- static var LANG_CZECH = 10;
- static var LANG_DUTCH = 11;
- static var LANG_HUNGARIAN = 12;
- static var LANG_ARABIC = 13;
- static var LANG_KOREAN = 14;
- static var LANG_CHINESE = 15;
- } // End of Class
- #endinitclip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement