Problems retrieving language texts for poEdit in long javascripts
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 4 Jul 2007 22:04:39 +0000 (22:04 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 4 Jul 2007 22:04:39 +0000 (22:04 +0000)
CHANGELOG.txt
includes/ui/ui_view.inc

index da033eb827118caff8e46f86deeeaf46f9244629..ffa0b8deffbe0ce04bbf34ad27ab9a8fc81e8716 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+04-Jul-2007 Joe Hunt
+ # Problems retrieving language texts for poEdit in long javascripts
+ $ /includes/ui/ui_view.inc
 04-May-2007 Joe Hunt
  # Database error when updating more than one item row in Sales Orders.
  $ /sales/includes/db/sales_order_db.inc
index f98970e6ceca016a7a07a556a94a7c38059a4a17..e5afafbbf1701bbc093a4719b745a7e5ae0f43a2 100644 (file)
@@ -633,6 +633,9 @@ function get_js_date_picker()
        $how = user_date_format();                              // 0 = us/ca, 1 = eu, au, nz, 2 = jp, sw
        $sep = $dateseps[user_date_sep()];              // date separator
        $wstart = ($how == 0 ? 0 : 1);                  // weekstart (sun = 0, mon = 1)
+       $months = array(_("January"),_("February"),_("March"),_("April"),_("May"),_("June"),_("July"),_("August"),_("September"),_("October"),_("November"),_("December"));
+       $wdays = array(_("Su"),_("Mo"),_("Tu"),_("We"),_("Th"),_("Fr"),_("Sa"));
+       $back = _("Back");
 
        $js = "<style>
 #CCIFrame { display: none; left: 0px; position: absolute; top: 0px; height: 250px; width: 250px; z-index: 99;}
@@ -726,8 +729,8 @@ function CC() {
   var selectedYear = 0;
   var selectedMonth = 0;
   var selectedDay = 0;
-  var months = ['"._("January")."','"._("February")."','"._("March")."','"._("April")."','"._("May")."','"._("June")."','"._("July")."','"._("August")."','"._("September")."','"._("October")."','"._("November")."','"._("December")."'];
-  var wdays = ['"._("Su")."', '"._("Mo")."', '"._("Tu")."', '"._("We")."', '"._("Th")."', '"._("Fr")."', '"._("Sa")."'];
+  var months = ['$months[0]','$months[1]','$months[2]','$months[3]','$months[4]','$months[5]','$months[6]','$months[7]','$months[8]','$months[9]','$months[10]','$months[11]'];
+  var wdays = ['$wdays[0]', '$wdays[1]', '$wdays[2]', '$wdays[3]', '$wdays[4]', '$wdays[5]', '$wdays[6]'];
   var dateField = null;
   function getProperty(p_property){
     var p_elm = calendarId;
@@ -876,7 +879,7 @@ function CC() {
       }
       table += \"</tr>\";
     }
-    table += \"<tr class='header'><th colspan='7' style='padding: 3px;'><a href='javascript:hideCC();'>Back</a></td></tr>\";
+    table += \"<tr class='header'><th colspan='7' style='padding: 3px;'><a href='javascript:hideCC();'>$back</a></td></tr>\";
     table += \"</table>\";
     return table;
   }