Merge pull request #834 from marcosgdf/translations-3.3
Improved es_ES holidays translations
This commit is contained in:
commit
67b803243f
@ -859,7 +859,7 @@ class Holiday extends CommonObject
|
||||
*/
|
||||
function updateSoldeCP($userID='',$nbHoliday='')
|
||||
{
|
||||
global $user;
|
||||
global $user, $langs;
|
||||
|
||||
if (empty($userID) && empty($nbHoliday))
|
||||
{
|
||||
@ -897,7 +897,7 @@ class Holiday extends CommonObject
|
||||
$new_solde = $now_holiday + $this->getConfCP('nbHolidayEveryMonth');
|
||||
|
||||
// On ajoute la modification dans le LOG
|
||||
$this->addLogCP($user->id,$users[$i]['rowid'],'Event : Mise à jour mensuelle',$new_solde);
|
||||
$this->addLogCP($user->id,$users[$i]['rowid'], $langs->trans('Event').': '.$langs->trans('HolidaysMonthlyAssignment'),$new_solde);
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
@ -67,7 +67,7 @@ if ($action == 'update' && isset($_POST['update_cp']))
|
||||
}
|
||||
|
||||
// On ajoute la modification dans le LOG
|
||||
$holiday->addLogCP($user->id,$userID,'Event : Manual update',$userValue);
|
||||
$holiday->addLogCP($user->id,$userID, $langs->trans('Event').': '.$langs->trans('ManualUpdate'),$userValue);
|
||||
|
||||
// Mise à jour des congés de l'utilisateur
|
||||
$holiday->updateSoldeCP($userID,$userValue);
|
||||
@ -100,7 +100,7 @@ elseif($action == 'add_event')
|
||||
$new_holiday = $nb_holiday + $add_holiday;
|
||||
|
||||
// On ajoute la modification dans le LOG
|
||||
$holiday->addLogCP($user->id,$userCP,'Event : '.$holiday->getNameEventCp($event),$new_holiday);
|
||||
$holiday->addLogCP($user->id,$userCP, $langs->trans('Event').': '.$holiday->getNameEventCp($event),$new_holiday);
|
||||
|
||||
$holiday->updateSoldeCP($userCP,$new_holiday);
|
||||
|
||||
@ -137,7 +137,7 @@ print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">'."\n";
|
||||
print '<input type="hidden" name="action" value="update" />';
|
||||
print '<table class="noborder" width="100%;">';
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print '<td width="5%">User ID</td>';
|
||||
print '<td width="5%">'.$langs->trans('ID').'</td>';
|
||||
print '<td width="20%">'.$langs->trans('UserName').'</td>';
|
||||
print '<td width="10%">'.$langs->trans('Available').'</td>';
|
||||
print '<td>'.$langs->trans('UpdateButtonCP').'</td>';
|
||||
@ -158,7 +158,7 @@ foreach($listUsers as $users)
|
||||
print '</td>';
|
||||
print '<td>';
|
||||
print '<input type="text" value="'.$holiday->getCPforUser($users['rowid']).'" name="nb_holiday['.$users['rowid'].']" size="5" style="text-align: center;"/>';
|
||||
print ' jours</td>'."\n";
|
||||
print ' '.$langs->trans('days').'</td>'."\n";
|
||||
print '<td><input type="submit" name="update_cp['.$users['rowid'].']" value="'.dol_escape_htmltag($langs->trans("Update")).'" class="button"/></td>'."\n";
|
||||
print '</tr>';
|
||||
|
||||
|
||||
@ -52,7 +52,7 @@ $now=dol_now();
|
||||
// Si création de la demande
|
||||
if ($action == 'create')
|
||||
{
|
||||
$cp = new Holiday($db);
|
||||
$cp = new Holiday($db);
|
||||
|
||||
// Si pas le droit de créer une demande
|
||||
if(!$user->rights->holiday->write)
|
||||
@ -63,12 +63,12 @@ if ($action == 'create')
|
||||
|
||||
$date_debut = dol_mktime(0, 0, 0, GETPOST('date_debut_month'), GETPOST('date_debut_day'), GETPOST('date_debut_year'));
|
||||
$date_fin = dol_mktime(0, 0, 0, GETPOST('date_fin_month'), GETPOST('date_fin_day'), GETPOST('date_fin_year'));
|
||||
$starthalfday=GETPOST('starthalfday');
|
||||
$starthalfday=GETPOST('starthalfday');
|
||||
$endhalfday=GETPOST('endhalfday');
|
||||
$halfday=0;
|
||||
if ($starthalfday == 'afternoon' && $endhalfday == 'morning') $halfday=2;
|
||||
else if ($starthalfday == 'afternoon') $halfday=-1;
|
||||
else if ($endhalfday == 'morning') $halfday=1;
|
||||
else if ($endhalfday == 'morning') $halfday=1;
|
||||
|
||||
$valideur = GETPOST('valideur');
|
||||
$description = trim(GETPOST('description'));
|
||||
@ -144,14 +144,14 @@ if ($action == 'create')
|
||||
|
||||
if ($action == 'update')
|
||||
{
|
||||
$date_debut = dol_mktime(0, 0, 0, GETPOST('date_debut_month'), GETPOST('date_debut_day'), GETPOST('date_debut_year'));
|
||||
$date_fin = dol_mktime(0, 0, 0, GETPOST('date_fin_month'), GETPOST('date_fin_day'), GETPOST('date_fin_year'));
|
||||
$starthalfday=GETPOST('starthalfday');
|
||||
$endhalfday=GETPOST('endhalfday');
|
||||
$halfday=0;
|
||||
if ($starthalfday == 'afternoon' && $endhalfday == 'morning') $halfday=2;
|
||||
else if ($starthalfday == 'afternoon') $halfday=-1;
|
||||
else if ($endhalfday == 'morning') $halfday=1;
|
||||
$date_debut = dol_mktime(0, 0, 0, GETPOST('date_debut_month'), GETPOST('date_debut_day'), GETPOST('date_debut_year'));
|
||||
$date_fin = dol_mktime(0, 0, 0, GETPOST('date_fin_month'), GETPOST('date_fin_day'), GETPOST('date_fin_year'));
|
||||
$starthalfday=GETPOST('starthalfday');
|
||||
$endhalfday=GETPOST('endhalfday');
|
||||
$halfday=0;
|
||||
if ($starthalfday == 'afternoon' && $endhalfday == 'morning') $halfday=2;
|
||||
else if ($starthalfday == 'afternoon') $halfday=-1;
|
||||
else if ($endhalfday == 'morning') $halfday=1;
|
||||
|
||||
// Si pas le droit de modifier une demande
|
||||
if(!$user->rights->holiday->write)
|
||||
@ -375,7 +375,7 @@ if($action == 'confirm_valid')
|
||||
$newSolde = $soldeActuel - ($nbJour*$cp->getConfCP('nbHolidayDeducted'));
|
||||
|
||||
// On ajoute la modification dans le LOG
|
||||
$cp->addLogCP($userID,$cp->fk_user,'Event : '.$langs->transnoentitiesnoconv("Holiday"),$newSolde);
|
||||
$cp->addLogCP($userID,$cp->fk_user, $langs->trans('Event').': '.$langs->transnoentitiesnoconv("Holidays"),$newSolde);
|
||||
|
||||
// Mise à jour du solde
|
||||
$cp->updateSoldeCP($cp->fk_user,$newSolde);
|
||||
@ -575,9 +575,9 @@ if ($action == 'confirm_cancel' && $_GET['confirm'] == 'yes')
|
||||
*/
|
||||
|
||||
$form = new Form($db);
|
||||
$cp = new Holiday($db);
|
||||
$cp = new Holiday($db);
|
||||
|
||||
$listhalfday=array('morning'=>$langs->trans("Morning"),"afternoon"=>$langs->trans("Afternoon"));
|
||||
$listhalfday=array('morning'=>$langs->trans("Morning"),"afternoon"=>$langs->trans("Afternoon"));
|
||||
|
||||
|
||||
llxHeader(array(),$langs->trans('CPTitreMenu'));
|
||||
@ -859,12 +859,12 @@ else
|
||||
print '<tr>';
|
||||
print '<td width="25%">'.$langs->trans("Ref").'</td>';
|
||||
print '<td>';
|
||||
print $form->showrefnav($cp, 'id', $linkback, 1, 'rowid', 'ref');
|
||||
print $form->showrefnav($cp, 'id', $linkback, 1, 'rowid', 'ref');
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
|
||||
$starthalfday=($cp->halfday == -1 || $cp->halfday == 2)?'afternoon':'morning';
|
||||
$endhalfday=($cp->halfday == 1 || $cp->halfday == 2)?'morning':'afternoon';
|
||||
$endhalfday=($cp->halfday == 1 || $cp->halfday == 2)?'morning':'afternoon';
|
||||
|
||||
if(!$edit) {
|
||||
print '<tr>';
|
||||
@ -890,7 +890,7 @@ else
|
||||
print '<tr>';
|
||||
print '<td>'.$langs->trans('DateFinCP').' ('.$langs->trans("LastDayOfHoliday").')</td>';
|
||||
print '<td>'.dol_print_date($cp->date_fin,'day');
|
||||
print ' ';
|
||||
print ' ';
|
||||
print $langs->trans($listhalfday[$endhalfday]);
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
@ -1026,10 +1026,10 @@ else
|
||||
{
|
||||
print '<a href="fiche.php?id='.$_GET['id'].'&action=sendToValidate" class="butAction">'.$langs->trans("Validate").'</a>';
|
||||
}
|
||||
if($user->rights->holiday->delete && $cp->statut == 1)
|
||||
{
|
||||
print '<a href="fiche.php?id='.$_GET['id'].'&action=delete" class="butActionDelete">'.$langs->trans("DeleteCP").'</a>';
|
||||
}
|
||||
if($user->rights->holiday->delete && $cp->statut == 1)
|
||||
{
|
||||
print '<a href="fiche.php?id='.$_GET['id'].'&action=delete" class="butActionDelete">'.$langs->trans("DeleteCP").'</a>';
|
||||
}
|
||||
|
||||
// Si le statut est en attente de validation et que le valideur est connecté
|
||||
if ($userID == $cp->fk_validator && $cp->statut == 2)
|
||||
|
||||
@ -248,7 +248,7 @@ print_liste_field_titre($langs->trans("ValidatorCP"),$_SERVER["PHP_SELF"],"cp.fk
|
||||
print_liste_field_titre($langs->trans("DateDebCP"),$_SERVER["PHP_SELF"],"cp.date_debut","",'','align="center"',$sortfield,$sortorder);
|
||||
print_liste_field_titre($langs->trans("DateFinCP"),$_SERVER["PHP_SELF"],"cp.date_fin","",'','align="center"',$sortfield,$sortorder);
|
||||
print_liste_field_titre($langs->trans("Duration"));
|
||||
print_liste_field_titre($langs->trans("Statut"),$_SERVER["PHP_SELF"],"cp.statut","",'','align="center"',$sortfield,$sortorder);
|
||||
print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"cp.statut","",'','align="center"',$sortfield,$sortorder);
|
||||
print "</tr>\n";
|
||||
|
||||
// FILTRES
|
||||
|
||||
@ -77,7 +77,7 @@ print '<div class="tabBar">';
|
||||
|
||||
print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">'."\n";
|
||||
|
||||
print 'Choix mois : <input class="flat" type="text" size="1" maxlength="2" name="month_start" value="'.$month.'"> ';
|
||||
print $langs->trans('Month').': <input class="flat" type="text" size="1" maxlength="2" name="month_start" value="'.$month.'"> ';
|
||||
$htmlother->select_year($year,'year_start',1,10,3);
|
||||
|
||||
print '<input type="submit" value="'.$langs->trans("Refresh").'" class="button" />';
|
||||
|
||||
@ -78,8 +78,8 @@ foreach($cp->logs as $logs_CP)
|
||||
print '<td>'.$user_action->getFullName($langs).'</td>';
|
||||
print '<td>'.$user_update->getFullName($langs).'</td>';
|
||||
print '<td>'.$logs_CP['type_action'].'</td>';
|
||||
print '<td style="text-align: right;">'.$logs_CP['prev_solde'].' jours</td>';
|
||||
print '<td style="text-align: right;">'.$logs_CP['new_solde'].' jours</td>';
|
||||
print '<td style="text-align: right;">'.$logs_CP['prev_solde'].' '.$langs->trans('days').'</td>';
|
||||
print '<td style="text-align: right;">'.$logs_CP['new_solde'].' '.$langs->trans('days').'</td>';
|
||||
print '</tr>'."\n";
|
||||
|
||||
}
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
# Dolibarr language file - en_US - holiday
|
||||
CHARSET= UTF-8
|
||||
|
||||
Holidays=Holidays
|
||||
CPTitreMenu=Holidays
|
||||
MenuReportMonth=Monthly statement
|
||||
MenuAddCP=Apply for holidays
|
||||
@ -86,6 +87,8 @@ UserName=Name
|
||||
Employee=Employee
|
||||
FirstDayOfHoliday=First day of holiday
|
||||
LastDayOfHoliday=Last day of holiday
|
||||
HolidaysMonthlyUpdate=Monthly update
|
||||
ManualUpdate=Manual update
|
||||
|
||||
## Configuration du Module ##
|
||||
ConfCP=Configuration of holidays module
|
||||
|
||||
@ -15,6 +15,7 @@ MyEvents=Mis eventos
|
||||
OtherEvents=Otros eventos
|
||||
ListOfActions=Listado de eventos
|
||||
EventOnFullDay=Evento para todo el día
|
||||
Busy=Ocupado
|
||||
Location=Localización
|
||||
SearchAnAction=Buscar un evento/tarea
|
||||
MenuToDoActions=Eventos incompletos
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
# Dolibarr language file - es_ES - holiday
|
||||
CHARSET= UTF-8
|
||||
|
||||
Holidays=Vacaciones
|
||||
CPTitreMenu=Vacaciones
|
||||
MenuReportMonth=Estado mensual
|
||||
MenuAddCP=Nueva petición
|
||||
@ -20,12 +21,12 @@ CancelCP=Anulada
|
||||
RefuseCP=Rechazada
|
||||
ValidatorCP=Validador
|
||||
ListeCP=Lista de vacaciones
|
||||
ValidateByCP=Sera validada por
|
||||
ValidateByCP=Será validada por
|
||||
DescCP=Descripción
|
||||
SendRequestCP=Enviar la petición de vacaciones
|
||||
DelayToRequestCP=Las peticiones de vacaciones deben realizarse al menos <b>%s días</b> antes.
|
||||
MenuConfCP=Definir los vacaciones
|
||||
UpdateAllCP=Actualizar los vacaciones
|
||||
MenuConfCP=Definir las vacaciones
|
||||
UpdateAllCP=Actualizar las vacaciones
|
||||
SoldeCPUser=Su saldo de vacaciones es de <b>%s días</b>.
|
||||
ErrorEndDateCP=Debe indicar una fecha de fin superior a la fecha de inicio.
|
||||
ErrorSQLCreateCP=Se ha producido un error de SQL durante la creación :
|
||||
@ -68,12 +69,12 @@ ConfirmCancelCP=¿Está seguro de querer anular la petición de vacaciones?
|
||||
DetailRefusCP=Motivo del rechazo
|
||||
DateRefusCP=Fecha del rechazo
|
||||
DateCancelCP=Fecha de la anulación
|
||||
DefineEventUserCP=Asignar vacación excepcional a un usuario
|
||||
addEventToUserCP=Asignar esta vacación
|
||||
DefineEventUserCP=Asignar permiso excepcional a un usuario
|
||||
addEventToUserCP=Asignar este permiso
|
||||
MotifCP=Motivo
|
||||
UserCP=Usuario
|
||||
ErrorAddEventToUserCP=Se ha producido un error en la asignación de la vacación excepcional.
|
||||
AddEventToUserOkCP=Se ha añadido la vaciación excepcional.
|
||||
ErrorAddEventToUserCP=Se ha producido un error en la asignación del permiso excepcional.
|
||||
AddEventToUserOkCP=Se ha añadido el permiso excepcional.
|
||||
MenuLogCP=Ver los logs de vacaciones
|
||||
LogCP=Logs de actualizaciones de vacaciones
|
||||
ActionByCP=Realizado por
|
||||
@ -86,6 +87,10 @@ UserName=Nombre Apellidos
|
||||
Employee=Empleado
|
||||
FirstDayOfHoliday=Primer día libre
|
||||
LastDayOfHoliday=Último día libre
|
||||
Morning=Mañana
|
||||
Afternoon=Tarde
|
||||
HolidaysMonthlyUpdate=Actualización mensual
|
||||
ManualUpdate=Actualización manual
|
||||
|
||||
## Configuration du Module ##
|
||||
ConfCP=Configuración del módulo Vacaciones
|
||||
@ -97,9 +102,9 @@ LastUpdateCP=Última actualización automática de vacaciones
|
||||
UpdateConfCPOK=Actualización efectuada correctamente.
|
||||
ErrorUpdateConfCP=Se ha producido un error durante la actualización, vuélvalo a intentar.
|
||||
AddCPforUsers=Añada los saldos de vacaciones de los usuarios <a href="../define_holiday.php" style="font-weight: normal; color: red; text-decoration: underline;">haciendo clic aquí</a>.
|
||||
DelayForSubmitCP=La fecha límite para solicitar vacaciones
|
||||
AlertValidatorDelayCP=Prevenir al validador si la petición no respeta el límite previsto
|
||||
AlertValidorSoldeCP=Prevenir al validador si el usuario pide vacaciones superiores a su saldo
|
||||
DelayForSubmitCP=Antelación mínima para solicitar vacaciones
|
||||
AlertValidatorDelayCP=Advertir al usuario validador si la petición no respeta el límite previsto
|
||||
AlertValidorSoldeCP=Advertir al usuario validador si el usuario pide vacaciones superiores a su saldo
|
||||
nbUserCP=Número de usuarios tomados en cuenta en el módulo vacaciones
|
||||
nbHolidayDeductedCP=Número de días retribuidos a deducir por día de vacaciones
|
||||
nbHolidayEveryMonthCP=Número de vacaciones añadidas por mes
|
||||
|
||||
@ -498,8 +498,8 @@ Warning=Alerta
|
||||
Warnings=Alertas
|
||||
BuildPDF=Generar el PDF
|
||||
RebuildPDF=Regenerar el PDF
|
||||
BuildDoc=Generar el doc
|
||||
RebuildDoc=Regenerar el doc
|
||||
BuildDoc=Generar el documento
|
||||
RebuildDoc=Regenerar el documento
|
||||
Entity=Entidad
|
||||
Entities=Entidades
|
||||
EventLogs=Log
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
# Dolibarr language file - fr_FR - holiday
|
||||
CHARSET= UTF-8
|
||||
|
||||
Holidays=Congés
|
||||
CPTitreMenu=Congés
|
||||
MenuReportMonth=Etat mensuel
|
||||
MenuAddCP=Nouvelle demande
|
||||
@ -86,6 +87,8 @@ UserName=Nom Prénom
|
||||
Employee=Salarié
|
||||
FirstDayOfHoliday=Premier jour de congès
|
||||
LastDayOfHoliday=Dernier jour de congès
|
||||
HolidaysMonthlyUpdate=Mise à jour mensuelle
|
||||
ManualUpdate=Mise à jour manuelle
|
||||
|
||||
## Configuration du Module ##
|
||||
ConfCP=Configuration du module Congés
|
||||
|
||||
Loading…
Reference in New Issue
Block a user