|
PHP applications generated by ASPRunner support over 30 languages.
Language files (*.lng) are located in the lang directory.
If you would like to add support for a new language, create a copy of
english.lng and translate all phrases. Then modify the languages.cfg
file adding a new line as follwows:
<language filename="YourLanguageFile.lng"
name="LanguageName"
lcid="1033" codepage="1252"
charset="Windows-1252"
/>
filename - name of the new
.lng file
name - language name as it
would appear in PHPRunner wizard
lcid - LCID (the list of
LCIDs can be found at http://www.xlinesoft.com/asprunnerpro/articles/asp_regional_settings.htm)
codepage - codepage code for
your language can be found at http://en.wikipedia.org/wiki/Code_page
charset - charset code for
your language can be found at http://www.w3.org/International/O-charset-list.html
To choose one or more languages proceed to the Miscellaneous tab in
PHPRunner. PHPRunner treats situations with single and multiple
selected languages differently.
Example:
In list.htm template file you can see the following code snippet: ##message
PRINTER_FRIENDLY##. If
your application uses one language only this code will be replaced
with the actual message i.e. 'Printer-friendly
version'.
If you have selected multiple languages this snippet will be replaced
with the following Smarty tag: {mlang_message
tag="PRINTER_FRIENDLY"}. This tag is processed by
smarty template engine in runtime.
|