From 664990b048398996eeb65bdc523b3dc5a065199f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 16 Sep 2010 12:55:54 +0800 Subject: [PATCH] I18n.php --- I18n.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/I18n.php b/I18n.php index 6d81cc9f..9146cc05 100644 --- 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 ); } -- 2.39.2