projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4162878
)
I18n.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 16 Sep 2010 03:45:28 +0000
(11:45 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 16 Sep 2010 03:45:28 +0000
(11:45 +0800)
I18n.php
patch
|
blob
|
history
diff --git
a/I18n.php
b/I18n.php
index
45c5dc4
..
ac94cb0
100644
(file)
--- a/
I18n.php
+++ b/
I18n.php
@@
-209,11
+209,17
@@
class Pman_Core_i18N extends Pman
foreach($this->cfg[$type] as $k) {
+ $sub = false;
if (strpos($k, '_') !== false) {
- $k = array_shift(explode('_', $k));
+ $bits = explode('_', $k);
+ $k = array_shift($bits);
+ $sub = array_shift($bits);
}
$v = $k == '**' ? 'Other' : $obj->getName($k);
+ if ($sub) {
+ print_r($obj);exit;
+ }
$ret[] = array(
'code'=> $type=='l' ? strtolower($k) : strtoupper($k),