DataObjects/Core_notify_recur.php
[Pman.Core] / I18n.php
index e0439c0..d7e6f52 100644 (file)
--- a/I18n.php
+++ b/I18n.php
@@ -116,22 +116,24 @@ class Pman_Core_I18n extends Pman
         
         switch($s) {
             case 'Lang':
+                 
+                
                 $i->ltype = 'l';
                 $i->applyFilters($_REQUEST, $this->authUser, $this);
-                $this->jdata($i->toTransList('l',  $lbits[0]));
+                $this->jdata($i->toTransList('l',  implode('_',$lbits)));
                 break;
 
             case 'Country':
                 $i->ltype = 'c';
                 $i->applyFilters($_REQUEST, $this->authUser, $this);
-                $this->jdata($i->toTransList('c',  $lbits[0]));
+                $this->jdata($i->toTransList('c',  implode('_',$lbits)));
                
                 break;
                 
             case 'Currency':
                 $i->ltype = 'm';
                 $i->applyFilters($_REQUEST, $this->authUser, $this);
-                $this->jdata($i->toTransList('m',  $lbits[0]));
+                $this->jdata($i->toTransList('m',  implode('_',$lbits)));
                 break;
             
             case 'Timezone':
@@ -150,7 +152,7 @@ class Pman_Core_I18n extends Pman
                     //filtering..
                     if (empty($_REQUEST['q']) ||
                             0 === strcasecmp(
-                                    substring($tz,0, strlen($_REQUEST['q'])),
+                                    substr($tz,0, strlen($_REQUEST['q'])),
                                     $_REQUEST['q'])
                     ) {
                         $ret[] = array('tz' => $tz);