52 lines
1.3 KiB
PHP
52 lines
1.3 KiB
PHP
<?php
|
|
/* Smarty version 3.1.30, created on 2026-04-24 12:54:52
|
|
from "/home/www/_rejestracja/template/partial/Translate/Js.tpl" */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '3.1.30',
|
|
'unifunc' => 'content_69eb4bfca07521_76532545',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'350a3dbafb8076b007438521d07bfc79b90689cb' =>
|
|
array (
|
|
0 => '/home/www/_rejestracja/template/partial/Translate/Js.tpl',
|
|
1 => 1475930284,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_69eb4bfca07521_76532545 (Smarty_Internal_Template $_smarty_tpl) {
|
|
?>
|
|
var TranslateArray = new Array();
|
|
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['lang']->value, 'l', false, 'k');
|
|
if ($_from !== null) {
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['l']->value) {
|
|
?>
|
|
TranslateArray['<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|
'] = '<?php echo $_smarty_tpl->tpl_vars['l']->value;?>
|
|
';
|
|
<?php
|
|
}
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
|
?>
|
|
|
|
|
|
|
|
function translate(label) {
|
|
if (TranslateArray[label] == undefined) {
|
|
return label;
|
|
} else {
|
|
return TranslateArray[label];
|
|
}
|
|
}
|
|
<?php }
|
|
}
|