trad
This commit is contained in:
@@ -41,6 +41,8 @@ return [
|
||||
'btn_close' => 'Tancar',
|
||||
'btn_back' => '◀ Tornar',
|
||||
'btn_edit_bases' => '⚙️ Modificar les bases',
|
||||
'btn_edit' => 'Modificar',
|
||||
'error_occured' => 'S\'ha produït un error.',
|
||||
|
||||
// Mots génériques & Erreurs
|
||||
'error' => 'Error.',
|
||||
@@ -234,6 +236,9 @@ return [
|
||||
'weather_rainy' => 'Plujós',
|
||||
'weather_snowy' => 'Nevat',
|
||||
'weather_historical' => 'Basat en l\'històric (estimació)',
|
||||
'err_invalid_holiday_id' => 'ID de viatge no vàlid.',
|
||||
'hdl_default_exp_name' => 'Despesa',
|
||||
'hdl_select_beneficiary' => '-- Seleccionar --',
|
||||
|
||||
// Anciennes clés Holidays non préfixées (conservades)
|
||||
'outbound_trip' => 'Anada',
|
||||
|
||||
@@ -30,6 +30,7 @@ return [
|
||||
'nav_gifts' => 'Cadeaux',
|
||||
'aria_menu' => 'Menu mobile',
|
||||
|
||||
|
||||
// Boutons et actions globales
|
||||
'actions' => 'Actions',
|
||||
'edit' => 'Modifier',
|
||||
@@ -42,6 +43,8 @@ return [
|
||||
'btn_close' => 'Fermer',
|
||||
'btn_back' => '◀ Retour',
|
||||
'btn_edit_bases' => '⚙️ Modifier les bases',
|
||||
'btn_edit' => 'Modifier',
|
||||
'error_occured' => 'Une erreur est survenue.',
|
||||
|
||||
// Mots génériques & Erreurs
|
||||
'error' => 'Erreur.',
|
||||
@@ -235,6 +238,9 @@ return [
|
||||
'weather_rainy' => 'Pluvieux',
|
||||
'weather_snowy' => 'Neigeux',
|
||||
'weather_historical' => 'Basé sur l\'historique (estimation)',
|
||||
'err_invalid_holiday_id' => 'ID de voyage invalide.',
|
||||
'hdl_default_exp_name' => 'Dépense',
|
||||
'hdl_select_beneficiary' => '-- Sélectionner --',
|
||||
|
||||
// Anciennes clés Holidays non préfixées (conservées pour compatibilité si utilisées)
|
||||
'outbound_trip' => 'Aller',
|
||||
|
||||
@@ -578,7 +578,7 @@ $monthName = $monthNames[(int)$viewM] . ' ' . $viewY;
|
||||
<div class="form-group" id="blockInputFrais" style="margin-bottom:15px; display:none;">
|
||||
<label class="pf-label"><?= tr('bud_fixed_charge') ?></label>
|
||||
<select name="budget_item_id" id="fraisSelect" class="pf-input" disabled>
|
||||
<option value="">-- Sélectionner --</option>
|
||||
<option value=""><?= tr('hdl_select_beneficiary') ?></option>
|
||||
<?php foreach ($fixedChargesList as $fc): ?><option value="<?= $fc['id'] ?>"><?= htmlspecialchars($fc['name']) ?></option><?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
@@ -586,7 +586,7 @@ $monthName = $monthNames[(int)$viewM] . ' ' . $viewY;
|
||||
<div class="form-group" id="blockInputIncome" style="margin-bottom:15px; display:none;">
|
||||
<label class="pf-label"><?= tr('bud_expected_income') ?></label>
|
||||
<select name="budget_item_id" id="incomeSelect" class="pf-input" disabled>
|
||||
<option value="">-- Sélectionner --</option>
|
||||
<option value=""><?= tr('hdl_select_beneficiary') ?> </option>
|
||||
<?php foreach ($incomeList as $inc): ?><option value="<?= $inc['id'] ?>"><?= htmlspecialchars($inc['name']) ?></option><?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -77,7 +77,7 @@ if ($holiday_id > 0 && !empty($location_name)) {
|
||||
$dur = !empty($_POST['items']['duration'][$i]) ? (int)$_POST['items']['duration'][$i] : 1;
|
||||
|
||||
// Ajout de $is_return à la fin
|
||||
$stmt->execute([$holiday_id, $cat, $name ?: 'Dépense', $amount, $paid, $location_name, $lat, $lng, $target_order, $note, $date, $time, $step_start, $step_end, $dur, $is_return]);
|
||||
$stmt->execute([$holiday_id, $cat, $name ?: tr('hdl_default_exp_name'), $amount, $paid, $location_name, $lat, $lng, $target_order, $note, $date, $time, $step_start, $step_end, $dur, $is_return]);
|
||||
$validItemsCount++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user