|
Root.getLocale () |
|
function checks if language and country were specified
for root. if so, it returns the specified Locale-object
otherwise it returns the default locale of the JVM |
Sourcecode in Root/objectFunctions.js:
1: function getLocale() {
2: var locale = this.cache.locale;
3: if (locale)
4: return locale;
5: if (this.sys_language)
6: locale = new java.util.Locale(this.sys_language, this.sys_country ? this.sys_country : "");
7: else
8: locale = java.util.Locale.getDefault();
9: this.cache.locale = locale;
10: return locale;
11: }
|