Support more system languages

This commit is contained in:
pandamicro 2016-12-13 09:51:46 +08:00
parent 197dac204b
commit b50ea4afce
1 changed files with 36 additions and 0 deletions

View File

@ -1056,6 +1056,38 @@ var _initSys = function () {
*/ */
sys.LANGUAGE_POLISH = "pl"; sys.LANGUAGE_POLISH = "pl";
/**
* Turkish language code
* @constant
* @default
* @type {Number}
*/
sys.LANGUAGE_TURKISH = "tr";
/**
* Ukrainian language code
* @constant
* @default
* @type {Number}
*/
sys.LANGUAGE_UKRAINIAN = "uk";
/**
* Romanian language code
* @constant
* @default
* @type {Number}
*/
sys.LANGUAGE_ROMANIAN = "ro";
/**
* Bulgarian language code
* @constant
* @default
* @type {Number}
*/
sys.LANGUAGE_BULGARIAN = "bg";
/** /**
* Unknown language code * Unknown language code
* @memberof cc.sys * @memberof cc.sys
@ -1340,6 +1372,10 @@ var _initSys = function () {
case 12: return sys.LANGUAGE_ARABIC; case 12: return sys.LANGUAGE_ARABIC;
case 13: return sys.LANGUAGE_NORWEGIAN; case 13: return sys.LANGUAGE_NORWEGIAN;
case 14: return sys.LANGUAGE_POLISH; case 14: return sys.LANGUAGE_POLISH;
case 15: return sys.LANGUAGE_TURKISH;
case 16: return sys.LANGUAGE_UKRAINIAN;
case 17: return sys.LANGUAGE_ROMANIAN;
case 18: return sys.LANGUAGE_BULGARIAN;
default : return sys.LANGUAGE_ENGLISH; default : return sys.LANGUAGE_ENGLISH;
} }
})(); })();