locale.js (1003B)
1 /* 2 * This file is part of the JerryMouse Framework. 3 * 4 * JerryMouse is free software; you can redistribute and/or modify it under the 5 * terms of the GNU General Public License version 2 as published by the 6 * Free Software Foundation. 7 * 8 * This library is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * Library General Public License for more details. 12 * 13 */ 14 15 Ext.locales = { 16 de_DE: { 17 "flag": "de", 18 "name": "Deutsch (Deutschland)", 19 "dateformat": "d.m.Y H:i:s T" 20 }, 21 en_US: { 22 "flag": "us", 23 "name": "English (USA)", 24 "dateformat": "n/j/Y H:i:s T" 25 } 26 }; 27 28 Ext.setLocale = function (locale) { 29 Ext.jm_locale = locale; 30 }; 31 32 Ext.getLocale = function () { 33 return Ext.jm_locale; 34 }; 35 36 Ext.getLocaleFlag = function () { 37 return Ext.locales[Ext.jm_locale].flag; 38 }; 39 40 Ext.getDateFormat = function () { 41 return Ext.locales[Ext.jm_locale].dateformat; 42 };