projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9e04a81
)
I18n.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 16 Sep 2010 04:55:54 +0000
(12:55 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 16 Sep 2010 04:55:54 +0000
(12:55 +0800)
I18n.php
patch
|
blob
|
history
diff --git
a/I18n.php
b/I18n.php
index
6d81cc9
..
9146cc0
100644
(file)
--- a/
I18n.php
+++ b/
I18n.php
@@
-209,6
+209,7
@@
class Pman_Core_i18N extends Pman
foreach($this->cfg[$type] as $k) {
$sub = false;
+
if (strpos($k, '_') !== false) {
$bits = explode('_', $k);
$k = array_shift($bits);
@@
-221,7
+222,7
@@
class Pman_Core_i18N extends Pman
}
$ret[] = array(
- 'code'=> $type=='l' ? strtolower($k) : strtoupper($k),
+ 'code'=> $type=='l' ? strtolower($k) : strtoupper($k)
. ($sub ? '_'.strtoupper($sub) : '')
,
'title' => $v
);
}