File Manager

adwebmaster

Verified User
Joined
Feb 17, 2006
Messages
6
I will explan my trouble. In the directadmin panel on file manager page they have some text in "DIRECTORYLIST" where i couldn't translate in any other language. I would say where is the file i could modify to translate this one?

Thank's very much :)
 

Attachments

  • traduct_hmorneau.jpg
    traduct_hmorneau.jpg
    66.8 KB · Views: 274
Last edited:
Hum, i have other trouble it's about same thing. Because i would translate many more option in a different page in direct admin. They are juste in english and i couldn't found the translation on language files.

You could help me please??:confused:
 
Ho ok but do you have a solution for me to translate this? Because i want very to translate. Plus, i dont have any .php file that cause a problem because i couldn't translate any thing for many french cunsumer.

Very so much to help me :)
 
Some pages of DA can't be translated with 'preg_replace' due the execution are chrooted and your translation php code on page are not executed.

The only solution I encounter is work on the client side with javascript, but you need to modify the HEAD section to include your translation script due if you include the script in BODY section the script is also translated, and finally you need to modify the BODY tag to call your script 'onload'.

Example:
Code:
|?BODY=onload="Trans_DA()"|
<head>
.
.
<script language="javascript">
<!--
function Trans_DA(){
document.body.innerHTML=document.body.innerHTML.replace("to_translate","translated ");
document.body.innerHTML=document.body.innerHTML.replace("to_translate_1","translated_1");
}
// -->
</script>
</head>
This is only and example, if you need to translate many strings perhaps he is more interesting to use a loop.

Hope this help.
Ramon
 
Back
Top