Code

Updated messages
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sat, 8 Mar 2008 11:08:19 +0000 (11:08 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sat, 8 Mar 2008 11:08:19 +0000 (11:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9457 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/posix/class_posixAccount.inc
gosa-core/plugins/personal/posix/main.inc

index ef07f0db1ce235c5665980e3e0e75f7516260680..3086b4de4dda3e00921db8d169d9b5d77dcecac4 100644 (file)
@@ -508,9 +508,7 @@ class posixAccount extends plugin
     for($y= $date['year']-10; $y<$date['year']+10; $y++){
       $years[]= $y;
     }
-    $months= array(_("January"), _("February"), _("March"), _("April"),
-        _("May"), _("June"), _("July"), _("August"), _("September"),
-        _("October"), _("November"), _("December"));
+    $months= msgPool::months();
     $smarty->assign("day", $date["mday"]);
     $smarty->assign("days", $days);
     $smarty->assign("months", $months);
@@ -817,7 +815,7 @@ class posixAccount extends plugin
 
           /* Oups - timed out */
           if ($wait-- == 0){
-            msg_dialog::display(_("Warning"), _("Timeout while waiting for lock! Ignoring lock."), WARNING_DIALOG);
+            msg_dialog::display(_("Warning"), _("Timeout while waiting for lock. Ignoring lock!"), WARNING_DIALOG);
             break;
           }
         }
index abe69ad36fa44379a067bfa2287dd68e3b3859e5..243644bc78b772a1c61ebb3f603246e3372b2ef8 100644 (file)
@@ -105,9 +105,9 @@ if (!$remove_lock){
 
     /* Are we in edit mode? */
     if (session::is_set('edit')){
-      $display.= "<input type=submit name=\"edit_finish\" style=\"width:80px\" value=\""._("Ok")."\">\n";
+      $display.= "<input type=submit name=\"edit_finish\" style=\"width:80px\" value=\"".msgPool::okButton()."\">\n";
       $display.= "&nbsp;";
-      $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
+      $display.= "<input type=submit name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">\n";
       $info= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png').
              "\"> ".$ui->dn."&nbsp;";
     } else {
@@ -117,9 +117,9 @@ if (!$remove_lock){
       /* Only display edit button if there is at least one attribute editable */
       if(preg_match("/w/",$ui->get_permissions($ui->dn,"users/posixAccount"))){
         $info.= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lamp.png')."\"> ".
-          _("Click the 'Edit' button below to change informations in this dialog");
+          msgPool::clickEditToChange();
 
-        $display.= "<input type=submit name=\"edit\" value=\""._("Edit")."\">\n";
+        $display.= "<input type=submit name=\"edit\" value=\"".msgPool::editButton()."\">\n";
       }
       $display.= "<input type=\"hidden\" name=\"ignore\">\n";
     }