hledani v carovejch kodech
[mirrors/SokoMan.git] / lib / Locale.class.php
index a8c3d97e622313613a6031777f26a787f155939d..169fd0481a80275874fcf8b8e83529718b9154c9 100755 (executable)
 
 require_once(DIR_LOCALE.'/'.LOCALE_LANG.'/messages.inc.php');
 
+//Wrap regexes with slashes
 foreach($LOCALE_MESSAGES['regexp'] as $regexp => $replace) {
        $LOCALE_MESSAGES['regexp']['/'.$regexp.'/i'] = $LOCALE_MESSAGES['regexp'][$regexp];
        unset($LOCALE_MESSAGES['regexp'][$regexp]);
 }
 
+//Uppercase alternative
+/*$LOCALE_MESSAGES['map'] = array_merge($LOCALE_MESSAGES['map'],
+       array_flip(array_map('strtoupper',array_flip(array_map('strtoupper',$LOCALE_MESSAGES['map']))))
+);*/
+
 /**
  * !!! IMPORTANT NOTICE: This is ugly hack !!!
  * !!! You should rather use PHP's internal gettext support !!!
This page took 0.119126 seconds and 4 git commands to generate.