GIT.Harvie.CZ
/
mirrors
/
SokoMan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Blbuvzdorny prohledavani polozek skladem
[mirrors/SokoMan.git]
/
lib
/
Locale.class.php
diff --git
a/lib/Locale.class.php
b/lib/Locale.class.php
index a8c3d97e622313613a6031777f26a787f155939d..169fd0481a80275874fcf8b8e83529718b9154c9 100755
(executable)
--- a/
lib/Locale.class.php
+++ b/
lib/Locale.class.php
@@
-19,11
+19,17
@@
require_once(DIR_LOCALE.'/'.LOCALE_LANG.'/messages.inc.php');
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]);
}
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 !!!
/**
* !!! IMPORTANT NOTICE: This is ugly hack !!!
* !!! You should rather use PHP's internal gettext support !!!
This page took
0.089038 seconds
and
4
git commands to generate.