diff --git a/load_search.php b/load_search.php index 9fc0e72f90..e5e8c8806f 100644 --- a/load_search.php +++ b/load_search.php @@ -966,7 +966,10 @@ if ($data) { foreach ($sessions as $session) { $sessionId = $session['id']; - $data = $sessionFieldValue->get_values_by_handler_and_field_variable($sessionId, 'temps-de-travail'); + $data = $sessionFieldValue->get_values_by_handler_and_field_variable( + $sessionId, + 'temps-de-travail' + ); if ($data) { $sumHours += $data['value']; } @@ -976,9 +979,9 @@ if ($data) { $numHours = $total - $sumHours; $headers = array( - "Total d'heures disponibles" => $total, - 'Sommes des heures de sessions inscrites' => $sumHours, - "Nombre d'heures encore disponible" => $numHours + get_lang('TotalAvailableHours') => $total, + get_lang('SumHoursSessionsSubscribed') => $sumHours, + get_lang('CountHoursAvailable') => $numHours ); foreach ($headers as $header => $value) { $table->setCellContents($row, 0, $header); diff --git a/main/lang/french/trad4all.inc.php b/main/lang/french/trad4all.inc.php index 491d8527c1..e13713f8a9 100644 --- a/main/lang/french/trad4all.inc.php +++ b/main/lang/french/trad4all.inc.php @@ -7938,4 +7938,7 @@ $MethodeTravail = "Ma méthode de travail"; $SearchTCC = "Déjà inscrit dans TCC?"; $URLOFAJ = "https://www.ofaj.org/"; -?> + +$TotalAvailableHours = "Total d'heures disponibles"; +$SumHoursSessionsSubscribed = "Sommes des heures de sessions inscrites"; +$CountHoursAvailable = "Nombre d'heures encore disponible";