Просмотр исходного кода

i18n(backup): rename the Git restore button to "Restore from Git" (#2656)

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.
jmoore-skild 1 месяц назад
Родитель
Сommit
6ea2daf9d0

+ 1 - 1
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',

+ 1 - 1
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',

+ 1 - 1
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',

+ 1 - 1
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',

+ 1 - 1
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',

+ 1 - 1
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: 'バックアップのコミット',

+ 1 - 1
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: '백업 커밋',

+ 1 - 1
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',

+ 1 - 1
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: 'Коммит резервной копии',

+ 1 - 1
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',

+ 1 - 1
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: "Коміт резервної копії",

+ 1 - 1
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: '备份提交',

+ 1 - 1
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: '備份提交',