From: Alan Knowles Date: Wed, 21 Dec 2011 08:36:43 +0000 (+0800) Subject: I18n.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=3fe1ec405e2eecdb57d1eb638a5c984fa619729a I18n.php --- diff --git a/I18n.php b/I18n.php index 9192c0d4..53a0344c 100644 --- 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); }