I'm translating the enhanced skin English language to Russian language.
Translating text variables is not difficult, but translating hardcoded results really hard to me.
I read tutorials on site and this one:
- there is a help on how-to:
http://help.directadmin.com/item.php?id=74
but i have a trouble to apply it.
Mine translate realization principles:
Content of file:
In file:
i have:
Content of file:
P.S.
file:
contains the line:
P.P.S. DirectAdmin version 1.31.0, enhanced skin downloaded from this site.
About all of these: the code not work, and it's no matter to use ' or " in the code.
I need help and any advices.
Translating text variables is not difficult, but translating hardcoded results really hard to me.
I read tutorials on site and this one:
- there is a help on how-to:
http://help.directadmin.com/item.php?id=74
but i have a trouble to apply it.
Mine translate realization principles:
Content of file:
Code:
user/server_info.html
HTML:
|?TREE=» <a class=tree href="/CMD_SYSTEM_INFO">`LANG_SYS_INFO`</a>|
|?HELP_SECTION=`USER_HELPER`/misc.html#serverinfo|
|HTM_USER_TOP|
|HTM_HTOKEN_SERVERINFO_TABLE|
|HTM_USER_BOTTOM|
In file:
Code:
files_user.conf
HTML:
HTM_HTOKEN_SERVERINFO_TABLE=tables/serverinfo.html
Content of file:
Code:
tables/serverinfo.html
HTML:
|$/usr/local/bin/php
<?php
if ("|LANG_LANG|"=='RUS'){
$data = <<<END
|SERVERINFO|
END;
$data = str_replace('Name</a>', 'Íàèìåíîâàíèå</a>', $data);
$data = str_replace('Running', 'Çàïóùåí', $data);
$data = str_replace('Value</a>', 'Çíà÷åíèå</a>', $data);
echo $data;
}else {
echo<<<END
|SERVERINFO|
END;
}
?>
DONE|
P.S.
file:
Code:
lang/ru/lf_standard.html
HTML:
LANG_LANG=RUS
P.P.S. DirectAdmin version 1.31.0, enhanced skin downloaded from this site.
About all of these: the code not work, and it's no matter to use ' or " in the code.
I need help and any advices.