From 6ea2daf9d085106f2726a726d05bd9265f4f8430 Mon Sep 17 00:00:00 2001 From: jmoore-skild Date: Fri, 31 Jul 2026 13:35:14 -0400 Subject: [PATCH] i18n(backup): rename the Git restore button to "Restore from Git" (#2656) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two buttons labelled "Restore" were visible in the same viewport — this card's and the Local Backup card's — with different destinations. The modal title disambiguated them; the buttons did not. backup.restoreFromGit.button only. The Local Backup card's t('backup.restore') is unchanged, and each locale's new value follows the wording that locale already uses in the modal title rather than being a literal translation of the English. One correction to the review's aside: this does not simplify GitHubRestoreModal.test.tsx. The /Restore$/ + confirmButtons[length - 1] idiom there is not caused by the card button — the modal is rendered standalone in those tests — but by the modal's own footer action and its confirm dialog both reading t('backup.restore'). Left alone as out of scope. --- frontend/src/i18n/locales/de.ts | 2 +- frontend/src/i18n/locales/en.ts | 2 +- frontend/src/i18n/locales/es.ts | 2 +- frontend/src/i18n/locales/fr.ts | 2 +- frontend/src/i18n/locales/it.ts | 2 +- frontend/src/i18n/locales/ja.ts | 2 +- frontend/src/i18n/locales/ko.ts | 2 +- frontend/src/i18n/locales/pt-BR.ts | 2 +- frontend/src/i18n/locales/ru.ts | 2 +- frontend/src/i18n/locales/tr.ts | 2 +- frontend/src/i18n/locales/uk.ts | 2 +- frontend/src/i18n/locales/zh-CN.ts | 2 +- frontend/src/i18n/locales/zh-TW.ts | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/frontend/src/i18n/locales/de.ts b/frontend/src/i18n/locales/de.ts index a7dc0fc2e..417d7edcb 100644 --- a/frontend/src/i18n/locales/de.ts +++ b/frontend/src/i18n/locales/de.ts @@ -4875,7 +4875,7 @@ export default { // Restore from Git backup (#2656) restoreFromGit: { - button: 'Wiederherstellen', + button: 'Aus Git wiederherstellen', title: 'Aus Git-Backup wiederherstellen', subtitle: 'Commit auswählen und festlegen, was wiederhergestellt wird', commitLabel: 'Backup-Commit', diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index b5d4bcef4..25bc8df00 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -4918,7 +4918,7 @@ export default { // Restore from Git backup (#2656) restoreFromGit: { - button: 'Restore', + button: 'Restore from Git', title: 'Restore from Git Backup', subtitle: 'Pick a commit and choose what to restore', commitLabel: 'Backup commit', diff --git a/frontend/src/i18n/locales/es.ts b/frontend/src/i18n/locales/es.ts index 01c587951..77a80b138 100644 --- a/frontend/src/i18n/locales/es.ts +++ b/frontend/src/i18n/locales/es.ts @@ -4883,7 +4883,7 @@ export default { // Restore from Git backup (#2656) restoreFromGit: { - button: 'Restaurar', + button: 'Restaurar desde Git', title: 'Restaurar desde copia de Git', subtitle: 'Elige un commit y qué se debe restaurar', commitLabel: 'Commit de la copia', diff --git a/frontend/src/i18n/locales/fr.ts b/frontend/src/i18n/locales/fr.ts index 4f1c36358..dc99b710f 100644 --- a/frontend/src/i18n/locales/fr.ts +++ b/frontend/src/i18n/locales/fr.ts @@ -4864,7 +4864,7 @@ export default { // Restore from Git backup (#2656) restoreFromGit: { - button: 'Restaurer', + button: 'Restaurer depuis Git', title: 'Restaurer depuis la sauvegarde Git', subtitle: 'Choisissez un commit et ce qui doit être restauré', commitLabel: 'Commit de sauvegarde', diff --git a/frontend/src/i18n/locales/it.ts b/frontend/src/i18n/locales/it.ts index 0e465dcb7..aa0872ea2 100644 --- a/frontend/src/i18n/locales/it.ts +++ b/frontend/src/i18n/locales/it.ts @@ -4863,7 +4863,7 @@ export default { // Restore from Git backup (#2656) restoreFromGit: { - button: 'Ripristina', + button: 'Ripristina da Git', title: 'Ripristina dal backup Git', subtitle: 'Scegli un commit e cosa ripristinare', commitLabel: 'Commit del backup', diff --git a/frontend/src/i18n/locales/ja.ts b/frontend/src/i18n/locales/ja.ts index 69e33d784..937901e44 100644 --- a/frontend/src/i18n/locales/ja.ts +++ b/frontend/src/i18n/locales/ja.ts @@ -4875,7 +4875,7 @@ export default { // Restore from Git backup (#2656) restoreFromGit: { - button: '復元', + button: 'Git から復元', title: 'Git バックアップから復元', subtitle: 'コミットと復元する項目を選択します', commitLabel: 'バックアップのコミット', diff --git a/frontend/src/i18n/locales/ko.ts b/frontend/src/i18n/locales/ko.ts index 437b7eba8..35832c4df 100644 --- a/frontend/src/i18n/locales/ko.ts +++ b/frontend/src/i18n/locales/ko.ts @@ -4640,7 +4640,7 @@ export default { // Restore from Git backup (#2656) restoreFromGit: { - button: '복원', + button: 'Git에서 복원', title: 'Git 백업에서 복원', subtitle: '커밋과 복원할 항목을 선택하세요', commitLabel: '백업 커밋', diff --git a/frontend/src/i18n/locales/pt-BR.ts b/frontend/src/i18n/locales/pt-BR.ts index 4751195c7..6e75f13fe 100644 --- a/frontend/src/i18n/locales/pt-BR.ts +++ b/frontend/src/i18n/locales/pt-BR.ts @@ -4863,7 +4863,7 @@ export default { // Restore from Git backup (#2656) restoreFromGit: { - button: 'Restaurar', + button: 'Restaurar do Git', title: 'Restaurar do backup Git', subtitle: 'Escolha um commit e o que deve ser restaurado', commitLabel: 'Commit do backup', diff --git a/frontend/src/i18n/locales/ru.ts b/frontend/src/i18n/locales/ru.ts index b0e6d0d4f..798a3a582 100644 --- a/frontend/src/i18n/locales/ru.ts +++ b/frontend/src/i18n/locales/ru.ts @@ -4632,7 +4632,7 @@ export default { // Restore from Git backup (#2656) restoreFromGit: { - button: 'Восстановить', + button: 'Восстановить из Git', title: 'Восстановление из резервной копии Git', subtitle: 'Выберите коммит и данные для восстановления', commitLabel: 'Коммит резервной копии', diff --git a/frontend/src/i18n/locales/tr.ts b/frontend/src/i18n/locales/tr.ts index 47d1e81ff..afcbda9a0 100644 --- a/frontend/src/i18n/locales/tr.ts +++ b/frontend/src/i18n/locales/tr.ts @@ -4853,7 +4853,7 @@ export default { // Restore from Git backup (#2656) restoreFromGit: { - button: 'Geri Yükle', + button: 'Git\'ten Geri Yükle', title: 'Git yedeğinden geri yükle', subtitle: 'Bir commit ve geri yüklenecek verileri seçin', commitLabel: 'Yedek commit\'i', diff --git a/frontend/src/i18n/locales/uk.ts b/frontend/src/i18n/locales/uk.ts index e29031f91..47baf2f39 100644 --- a/frontend/src/i18n/locales/uk.ts +++ b/frontend/src/i18n/locales/uk.ts @@ -4918,7 +4918,7 @@ export default { // Restore from Git backup (#2656) restoreFromGit: { - button: "Відновити", + button: "Відновити з Git", title: "Відновлення з резервної копії Git", subtitle: "Виберіть коміт і вкажіть, що відновити", commitLabel: "Коміт резервної копії", diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index 8fefc26c1..222806356 100644 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -4863,7 +4863,7 @@ export default { // Restore from Git backup (#2656) restoreFromGit: { - button: '恢复', + button: '从 Git 恢复', title: '从 Git 备份恢复', subtitle: '选择提交以及要恢复的内容', commitLabel: '备份提交', diff --git a/frontend/src/i18n/locales/zh-TW.ts b/frontend/src/i18n/locales/zh-TW.ts index 6ecc3a15b..9c95133b2 100644 --- a/frontend/src/i18n/locales/zh-TW.ts +++ b/frontend/src/i18n/locales/zh-TW.ts @@ -4863,7 +4863,7 @@ export default { // Restore from Git backup (#2656) restoreFromGit: { - button: '還原', + button: '從 Git 還原', title: '從 Git 備份還原', subtitle: '選擇提交以及要還原的項目', commitLabel: '備份提交',