|
Helping ordinary people create extraordinary websites! |
Internationalisation and my PHP Development InfrastructureBy Tony Marston2005-07-17
My Implementation - Handling Dates I already use a standardised class to handle all my date validation (refer to A class for validating and formatting dates) so all I needed to do was change this: $this->monthalpha = array(1 => 'Jan','Feb','Mar','Apr','May','Jun', or $this->monthalpha = array(1 => 'Janv', 'Févr', 'Mars', 'Avr', 'Mai', 'Juin', to this: $this->monthalpha = getLanguageArray('month_names_short'); As my default output format for dates is 'dd Mmm yyyy' this means that the 'Mmm' portion will use whatever language text is available. Please note the following:
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 |
|