|
Helping ordinary people create extraordinary websites! |
Internationalisation and my PHP Development InfrastructureBy Tony Marston2005-07-17
My Implementation - Get Language Array Individual arrays of translated text will be extracted from the relevant 'language_array.inc' or 'sys.language_array.inc' files using the following function: function getLanguageArray ($id) Please note the following:
This new function should be used to obtain any array where the values will be displayed to the user. For example, instead of: $languages = array('en' => 'English', you should use the following: $languages = getLanguageArray('languages'); 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 |
|