Browse Source

I18n string fixes

dahanc 23 years ago
parent
commit
0b61e94d4f
2 changed files with 7 additions and 6 deletions
  1. 5 4
      plugins/calendar/event_delete.php
  2. 2 2
      plugins/calendar/event_edit.php

+ 5 - 4
plugins/calendar/event_delete.php

@@ -48,14 +48,14 @@ function confirm_deletion()
          "       <INPUT TYPE=HIDDEN NAME=\"dhour\" VALUE=\"$dhour\">\n".
          "       <INPUT TYPE=HIDDEN NAME=\"dminute\" VALUE=\"$dminute\">\n".
          "       <INPUT TYPE=HIDDEN NAME=\"confirmed\" VALUE=\"yes\">\n".
-         "       <INPUT TYPE=SUBMIT VALUE=\"Yes\">\n".
+         '       <INPUT TYPE=SUBMIT VALUE="' . _("Yes") . "\">\n".
          "    </FORM>\n".
          "    </TD><TD ALIGN=LEFT BGCOLOR=\"$color[4]\">\n".
          "    <FORM NAME=\"nodelevent\" METHOD=POST ACTION=\"day.php\">\n".
          "       <INPUT TYPE=HIDDEN NAME=\"year\" VALUE=\"$year\">\n".
          "       <INPUT TYPE=HIDDEN NAME=\"month\" VALUE=\"$month\">\n".
          "       <INPUT TYPE=HIDDEN NAME=\"day\" VALUE=\"$day\">\n".
-         "       <INPUT TYPE=SUBMIT VALUE=\"No\">\n".
+         '       <INPUT TYPE=SUBMIT VALUE="' . _("No") . "\">\n".
          "    </FORM>\n".
          "    </TD></TR>\n".
          "  </TABLE>\n";
@@ -87,7 +87,8 @@ if (isset($dyear) && isset($dmonth) && isset($dday) && isset($dhour) && isset($d
     if (isset($confirmed)){
         delete_event("$dmonth$dday$dyear", "$dhour$dminute");
         echo '<br><br>' . _("Event deleted!") . "<BR>\n";
-        echo "<A HREF=\"day.php?year=$year&month=$month&day=$day\">Day View</A>\n";
+        echo "<A HREF=\"day.php?year=$year&month=$month&day=$day\">" .
+          _("Day View") . "</A>\n";
     } else {
         readcalendardata();
         confirm_deletion();
@@ -98,4 +99,4 @@ if (isset($dyear) && isset($dmonth) && isset($dday) && isset($dhour) && isset($d
 
 ?>
 </table></td></tr></table>
-</body></html>
+</body></html>

+ 2 - 2
plugins/calendar/event_edit.php

@@ -184,7 +184,7 @@ if (!isset($updated)){
         confirm_update();
     } else {
         update_event("$month$day$year", "$hour$minute");
-        echo "<tr><td>Event updated!</td></tr>\n";
+        echo "<tr><td>" . _("Event updated!") . "</td></tr>\n";
         echo "<tr><td><A HREF=\"day.php?year=$year&month=$month&day=$day\">" . 
         _("Day View") ."</A></td></tr>\n";
         $fixdate = date( 'mdY', mktime(0, 0, 0, $event_month, $event_day, $event_year));
@@ -205,4 +205,4 @@ if (!isset($updated)){
 
 ?>
 </table></td></tr></table>
-</body></html>
+</body></html>