|
Helping ordinary people create extraordinary websites! |
Internationalisation and my PHP Development InfrastructureBy Tony Marston2005-07-17
My Implementation - File Names Within the 'help' directory there will be a separate file for each PHP script with the suffix '.help.txt'. For example, the script 'person_list.php' will have 'person_list.php.help.txt'. In my full development infrastructure I will use the task_id instead od the script_id. Within the 'screens' subdirectory there will be a separate file for each screen structure with the suffix '.screen.inc'. Within the 'text' subdirectory there will be the following files:
For each installation there will also be a 'sys.language_text.inc' and 'sys.language_array.inc' to contain all the translatable text required by the system libraries. In the sample application these will reside in the 'sample/text/' directory, but in my full infrastructure these will reside in the 'menu/text/' directory. These 'system' files contains the text that may be used by any of the system libraries (controller scripts, validation class, generic table class and DML class) regardless of the application in which any paricular component belongs. This means that:
Tutorial Pages: » Introduction » Possible Methods » Design Decisions » My Implementation - Directory Structure » My Implementation - File Names » My Implementation - Determine User Language » My Implementation - Locate Language Subdirectory » My Implementation - Load Screen Structure file » My Implementation - Get Language Text » My Implementation - Get Language Array » My Implementation - Handling Dates » My Implementation - Handling Numbers » Conclusion » References |
|