Need tokens for internal lang file

bit

Verified User
Joined
Apr 23, 2015
Messages
57
Without internal lang tokens hard make universal function for skin programing.
Some situation:

1) This code work fine without use internal lang
Code:
|*if NDOMAINSMAX="unlimited"|
	<li><span>|LANG_DOMAINS|:</span>|NDOMAINS|</li>
|*else|
	<li><span>|LANG_DOMAINS|:</span>|NDOMAINS| / |NDOMAINSMAX|</li>
|*endif|

but with internal lang we another word than unlimited.

2) This JS code be work only for english internal lang too:
Code:
$("table.list").each(function(){$(this).find("tr:first td:contains('Advanced Search')").parent().remove();});

Be fine if i can use Internal lang Tokens as:

Code:
|*if NDOMAINSMAX="`LANG_INTERNAL_COMMAND#66`"|
	<li><span>|LANG_DOMAINS|:</span>|NDOMAINS|</li>
|*else|
	<li><span>|LANG_DOMAINS|:</span>|NDOMAINS| / |NDOMAINSMAX|</li>
|*endif|

and

Code:
$("table.list").each(function(){$(this).find("tr:first td:contains('|LANG_INTERNAL_TABLE#14|')").parent().remove();});

or have more customisation table.

Thank you for help.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,255
Location
GMT +7.00
I'm not against language tokens. And that's John who to make a decision. I wonder why do you use JS to change structure of tables on a page? Hasn't it more sense to do it on a server side?
 

bit

Verified User
Joined
Apr 23, 2015
Messages
57
I'm not against language tokens. And that's John who to make a decision. I wonder why do you use JS to change structure of tables on a page? Hasn't it more sense to do it on a server side?

Its be examples but current tables in directadmin is not very simple for customization. Some action more easy make on JS than on php and string replace. Be great if we can make new skins without specific patches on another programming languages for customization.
 
Top