Skip to content

Commit

Permalink
Improved holidays module translations
Browse files Browse the repository at this point in the history
Conflicts:
	htdocs/holiday/fiche.php
	htdocs/langs/fr_FR/holiday.lang
  • Loading branch information
marcosgdf authored and simnandez committed Apr 15, 2013
1 parent 421dc07 commit 0ac7696
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
4 changes: 2 additions & 2 deletions htdocs/holiday/class/holiday.class.php
Expand Up @@ -876,7 +876,7 @@ function getConfCP($name)
*/
function updateSoldeCP($userID='',$nbHoliday='')
{
global $user;
global $user, $langs;

if (empty($userID) && empty($nbHoliday))
{
Expand Down Expand Up @@ -914,7 +914,7 @@ function updateSoldeCP($userID='',$nbHoliday='')
$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++;
}
Expand Down
6 changes: 3 additions & 3 deletions htdocs/holiday/define_holiday.php
Expand Up @@ -67,7 +67,7 @@
}

// 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);
Expand Down Expand Up @@ -107,7 +107,7 @@
$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);

Expand Down Expand Up @@ -165,7 +165,7 @@
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>';

Expand Down
2 changes: 1 addition & 1 deletion htdocs/holiday/fiche.php
Expand Up @@ -373,7 +373,7 @@
$newSolde = $soldeActuel - ($nbJour*$cp->getConfCP('nbHolidayDeducted'));

// On ajoute la modification dans le LOG
$cp->addLogCP($user->id, $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);
Expand Down
3 changes: 3 additions & 0 deletions htdocs/langs/en_US/holiday.lang
@@ -1,6 +1,7 @@
# Dolibarr language file - en_US - holiday
CHARSET= UTF-8

Holidays=Holidays
CPTitreMenu=Holidays
MenuReportMonth=Monthly statement
MenuAddCP=Apply for holidays
Expand Down Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion htdocs/langs/es_ES/holiday.lang
@@ -1,6 +1,7 @@
# Dolibarr language file - es_ES - holiday
CHARSET= UTF-8

Holidays=Vacaciones
CPTitreMenu=Vacaciones
MenuReportMonth=Estado mensual
MenuAddCP=Nueva petición
Expand Down Expand Up @@ -88,6 +89,8 @@ 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
Expand All @@ -99,7 +102,7 @@ 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
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
Expand Down
7 changes: 5 additions & 2 deletions htdocs/langs/fr_FR/holiday.lang
@@ -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
Expand Down Expand Up @@ -84,8 +85,10 @@ NewSoldeCP=Nouveau Solde
alreadyCPexist=Une demande de congés à déjà été effectuée sur cette période.
UserName=Nom Prénom
Employee=Salarié
FirstDayOfHoliday=Premier jour de congés
LastDayOfHoliday=Dernier jour de congés
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
Expand Down

0 comments on commit 0ac7696

Please sign in to comment.