How to translate Open-Realty into a different language
From Open-Realty Wiki
Translating Open-Realty is not a difficult task, but it is time consuming as our language file is quite large, please follow the following steps to make a translation.
1. Dowload the latest English install language file from SVN, by clicking | here. (Right click and save link to download the file)
2.Dowload the latest main English language file from SVN, by clicking | here. (Right click and save link to download the file)
3. Open the files in your favorite text editor, you will see a list array values for the $lang array, like this. $lang['access_denied'] = "Access Denied";
4. Change the array values only, so change only the "Access Denied" on the variable above, do not modify the array key, which is the $lang['access_denied'] this must remain as it is in the English file.
5. Once you have completed translating both files, you need to save them. You need to know the 2 letter abbreviation for you language. You can look it up in | ISO 639.
6. The install language file needs to be saved in install/lang/??/lang.inc.php where ?? is the 2 letter country code.
7. The install language file needs to be saved in include/language/??/lang.inc.php where ?? is the 2 letter country code.
Now you need to make once change the the installer so it loads lets you choose your new language file during installation.
8. Edit the install/index.php file and find the run_installer_1() function, it will look like this.
function run_installer_1()
{
echo '<form name="form1" method="post" action="index.php?step=2">
Language:
<select name="lang">
<option value="en" selected="selected">English</option>
</select>
<input type="submit" name="Submit" value="Submit" />
</form>';
}
9. Add a new option line for your language, make the value of the option the 2 letter abbreviation from above.
So if you are adding the French language, you would add a line that look like this.. <option value="fr" selected="selected">French</option>
10. Save the index.php file and install open-realty using your new language file. Please consider contributing the translation back to the project. You can email it to mick73 at sbcglobal dot net. with a subject of "Complete Translation for Open-Realty", and it will be included in the next release.
Admin Icons
The Admin Icons contain text on them that is done in English. You can edit and translate the icons to your langauge as well.
Languaged Admin Icons are located at /admin/images/lang
You can edit these icons and save them to a directory with your language using the two character language code you used for your language translation.
