i18n: fix hidden files save button — hardcoded French in JS
- Button label: sidebar.tab_backups -> config.save
- JS: Sauvegarde... -> t('config.saving')
- JS: Sauvegarder -> t('config.save')
- JS: Erreur inconnue -> t('config.error_unknown')
- JS: Erreur: -> t('config.error_prefix')
- +3 new locale keys (1261 total)
This commit is contained in:
+3
-3
@@ -1670,7 +1670,7 @@
|
|||||||
<div class="config-actions-row">
|
<div class="config-actions-row">
|
||||||
<button class="config-btn-save"
|
<button class="config-btn-save"
|
||||||
id="cfg-save-backend" data-i18n="help.shortcut_save">
|
id="cfg-save-backend" data-i18n="help.shortcut_save">
|
||||||
><span data-i18n="sidebar.tab_backups">Sauvegardes</span>
|
><span data-i18n="config.save">Sauvegardes</span>
|
||||||
</button>
|
</button>
|
||||||
<button class="config-btn-secondary"
|
<button class="config-btn-secondary"
|
||||||
id="cfg-reindex" data-i18n="settings.reindex">
|
id="cfg-reindex" data-i18n="settings.reindex">
|
||||||
@@ -1854,7 +1854,7 @@
|
|||||||
class="config-btn-save"
|
class="config-btn-save"
|
||||||
id="cfg-save-hidden-files"
|
id="cfg-save-hidden-files"
|
||||||
>
|
>
|
||||||
><span data-i18n="sidebar.tab_backups">Sauvegardes</span>
|
><span data-i18n="config.save">Sauvegardes</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -1964,7 +1964,7 @@
|
|||||||
>
|
>
|
||||||
<button class="config-btn-save"
|
<button class="config-btn-save"
|
||||||
id="cfg-save-ai-keys" data-i18n="help.shortcut_save">
|
id="cfg-save-ai-keys" data-i18n="help.shortcut_save">
|
||||||
><span data-i18n="sidebar.tab_backups">Sauvegardes</span>
|
><span data-i18n="config.save">Sauvegardes</span>
|
||||||
</button>
|
</button>
|
||||||
<button class="config-btn-secondary"
|
<button class="config-btn-secondary"
|
||||||
id="cfg-test-ai-keys" data-i18n="config.test">
|
id="cfg-test-ai-keys" data-i18n="config.test">
|
||||||
|
|||||||
@@ -1038,7 +1038,7 @@ async function saveHiddenFilesSettings() {
|
|||||||
const btn = document.getElementById("cfg-save-hidden-files");
|
const btn = document.getElementById("cfg-save-hidden-files");
|
||||||
if (btn) {
|
if (btn) {
|
||||||
btn.disabled = true;
|
btn.disabled = true;
|
||||||
btn.textContent = "Sauvegarde...";
|
btn.textContent = t("config.saving") + "...";
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -1073,12 +1073,12 @@ async function saveHiddenFilesSettings() {
|
|||||||
await Promise.all([refreshSidebarTreePreservingState(), refreshTagsForContext()]);
|
await Promise.all([refreshSidebarTreePreservingState(), refreshTagsForContext()]);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("Failed to save hidden files settings:", err);
|
console.error("Failed to save hidden files settings:", err);
|
||||||
const errorMsg = err.message || "Erreur inconnue";
|
const errorMsg = err.message || t("config.error_unknown");
|
||||||
showToast(`Erreur: ${errorMsg}`, "error");
|
showToast(t("config.error_prefix") + ": " + errorMsg, "error");
|
||||||
} finally {
|
} finally {
|
||||||
if (btn) {
|
if (btn) {
|
||||||
btn.disabled = false;
|
btn.disabled = false;
|
||||||
btn.textContent = "💾 Sauvegarder";
|
btn.textContent = "💾 " + t("config.save");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1259,5 +1259,8 @@
|
|||||||
"config.hint_activer_d_sactiver_la_surveillance_automatique_des": "[EN] Activer/désactiver la surveillance automatique des fichiers",
|
"config.hint_activer_d_sactiver_la_surveillance_automatique_des": "[EN] Activer/désactiver la surveillance automatique des fichiers",
|
||||||
"config.hint_forcer_le_mode_polling_au_lieu_de_inotify_natif_ut": "[EN] Forcer le mode polling au lieu de inotify natif (utile si le mode natif ne fonct",
|
"config.hint_forcer_le_mode_polling_au_lieu_de_inotify_natif_ut": "[EN] Forcer le mode polling au lieu de inotify natif (utile si le mode natif ne fonct",
|
||||||
"config.hint_intervalle_de_scrutation_en_mode_polling_1_30_seco": "[EN] Intervalle de scrutation en mode polling (1-30 secondes)",
|
"config.hint_intervalle_de_scrutation_en_mode_polling_1_30_seco": "[EN] Intervalle de scrutation en mode polling (1-30 secondes)",
|
||||||
"config.hint_d_lai_avant_traitement_des_changements_group_s_0_5": "[EN] Délai avant traitement des changements groupés (0.5-10 secondes)"
|
"config.hint_d_lai_avant_traitement_des_changements_group_s_0_5": "[EN] Délai avant traitement des changements groupés (0.5-10 secondes)",
|
||||||
|
"config.saving": "Saving",
|
||||||
|
"config.error_unknown": "Unknown error",
|
||||||
|
"config.error_prefix": "Error"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1259,5 +1259,8 @@
|
|||||||
"config.hint_activer_d_sactiver_la_surveillance_automatique_des": "Activer/désactiver la surveillance automatique des fichiers",
|
"config.hint_activer_d_sactiver_la_surveillance_automatique_des": "Activer/désactiver la surveillance automatique des fichiers",
|
||||||
"config.hint_forcer_le_mode_polling_au_lieu_de_inotify_natif_ut": "Forcer le mode polling au lieu de inotify natif (utile si le mode natif ne fonctionne pas)",
|
"config.hint_forcer_le_mode_polling_au_lieu_de_inotify_natif_ut": "Forcer le mode polling au lieu de inotify natif (utile si le mode natif ne fonctionne pas)",
|
||||||
"config.hint_intervalle_de_scrutation_en_mode_polling_1_30_seco": "Intervalle de scrutation en mode polling (1-30 secondes)",
|
"config.hint_intervalle_de_scrutation_en_mode_polling_1_30_seco": "Intervalle de scrutation en mode polling (1-30 secondes)",
|
||||||
"config.hint_d_lai_avant_traitement_des_changements_group_s_0_5": "Délai avant traitement des changements groupés (0.5-10 secondes)"
|
"config.hint_d_lai_avant_traitement_des_changements_group_s_0_5": "Délai avant traitement des changements groupés (0.5-10 secondes)",
|
||||||
|
"config.saving": "Sauvegarde",
|
||||||
|
"config.error_unknown": "Erreur inconnue",
|
||||||
|
"config.error_prefix": "Erreur"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user