szollosil преди 1 година
родител
ревизия
cb4801c722

+ 1 - 1
custom/booking/booking_agenda.php

@@ -527,7 +527,7 @@ if ($user->rights->agenda->myactions->create || $user->rights->agenda->allaction
     //$param='month='.$monthshown.'&year='.$year;
     $hourminsec = dol_print_date(dol_mktime(10, 0, 0, 1, 1, 1970, 'gmt'), '%H', 'gmt') . '0000';    // Set $hourminsec to '100000' to auto set hour to 10:00 at creation
 
-    $newcardbutton .= dolGetButtonTitle($langs->trans("AddAction"), '', 'fa fa-plus-circle', DOL_URL_ROOT . '/custom/booking/booking_card.php?action=create&datep=' . sprintf("%04d%02d%02d", $tmpforcreatebutton['year'], $tmpforcreatebutton['mon'], $tmpforcreatebutton['mday']) . $hourminsec . '&backtopage=' . urlencode($_SERVER["PHP_SELF"] . ($newparam ? '?' . $newparam : '')));
+    //$newcardbutton .= dolGetButtonTitle($langs->trans("AddAction"), '', 'fa fa-plus-circle', DOL_URL_ROOT . '/custom/booking/booking_card.php?action=create&datep=' . sprintf("%04d%02d%02d", $tmpforcreatebutton['year'], $tmpforcreatebutton['mon'], $tmpforcreatebutton['mday']) . $hourminsec . '&backtopage=' . urlencode($_SERVER["PHP_SELF"] . ($newparam ? '?' . $newparam : '')));
 }
 
 // Define the legend/list of calendard to show

+ 3 - 3
custom/booking/class/booking_agenda_helper.class.php

@@ -183,7 +183,7 @@ class BookingAgendaHelper
         foreach ($eventsArray as $event) {
             print '<tr class="trheight">
             <td class="firstcolumn"></td>
-            <td class="center">Foglalás</td>';
+            <td class="center">' . $langs->trans('Reserved') . '</td>';
             $rowcolorCounter = 0;
             print '<br>';
             for ($i = $dailyStartTime; $i < $dailyEndTime; $i++) {
@@ -198,7 +198,7 @@ class BookingAgendaHelper
             print '</tr>';
             print '<tr class="trheight foglaltsag">
             <td class="location firstcolumn">' . $locationArray[$this->getLocationLabel($event)] . '</td>
-            <td class="center">Foglalt</td>';
+            <td class="center">' . $langs->trans('InUse') . '</td>';
             $rowcolorCounter = 0;
             for ($i = $dailyStartTime; $i < $dailyEndTime; $i++) {
                 $backgroundColor = $this->getBGColor($rowcolorCounter);
@@ -212,7 +212,7 @@ class BookingAgendaHelper
             print '</tr>';
             print '<tr class="trheight">
             <td class="firstcolumn"></td>
-            <td class="center">Szervíz</td>';
+            <td class="center">' . $langs->trans('InService') . '</td>';
             $rowcolorCounter = 0;
             for ($i = $dailyStartTime; $i < $dailyEndTime; $i++) {
                 $backgroundColor = $this->getBGColor($rowcolorCounter);

+ 4 - 0
custom/booking/langs/en_US/booking.lang

@@ -52,3 +52,7 @@ MyPageName = My page name
 #
 MyWidget = My widget
 MyWidgetDescription = My widget description
+
+Reserved=Reserved
+InUse = In use
+InService=In service

+ 3 - 0
custom/booking/langs/hu_HU/booking.lang

@@ -0,0 +1,3 @@
+Reserved=Foglalás
+InUse = Foglalt
+InService=Szervíz