kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
46 wiersze
748 B
JavaScript
46 wiersze
748 B
JavaScript
|
function loadi18n()
|
||
|
{
|
||
|
$.i18n().load(
|
||
|
{
|
||
|
en: "i18n/en.json",
|
||
|
es: "i18n/es.json",
|
||
|
cn: "i18n/cn.json",
|
||
|
de: "i18n/de.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"
|
||
|
}).done(function ()
|
||
|
{
|
||
|
renderI18n(window.opener.g_appSettings.locale);
|
||
|
addControls();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
function renderLocale()
|
||
|
{
|
||
|
renderI18n(g_appSettings.locale);
|
||
|
}
|