Advertisement
Guest User

Untitled

a guest
Mar 17th, 2013
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Action script...
  2.  
  3. // [Initial MovieClip Action of sprite 300]
  4. #initclip 11
  5. class LocalizationManager
  6. {
  7.     function LocalizationManager()
  8.     {
  9.     } // End of the function
  10.     static function getGlobalLocalizedString(p_identifier_str, caller)
  11.     {
  12.         var _loc2 = "";
  13.         if (caller != null || caller != undefined)
  14.         {
  15.             _loc2 = "\n\t\t componant caller :" + caller._target;
  16.         } // end if
  17.         if (p_identifier_str.charAt(0) != "$")
  18.         {
  19.             trace ("WARNING: LocalizationManager::getGlobalLocalizedString - Identifier is not formated corrently: " + p_identifier_str + _loc2);
  20.         }
  21.         else if (p_identifier_str == "" || p_identifier_str == undefined)
  22.         {
  23.             trace ("WARNING: LocalizationManager::getGlobalLocalizedString - Identifier is empty or undefined: " + p_identifier_str + _loc2);
  24.         } // end else if
  25.         var _loc3 = String(flash.external.ExternalInterface.call("getGloballyLocalizedString", p_identifier_str));
  26.         if (_loc3 == undefined || _loc3 == null)
  27.         {
  28.             _loc3 = p_identifier_str;
  29.             trace ("WARNING: LocalizationManager::getGlobalLocalizedString -" + p_identifier_str + " was not resolved corrently: " + _loc2);
  30.         } // end if
  31.         return (_loc3);
  32.     } // End of the function
  33.     static function getLanguageID()
  34.     {
  35.         return (Number(flash.external.ExternalInterface.call("GetLanguage")));
  36.     } // End of the function
  37.     static function getLocalizedString(p_identifier_str)
  38.     {
  39.         var _loc2 = _global.localization_obj;
  40.         if (_loc2 != null)
  41.         {
  42.             return (String(_loc2.getString(p_identifier_str)));
  43.         } // end if
  44.         return (null);
  45.     } // End of the function
  46.     static var LANG_ENGLISH = 0;
  47.     static var LANG_FRENCH = 1;
  48.     static var LANG_GERMAN = 2;
  49.     static var LANG_ITALIAN = 3;
  50.     static var LANG_SPANISH = 4;
  51.     static var LANG_JAPANESE = 5;
  52.     static var LANG_PORTUGUESE = 6;
  53.     static var LANG_POLISH = 7;
  54.     static var LANG_UK_ENGLISH = 8;
  55.     static var LANG_RUSSIAN = 9;
  56.     static var LANG_CZECH = 10;
  57.     static var LANG_DUTCH = 11;
  58.     static var LANG_HUNGARIAN = 12;
  59.     static var LANG_ARABIC = 13;
  60.     static var LANG_KOREAN = 14;
  61.     static var LANG_CHINESE = 15;
  62. } // End of Class
  63. #endinitclip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement