[pLog-CVS] plog/class/locale locale.class.php,1.6,1.7
Brought to you by:
jondaley
From: Oscar R. <phu...@us...> - 2004-04-17 22:02:52
|
Update of /cvsroot/plog/plog/class/locale In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26109/class/locale Modified Files: locale.class.php Log Message: added an exception to the Locale::getLanguageId() method, for simplified chinese. Index: locale.class.php =================================================================== RCS file: /cvsroot/plog/plog/class/locale/locale.class.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** locale.class.php 26 Mar 2004 05:15:48 -0000 1.6 --- locale.class.php 17 Apr 2004 22:02:40 -0000 1.7 *************** *** 220,224 **** function getLanguageId() { ! return substr( $this->_code, 0, 2 ); } --- 220,230 ---- function getLanguageId() { ! $CountryId = substr( $this->_code, 3, 5 ); ! if ( strcmp( $CountryId, "TW" ) == 0 ) { ! return substr( $this->_code, 0, 5 ); ! } ! else { ! return substr( $this->_code, 0, 2 ); ! } } |