X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=lib%2FLocale.class.php;h=169fd0481a80275874fcf8b8e83529718b9154c9;hb=003705070a4e9108a1c48cbc3be1acb8c148f805;hp=a8c3d97e622313613a6031777f26a787f155939d;hpb=326a9fc904b2a1e303abd2e3bc5b521603579be8;p=mirrors%2FSokoMan.git diff --git a/lib/Locale.class.php b/lib/Locale.class.php index a8c3d97..169fd04 100755 --- a/lib/Locale.class.php +++ b/lib/Locale.class.php @@ -19,11 +19,17 @@ 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 !!!