From 3ec3fa2d1eae9d97bc43486ed51a8dfff1b6a0c0 Mon Sep 17 00:00:00 2001 From: gutfuckllc <40531868+gutfuckllc@users.noreply.github.com> Date: Wed, 1 Aug 2018 15:04:00 -0400 Subject: [PATCH] Localized mobile/views/components/ui.header.vue Also added name i18n line, as to allow easier rebranding should there be any. --- locales/en.yml | 5 +++++ locales/ja.yml | 6 ++++-- src/client/app/mobile/views/components/ui.header.vue | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index ea81414a13..e2f087d261 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -13,6 +13,7 @@ common: paragraph3: "To delete a widget, <strong>drag and drop the widget onto the area labeled \"Trash\"</strong> in the header." paragraph4: "To finish the customization, click \"Finish\" in the upper right." gotit: "Got it!" + name: "Misskey" time: unknown: "unknown" future: "future" @@ -889,6 +890,10 @@ mobile/views/components/sub-note-content.vue: mobile/views/components/timeline.vue: empty: "No notes" load-more: "More" + +mobile/views/components/ui.header.vue: + welcome-back: "Welcome back, " + mobile/views/components/ui.nav.vue: timeline: "Timeline" notifications: "Notifications" diff --git a/locales/ja.yml b/locales/ja.yml index 41af0060a1..4421befa84 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -6,7 +6,6 @@ common: misskey: "A ⭐ of fediverse" about-title: "A ⭐ of fediverse." about: "Misskeyを見つけていただき、ありがとうございます。Misskeyは、地球で生まれた<b>分散マイクロブログSNS</b>です。Fediverse(様々なSNSで構成される宇宙)の中に存在するため、他のSNSと相互に繋がっています。暫し都会の喧騒から離れて、新しいインターネットにダイブしてみませんか。" - customization-tips: title: "カスタマイズのヒント" paragraph1: "ホームのカスタマイズでは、ウィジェットを追加/削除したり、ドラッグ&ドロップして並べ替えたりすることができます。" @@ -14,7 +13,7 @@ common: paragraph3: "ウィジェットを削除するには、ヘッダーの<strong>「ゴミ箱」</strong>と書かれたエリアにウィジェットをドラッグ&ドロップします。" paragraph4: "カスタマイズを終了するには、右上の「完了」をクリックします。" gotit: "Got it!" - + name: "Misskey" time: unknown: "なぞのじかん" future: "未来" @@ -1033,6 +1032,9 @@ mobile/views/components/timeline.vue: empty: "投稿がありません" load-more: "もっと" +mobile/views/components/ui.header.vue: + welcome-back: "おかえりなさい、" + mobile/views/components/ui.nav.vue: timeline: "タイムライン" notifications: "通知" diff --git a/src/client/app/mobile/views/components/ui.header.vue b/src/client/app/mobile/views/components/ui.header.vue index c1ee70d105..794ec9a307 100644 --- a/src/client/app/mobile/views/components/ui.header.vue +++ b/src/client/app/mobile/views/components/ui.header.vue @@ -3,12 +3,12 @@ <mk-special-message/> <div class="main" ref="main"> <div class="backdrop"></div> - <p ref="welcomeback" v-if="$store.getters.isSignedIn">おかえりなさい、<b>{{ $store.state.i | userName }}</b>さん</p> + <p ref="welcomeback" v-if="$store.getters.isSignedIn">%i18n:@welcome-back%<b>{{ $store.state.i | userName }}</b>さん</p> <div class="content" ref="mainContainer"> <button class="nav" @click="$parent.isDrawerOpening = true">%fa:bars%</button> <template v-if="hasUnreadNotification || hasUnreadMessagingMessage || hasGameInvitation">%fa:circle%</template> <h1> - <slot>Misskey</slot> + <slot>%i18n:common.name%</slot> </h1> <slot name="func"></slot> </div>