projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7686f6f
)
I18n.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 21 Dec 2011 08:36:43 +0000
(16:36 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 21 Dec 2011 08:36:43 +0000
(16:36 +0800)
I18n.php
patch
|
blob
|
history
diff --git
a/I18n.php
b/I18n.php
index
9192c0d
..
53a0344
100644
(file)
--- a/
I18n.php
+++ b/
I18n.php
@@
-200,6
+200,19
@@
class Pman_Core_I18N extends Pman
+ }
+ /**
+ * translate a list
+ */
+
+ function translateList($au, $type, $k)
+ {
+ $ar = explode(',', $k);
+ $ret = array();
+ foreach($ar as $kk) {
+ $ret[] = $this->translate($au, $type, $kk);
+ }
+ return implode(', ', $ret);
}