To make other languages possible it is maybe a good idea not to work with hard-coded language in the php files, but with variables. And supply a seperate file with all the translations of these variables.
Example:
In the form-handling you get a page with all the filled fields when you press "send". That page is in German. It says something like: "Felden" und "Wert" or something.
A variation could be: $text1 and $text2.
And in a seperate language file:
$text1 = "Felden";
$text2 = "Wert";
So people can easily translate the whole file with maybe hundreds of lines like: $text345 etc.
Also easy when installing updates.
Text-module for easy install languages
- Oliver Georgi
- Site Admin
- Posts: 9906
- Joined: Fri 3. Oct 2003, 22:22
- Contact: