12-23-2008, 09:19 AM
What it does:
Before the script displays all the data, the translation plugin checks if there is text that stands in $original[x] and if it finds this text, it replaces it with the translation in $replacement[x]
==> So it translates the script!
Here is the plugin for multiple languages:
link for 1.01
link for 1.1
Installation:
- extract this zip file to your THT folder, overwrite the files who are double.
- add this to your database:
where <PRE> mostly stands for tht_ or something else that you have submitted in the installation
-select your language in the admin control panel (global configuration ->language )
if you want to make your own translation, do this
- 'includes/language.php'
-You have to make a folder with the name of your language in includes/language , for example include/language/dutch
Make here the file translation.php, in translation.php has to stand the translation of the $original
example:
If you want to translate more things, just copy the english text and paste it inand make the translation in
Watch out if there stands <br> or something else, leave this! Else the text won't be good translated! (if it has to translate "hello my name is alfaleader" and it translates 'hello' to 'hallo' , but after this it searches for "hello my name is alfaleader" and it doesn't find this because it's already changed to "hallo my name is alfaleader")
Before the script displays all the data, the translation plugin checks if there is text that stands in $original[x] and if it finds this text, it replaces it with the translation in $replacement[x]
==> So it translates the script!
Here is the plugin for multiple languages:
link for 1.01
link for 1.1
Installation:
- extract this zip file to your THT folder, overwrite the files who are double.
- add this to your database:
PHP Code:
INSERT INTO `<PRE>config` (`name`, `value`) VALUES ('language', 'english');
-select your language in the admin control panel (global configuration ->language )
if you want to make your own translation, do this
- 'includes/language.php'
PHP Code:
<?
... //here is some code
$original[0] = 'Step One - Choose Hosting'; //order forms start
$original[1] = 'Domain/Subdomain:';
... // here also some code
?>
-You have to make a folder with the name of your language in includes/language , for example include/language/dutch
Make here the file translation.php, in translation.php has to stand the translation of the $original
example:
PHP Code:
<?
$replacement[0] = 'Stap 1 - Hosting Selecteren'; // Step One - Choose Hosting translated
$replacement[1] = 'Domein/Subdomein:'; // Domain/Subdomain translated
...
?>
If you want to translate more things, just copy the english text and paste it in
PHP Code:
$original[x] = 'paste here'; // x is a number
PHP Code:
$replacement[x] = 'translation';
Watch out if there stands <br> or something else, leave this! Else the text won't be good translated! (if it has to translate "hello my name is alfaleader" and it translates 'hello' to 'hallo' , but after this it searches for "hello my name is alfaleader" and it doesn't find this because it's already changed to "hallo my name is alfaleader")