From 903e93ae01f3cf0dfbcb7bfb4b01167f5c03db25 Mon Sep 17 00:00:00 2001 From: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com> Date: Sun, 22 Mar 2020 10:51:40 +0900 Subject: i18n (#6171) * i18n Resolve #6155 * i18n for drive * :v: * Extract doc Co-authored-by: syuilo --- src/client/components/drive.file.vue | 4 +- src/client/components/drive.folder.vue | 16 +++--- src/client/components/drive.vue | 28 ++++----- src/client/components/emoji-picker.vue | 19 ++---- src/client/components/signin.vue | 4 +- src/client/pages/index.welcome.setup.vue | 2 +- src/client/pages/messaging-room.form.vue | 4 +- src/client/pages/messaging.vue | 2 +- .../pages/page-editor/els/page-editor.el.if.vue | 2 +- .../page-editor/els/page-editor.el.section.vue | 2 +- .../pages/page-editor/page-editor.script-block.vue | 2 +- src/client/pages/page-editor/page-editor.vue | 67 ++++++++++------------ src/client/pages/pages.vue | 4 +- src/docs/pages.ja-JP.md | 10 ++++ 14 files changed, 79 insertions(+), 87 deletions(-) create mode 100644 src/docs/pages.ja-JP.md (limited to 'src') diff --git a/src/client/components/drive.file.vue b/src/client/components/drive.file.vue index 2ef3fd38e4..014e1a6ca5 100644 --- a/src/client/components/drive.file.vue +++ b/src/client/components/drive.file.vue @@ -139,9 +139,9 @@ export default Vue.extend({ rename() { this.$root.dialog({ - title: this.$t('contextmenu.rename-file'), + title: this.$t('renameFile'), input: { - placeholder: this.$t('contextmenu.input-new-file-name'), + placeholder: this.$t('inputNewFileName'), default: this.file.name, allowEmpty: false } diff --git a/src/client/components/drive.folder.vue b/src/client/components/drive.folder.vue index 658aced3e8..2e861e2480 100644 --- a/src/client/components/drive.folder.vue +++ b/src/client/components/drive.folder.vue @@ -137,14 +137,14 @@ export default Vue.extend({ switch (err) { case 'detected-circular-definition': this.$root.dialog({ - title: this.$t('unable-to-process'), - text: this.$t('circular-reference-detected') + title: this.$t('unableToProcess'), + text: this.$t('circularReferenceFolder') }); break; default: this.$root.dialog({ type: 'error', - text: this.$t('unhandled-error') + text: this.$t('error') }); } }); @@ -177,9 +177,9 @@ export default Vue.extend({ rename() { this.$root.dialog({ - title: this.$t('contextmenu.rename-folder'), + title: this.$t('renameFolder'), input: { - placeholder: this.$t('contextmenu.input-new-folder-name'), + placeholder: this.$t('inputNewFolderName'), default: this.folder.name } }).then(({ canceled, result: name }) => { @@ -206,14 +206,14 @@ export default Vue.extend({ case 'b0fc8a17-963c-405d-bfbc-859a487295e1': this.$root.dialog({ type: 'error', - title: this.$t('unable-to-delete'), - text: this.$t('has-child-files-or-folders') + title: this.$t('unableToDelete'), + text: this.$t('hasChildFilesOrFolders') }); break; default: this.$root.dialog({ type: 'error', - text: this.$t('unable-to-delete') + text: this.$t('unableToDelete') }); } }); diff --git a/src/client/components/drive.vue b/src/client/components/drive.vue index bb35b156aa..fddac5b9aa 100644 --- a/src/client/components/drive.vue +++ b/src/client/components/drive.vue @@ -263,14 +263,14 @@ export default Vue.extend({ switch (err) { case 'detected-circular-definition': this.$root.dialog({ - title: this.$t('unable-to-process'), - text: this.$t('circular-reference-detected') + title: this.$t('unableToProcess'), + text: this.$t('circularReferenceFolder') }); break; default: this.$root.dialog({ type: 'error', - text: this.$t('unhandled-error') + text: this.$t('error') }); } }); @@ -284,9 +284,9 @@ export default Vue.extend({ urlUpload() { this.$root.dialog({ - title: this.$t('url-upload'), + title: this.$t('uploadFromUrl'), input: { - placeholder: this.$t('url-of-file') + placeholder: this.$t('uploadFromUrlDescription') } }).then(({ canceled, result: url }) => { if (canceled) return; @@ -296,17 +296,17 @@ export default Vue.extend({ }); this.$root.dialog({ - title: this.$t('url-upload-requested'), - text: this.$t('may-take-time') + title: this.$t('uploadFromUrlRequested'), + text: this.$t('uploadFromUrlMayTakeTime') }); }); }, createFolder() { this.$root.dialog({ - title: this.$t('create-folder'), + title: this.$t('createFolder'), input: { - placeholder: this.$t('folder-name') + placeholder: this.$t('folderName') } }).then(({ canceled, result: name }) => { if (canceled) return; @@ -321,9 +321,9 @@ export default Vue.extend({ renameFolder(folder) { this.$root.dialog({ - title: this.$t('contextmenu.rename-folder'), + title: this.$t('renameFolder'), input: { - placeholder: this.$t('contextmenu.input-new-folder-name'), + placeholder: this.$t('inputNewFolderName'), default: folder.name } }).then(({ canceled, result: name }) => { @@ -349,14 +349,14 @@ export default Vue.extend({ case 'b0fc8a17-963c-405d-bfbc-859a487295e1': this.$root.dialog({ type: 'error', - title: this.$t('unable-to-delete'), - text: this.$t('has-child-files-or-folders') + title: this.$t('unableToDelete'), + text: this.$t('hasChildFilesOrFolders') }); break; default: this.$root.dialog({ type: 'error', - text: this.$t('unable-to-delete') + text: this.$t('unableToDelete') }); } }); diff --git a/src/client/components/emoji-picker.vue b/src/client/components/emoji-picker.vue index a647b0ea04..e346023f29 100644 --- a/src/client/components/emoji-picker.vue +++ b/src/client/components/emoji-picker.vue @@ -2,12 +2,11 @@
- @@ -15,7 +14,7 @@
-
{{ categories.find(x => x.isActive).text }}