kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
48 wiersze
800 B
JavaScript
48 wiersze
800 B
JavaScript
function loadi18n()
|
|
{
|
|
$.i18n().load(
|
|
{
|
|
en: "i18n/en.json",
|
|
es: "i18n/es.json",
|
|
cn: "i18n/cn.json",
|
|
de: "i18n/de.json",
|
|
ja: "i18n/ja.json"
|
|
}).done(function ()
|
|
{
|
|
$.i18n().locale = g_appSettings.locale;
|
|
});
|
|
}
|
|
|
|
function renderI18n(locale)
|
|
{
|
|
$.i18n().locale = locale;
|
|
$("body").i18n();
|
|
}
|
|
|
|
function changeLocale()
|
|
{
|
|
g_appSettings.locale = languageLocale.value;
|
|
renderI18n(g_appSettings.locale);
|
|
}
|
|
|
|
function loadRosteri18n()
|
|
{
|
|
$.i18n().load(
|
|
{
|
|
en: "i18n/en.json",
|
|
es: "i18n/es.json",
|
|
cn: "i18n/cn.json",
|
|
de: "i18n/de.json",
|
|
js: "i18n/ja.json"
|
|
}).done(function ()
|
|
{
|
|
renderI18n(window.opener.g_appSettings.locale);
|
|
addControls();
|
|
});
|
|
}
|
|
|
|
function renderLocale()
|
|
{
|
|
renderI18n(g_appSettings.locale);
|
|
}
|