projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e39e876
)
I18n.php
author
Alan Knowles
<alan@akbkhome.com>
Tue, 20 Jul 2010 04:15:23 +0000
(12:15 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 20 Jul 2010 04:15:23 +0000
(12:15 +0800)
I18n.php
patch
|
blob
|
history
diff --git
a/I18n.php
b/I18n.php
index
02322c8
..
7316580
100644
(file)
--- a/
I18n.php
+++ b/
I18n.php
@@
-204,10
+204,14
@@
class Pman_Core_i18N extends Pman
}
function objToList($type, $obj) {
$ret = array();
- foreach($obj->codes as $k=>$v) {
+
+
+
+ foreach($this->cfg[$type] as $k) {
+ $v = $obj->getName($k);
$ret[] = array(
- 'code'=> $type=='l' ? strtolower($k) : strtoupper($k)
,
+ 'code'=> $type=='l' ? strtolower($k) : strtoupper($k),
'title' => $v
);
}