[pLog-svn] r1893 - plog/branches/plog-1.0.1/class/locale

mark at devel.plogworld.net mark at devel.plogworld.net
Thu Apr 21 15:18:55 GMT 2005


Author: mark
Date: 2005-04-21 15:16:37 +0000 (Thu, 21 Apr 2005)
New Revision: 1893

Modified:
   plog/branches/plog-1.0.1/class/locale/locale.class.php
Log:
Modify the languageId to langId-countryId (Only apply to TW and CN country code)

Modified: plog/branches/plog-1.0.1/class/locale/locale.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/locale/locale.class.php	2005-04-20 21:54:32 UTC (rev 1892)
+++ plog/branches/plog-1.0.1/class/locale/locale.class.php	2005-04-21 15:16:37 UTC (rev 1893)
@@ -302,9 +302,10 @@
          */
 		function getLanguageId()
 		{
-            $CountryId = substr( $this->_code, 3, 5 ); 
-            if ( strcmp( $CountryId, "TW" ) == 0 || strcmp( $CountryId, "CN") ==0 ) { 
-                return substr( $this->_code, 0, 5 ); 
+            $countryId = substr( $this->_code, 3, 5 ); 
+            if ( strcmp( $countryId, "TW" ) == 0 || strcmp( $countryId, "CN") ==0 ) { 
+                $langId = substr( $this->_code, 0, 2 ); 
+                return $langId."-".$countryId;
             } 
             else { 
                 return substr( $this->_code, 0, 2 ); 




More information about the pLog-svn mailing list