Translate location

lukaszxm

New member
Joined
Apr 26, 2020
Messages
3
hello,
I'm having trouble finding where the option translation in DA is defined. Under CMD_ADMIN_STATS are resource usage statistics, which in English are displayed in the table correctly while in other languages not necessarily. This is most likely due to the fact that in other languages a word after translation may consist of several words. For example, "Filesystem" in Polish is "System plików", which makes the second word treated as another column in the table (for which the |DF| variable in the data/skins/SKIN/admin/admin_stats.html file is responsible). The last column, in turn, is a combination of "Mounted on" and "Use%". Is it somehow possible to overwrite the translation in the table under the |DF| variable without replacing the value of this variable?

debug with Polish language set:
31: DF=<table class='list table-highlight' cellpadding=3 cellspacing=1>
<tr ><td class=listtitle><b><a class=listtitle href='?redirect=yes&sort1=-1'>System</a></b></td >
<td class=listtitle><a class=listtitle href='?redirect=yes&sort1=2'>plików</a></td >
<td class=listtitle><a class=listtitle href='?redirect=yes&sort1=3'>rozm.</a></td >
<td class=listtitle><a class=listtitle href='?redirect=yes&sort1=4'>użyte</a></td >
<td class=listtitle><a class=listtitle href='?redirect=yes&sort1=5'>dost.</a></td >
<td class=listtitle><a class=listtitle href='?redirect=yes&sort1=6'>%uż. zamont. na</a></td >
</tr >

debug with English language set:
31: DF=<table class='list table-highlight' cellpadding=3 cellspacing=1>
<tr ><td class=listtitle><b><a class=listtitle href='?redirect=yes&sort1=-1'>Filesystem</a></b></td >
<td class=listtitle><a class=listtitle href='?redirect=yes&sort1=2'>Size</a></td >
<td class=listtitle><a class=listtitle href='?redirect=yes&sort1=3'>Used</a></td >
<td class=listtitle><a class=listtitle href='?redirect=yes&sort1=4'>Avail</a></td >
<td class=listtitle><a class=listtitle href='?redirect=yes&sort1=5'>Use%</a></td >
<td class=listtitle><a class=listtitle href='?redirect=yes&sort1=6'>Mounted on</a></td >
</tr >
 
I will add that the skin is enhanced. In the skin evolution displays correctly.
 
This skin not maintained anymore, I'm not sure DA team will help. Maybe somebody on forum.
Also a lot of things will not be shown/described in old skin.
Maybe better to finish Polish translation, currently 62% only, and switch to it?
 
Thanks for the reply.
The translation is fine, the problem occurs when displaying it in the table header. "Filesystem" in Polish is "System plików", so 2 words, but DA treats it as a separate column name. It looks like this:
1696840569847.png



It should look like this:
1696840665918.png



I suppose there's nothing left to do but https://docs.directadmin.com/direct...ates/enhanced.html#how-to-translate-hardcoded
 
easiest way - remove second word, and keep just "System"
or replace it with "Partition" or similar word which better explains
 
Back
Top