From bcea961f0af37accfe2bbf811bc90188ed7a413c Mon Sep 17 00:00:00 2001 From: leecason Date: Mon, 6 Jul 2020 22:11:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20enable=20`open=20in=20new?= =?UTF-8?q?=20tab`=20when=20add=20link?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Link/AddLinkCommandButton.vue | 121 +++++++++++++----- .../Link/EditLinkCommandButton.vue | 4 +- src/i18n/de/index.ts | 3 +- src/i18n/en/index.ts | 3 +- src/i18n/es/index.ts | 3 +- src/i18n/ko/index.ts | 3 +- src/i18n/pl/index.ts | 3 +- src/i18n/ru/index.ts | 3 +- src/i18n/zh-tw/index.ts | 3 +- src/i18n/zh/index.ts | 3 +- 10 files changed, 106 insertions(+), 43 deletions(-) diff --git a/src/components/MenuCommands/Link/AddLinkCommandButton.vue b/src/components/MenuCommands/Link/AddLinkCommandButton.vue index 1f061012..318c8e8c 100644 --- a/src/components/MenuCommands/Link/AddLinkCommandButton.vue +++ b/src/components/MenuCommands/Link/AddLinkCommandButton.vue @@ -1,22 +1,79 @@ diff --git a/src/components/MenuCommands/Link/EditLinkCommandButton.vue b/src/components/MenuCommands/Link/EditLinkCommandButton.vue index b84d928a..ee5dc9bf 100644 --- a/src/components/MenuCommands/Link/EditLinkCommandButton.vue +++ b/src/components/MenuCommands/Link/EditLinkCommandButton.vue @@ -42,7 +42,7 @@ round @click="closeEditLinkDialog" > - {{ et.t('editor.extensions.Image.control.edit_image.cancel') }} + {{ et.t('editor.extensions.Link.edit.control.cancel') }} - {{ et.t('editor.extensions.Image.control.edit_image.confirm') }} + {{ et.t('editor.extensions.Link.edit.control.confirm') }} diff --git a/src/i18n/de/index.ts b/src/i18n/de/index.ts index 34684085..3392b987 100644 --- a/src/i18n/de/index.ts +++ b/src/i18n/de/index.ts @@ -31,7 +31,8 @@ export default { tooltip: 'Link hinzufügen', control: { title: 'Link hinzufügen', - placeholder: 'Link', + href: 'Link', + open_in_new_tab: 'Öffnen Sie in einem neuen Tab', confirm: 'Hinzufügen', cancel: 'Abbrechen', }, diff --git a/src/i18n/en/index.ts b/src/i18n/en/index.ts index 649440df..e7491933 100644 --- a/src/i18n/en/index.ts +++ b/src/i18n/en/index.ts @@ -31,7 +31,8 @@ export default { tooltip: 'Apply link', control: { title: 'Apply Link', - placeholder: 'Href', + href: 'Href', + open_in_new_tab: 'Open in new tab', confirm: 'Apply', cancel: 'Cancel', }, diff --git a/src/i18n/es/index.ts b/src/i18n/es/index.ts index 5c49e184..98073ab5 100644 --- a/src/i18n/es/index.ts +++ b/src/i18n/es/index.ts @@ -31,7 +31,8 @@ export default { tooltip: 'Crear enlace', control: { title: 'Crear enlace', - placeholder: 'Href', + href: 'Href', + open_in_new_tab: 'Abrir en una pestaña nueva', confirm: 'Crear', cancel: 'Cancelar', }, diff --git a/src/i18n/ko/index.ts b/src/i18n/ko/index.ts index 7fdae0c3..c0394500 100644 --- a/src/i18n/ko/index.ts +++ b/src/i18n/ko/index.ts @@ -31,7 +31,8 @@ export default { tooltip: '링크 추가', control: { title: '링크 추가', - placeholder: 'URL주소', + href: 'URL주소', + open_in_new_tab: '새 탭에서 열기', confirm: '적용', cancel: '취소', }, diff --git a/src/i18n/pl/index.ts b/src/i18n/pl/index.ts index f13ced67..3e9bd40c 100644 --- a/src/i18n/pl/index.ts +++ b/src/i18n/pl/index.ts @@ -31,7 +31,8 @@ export default { tooltip: 'Dodaj link', control: { title: 'Dodaj Link', - placeholder: 'Źródło', + href: 'Źródło', + open_in_new_tab: 'Otwórz w nowej karcie', confirm: 'Dodaj', cancel: 'Anuluj', }, diff --git a/src/i18n/ru/index.ts b/src/i18n/ru/index.ts index bccee41e..e6f097e6 100644 --- a/src/i18n/ru/index.ts +++ b/src/i18n/ru/index.ts @@ -31,7 +31,8 @@ export default { tooltip: 'Добавить ссылку', control: { title: 'Добавить ссылку', - placeholder: 'Адрес', + href: 'Адрес', + open_in_new_tab: 'Открыть в новой вкладке', confirm: 'Применить', cancel: 'Отменить', }, diff --git a/src/i18n/zh-tw/index.ts b/src/i18n/zh-tw/index.ts index df7431e3..c963edfb 100644 --- a/src/i18n/zh-tw/index.ts +++ b/src/i18n/zh-tw/index.ts @@ -31,7 +31,8 @@ export default { tooltip: '新增超連結', control: { title: '新增超連結', - placeholder: '輸入超連結', + href: '超連結', + open_in_new_tab: '在新分頁開啟', confirm: '新增', cancel: '取消', }, diff --git a/src/i18n/zh/index.ts b/src/i18n/zh/index.ts index c5a09c85..cecd6ed7 100644 --- a/src/i18n/zh/index.ts +++ b/src/i18n/zh/index.ts @@ -31,7 +31,8 @@ export default { tooltip: '添加链接', control: { title: '添加链接', - placeholder: '输入链接', + href: '链接', + open_in_new_tab: '在新标签页中打开', confirm: '添加', cancel: '取消', },