[pLog-svn] r5286 - plog/branches/lifetype-1.2/locale

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sat Apr 7 16:27:05 EDT 2007


Author: jondaley
Date: 2007-04-07 16:27:04 -0400 (Sat, 07 Apr 2007)
New Revision: 5286

Modified:
   plog/branches/lifetype-1.2/locale/locale_en_US.php
Log:
noted deficiency in the way I am using en_US piggyback locale.  It only works because if a plugin can't find a locale file, it falls back to en_UK.  It could be solved by adding a en_US piggyback in each plugin too.  It works for en_US, but if someone wants to copy this for some other language it won't work

Modified: plog/branches/lifetype-1.2/locale/locale_en_US.php
===================================================================
--- plog/branches/lifetype-1.2/locale/locale_en_US.php	2007-04-07 20:15:17 UTC (rev 5285)
+++ plog/branches/lifetype-1.2/locale/locale_en_US.php	2007-04-07 20:27:04 UTC (rev 5286)
@@ -1,6 +1,11 @@
 <?php
 
 // include UK messages, and then just change the ones we don't like
+
+// NOTE: there is a problem with this method due to the way the language
+//       file is grabbed for plugins, so this method only works for
+//       English, unless you want to create a locale file for each plugin
+
 include(PLOG_CLASS_PATH . "locale/locale_en_UK.php" );  
 
 $messages['locale_description'] = 'English/American locale file for LifeType';



More information about the pLog-svn mailing list