From: Alan Knowles Date: Thu, 16 Sep 2010 03:45:28 +0000 (+0800) Subject: I18n.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=502b97f850291fe12cc84cb13c07f83af1602ca4;p=Pman.Core I18n.php --- diff --git a/I18n.php b/I18n.php index 45c5dc42..ac94cb0c 100644 --- 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),