phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: etemplate/inc class.select_widget.inc.php,1.6,1.


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: etemplate/inc class.select_widget.inc.php,1.6,1.7
Date: Sun, 13 Apr 2003 17:47:37 -0400

Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv21498

Modified Files:
        class.select_widget.inc.php 
Log Message:
translate the monthnames and contries like the sbox-class


Index: class.select_widget.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.select_widget.inc.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** class.select_widget.inc.php 13 Apr 2003 19:14:50 -0000      1.6
--- class.select_widget.inc.php 13 Apr 2003 21:47:35 -0000      1.7
***************
*** 357,360 ****
--- 357,375 ----
                function select_widget($ui)
                {
+                       foreach($this->monthnames as $k => $name)
+                       {
+                               if ($name)
+                               {
+                                       $this->monthnames[$k] = lang($name);
+                               }
+                       }
+                       foreach($this->countrys as $k => $name)
+                       {
+                               if (($translated = lang($name)) != $name.'*')
+                               {
+                                       $this->countrys[$k] = $translated;
+                               }
+                       }
+                       asort($this->countrys);
                }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]