From fba5a5a2d2fff92fca1e6fdf3a916f7ed2186d31 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 31 Jan 2020 07:01:45 +0900 Subject: [PATCH] Pages --- locales/ja-JP.yml | 25 ++++--- src/client/components/page/page.post.vue | 17 +++-- src/client/components/page/page.vue | 69 -------------------- src/client/components/post-form.vue | 2 +- src/client/pages/page-editor/page-editor.vue | 8 +-- src/client/pages/page.vue | 12 ++-- 6 files changed, 32 insertions(+), 101 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 3b1ed879e..e65798b96 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -338,6 +338,8 @@ unregister: "登録を解除" passwordLessLogin: "パスワード無しログイン" resetPassword: "パスワードをリセット" newPasswordIs: "新しいパスワードは「{password}」です" +post: "投稿" +posted: "投稿しました" _2fa: registerDevice: "デバイスを登録" @@ -445,7 +447,6 @@ _visibility: _postForm: replyPlaceholder: "この投稿に返信..." quotePlaceholder: "この投稿を引用..." - post: "投稿" _placeholders: a: "いまどうしてる?" b: "何かありましたか?" @@ -505,21 +506,17 @@ _timelines: global: "グローバル" _pages: - new-page: "ページの作成" - edit-page: "ページの編集" - read-page: "ソースを表示中" + newPage: "ページの作成" + editPage: "ページの編集" + readPage: "ソースを表示中" page-created: "ページを作成しました" page-updated: "ページを更新しました" name-already-exists: "指定されたページURLは既に存在しています" title-invalid-name: "不正なページURLです" text-invalid-name: "空白でないか確認してください" - are-you-sure-delete: "このページを削除しますか?" - page-deleted: "ページを削除しました" - edit-this-page: "このページを編集" - pin-this-page: "ピン留め" - unpin-this-page: "ピン留め解除" - view-source: "ソースを表示" - view-page: "ページを見る" + editThisPage: "このページを編集" + viewSource: "ソースを表示" + viewPage: "ページを見る" like: "いいね" unlike: "いいね解除" liked-pages: "いいねしたページ" @@ -542,9 +539,9 @@ _pages: fontSansSerif: "サンセリフ" set-eye-catching-image: "アイキャッチ画像を設定" remove-eye-catching-image: "アイキャッチ画像を削除" - choose-block: "ブロックを追加" - select-type: "種類を選択" - enter-variable-name: "変数名を決めてください" + chooseBlock: "ブロックを追加" + selectType: "種類を選択" + enterVariableName: "変数名を決めてください" the-variable-name-is-already-used: "その変数名は既に使われています" content-blocks: "コンテンツ" input-blocks: "入力" diff --git a/src/client/components/page/page.post.vue b/src/client/components/page/page.post.vue index 010a96c85..92a9d653f 100644 --- a/src/client/components/page/page.post.vue +++ b/src/client/components/page/page.post.vue @@ -1,7 +1,7 @@ @@ -59,16 +59,19 @@ export default Vue.extend({ diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue index c49b9c245..d6141e210 100644 --- a/src/client/components/post-form.vue +++ b/src/client/components/post-form.vue @@ -164,7 +164,7 @@ export default Vue.extend({ ? this.$t('renote') : this.reply ? this.$t('reply') - : this.$t('_postForm.post'); + : this.$t('post'); }, canPost(): boolean { diff --git a/src/client/pages/page-editor/page-editor.vue b/src/client/pages/page-editor/page-editor.vue index a5a4588f1..8b357584a 100644 --- a/src/client/pages/page-editor/page-editor.vue +++ b/src/client/pages/page-editor/page-editor.vue @@ -2,7 +2,7 @@
-
{{ readonly ? $t('read-page') : pageId ? $t('edit-page') : $t('new-page') }}
+
{{ readonly ? $t('readPage') : pageId ? $t('editPage') : $t('newPage') }}
@@ -27,7 +27,7 @@ {{ $t('url') }} - {{ $t('align-center') }} + {{ $t('alignCenter') }} @@ -301,7 +301,7 @@ export default Vue.extend({ async add() { const { canceled, result: type } = await this.$root.dialog({ type: null, - title: this.$t('choose-block'), + title: this.$t('chooseBlock'), select: { groupedItems: this.getPageBlockList() }, @@ -315,7 +315,7 @@ export default Vue.extend({ async addVariable() { let { canceled, result: name } = await this.$root.dialog({ - title: this.$t('enter-variable-name'), + title: this.$t('enterVariableName'), input: { type: 'text', }, diff --git a/src/client/pages/page.vue b/src/client/pages/page.vue index 780b6eccd..5d0ca653d 100644 --- a/src/client/pages/page.vue +++ b/src/client/pages/page.vue @@ -11,14 +11,14 @@