From cbb73e4e15b81390cb4279ff90a2cdb3dad3c633 Mon Sep 17 00:00:00 2001 From: gutfuckllc <40531868+gutfuckllc@users.noreply.github.com> Date: Tue, 31 Jul 2018 13:29:18 -0400 Subject: [PATCH] Localized customization tips on home.vue Added relevant customization lines. --- locales/en.yml | 8 ++++++++ locales/ja.yml | 7 +++++++ src/client/app/desktop/views/components/home.vue | 10 +++++----- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index e69060515..37492ed20 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -6,6 +6,14 @@ common: misskey: "A ⭐ of the fediverse" about-title: "A ⭐ of the fediverse." about: "Thank you for finding Misskey. Misskey is a decentralized microblogging platform born on Earth. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms. Why don't you take a short break from the hustle and bustle of the city, and dive into a new Internet?" + + customizationtips: + title: "Customization tips" + paragraph1: "Home customization allows you to add/delete, drag and drop and rearrange widgets." + paragraph2: "You can change the display by right clicking on some widgets." + paragraph3: "To delete a widget, drag and drop the widget onto the area labeled "Trash" in the header." + paragraph4: "To finish the customization, click "Finish" in the upper right." + time: unknown: "unknown" future: "future" diff --git a/locales/ja.yml b/locales/ja.yml index a80846439..27cf6b984 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -6,6 +6,13 @@ common: misskey: "A ⭐ of fediverse" about-title: "A ⭐ of fediverse." about: "Misskeyを見つけていただき、ありがとうございます。Misskeyは、地球で生まれた分散マイクロブログSNSです。Fediverse(様々なSNSで構成される宇宙)の中に存在するため、他のSNSと相互に繋がっています。暫し都会の喧騒から離れて、新しいインターネットにダイブしてみませんか。" + + customizationtips: + title: "カスタマイズのヒント" + paragraph1: "ホームのカスタマイズでは、ウィジェットを追加/削除したり、ドラッグ&ドロップして並べ替えたりすることができます。" + paragraph2: "一部のウィジェットは、クリックすることで表示を変更することができます。" + paragraph3: "ウィジェットを削除するには、ヘッダーの「ゴミ箱」と書かれたエリアにウィジェットをドラッグ&ドロップします。" + paragraph4: "カスタマイズを終了するには、右上の「完了」をクリックします。" time: unknown: "なぞのじかん" diff --git a/src/client/app/desktop/views/components/home.vue b/src/client/app/desktop/views/components/home.vue index 7a01596cf..5390e89ac 100644 --- a/src/client/app/desktop/views/components/home.vue +++ b/src/client/app/desktop/views/components/home.vue @@ -187,11 +187,11 @@ export default Vue.extend({ methods: { hint() { (this as any).apis.dialog({ - title: '%fa:info-circle%カスタマイズのヒント', - text: '

ホームのカスタマイズでは、ウィジェットを追加/削除したり、ドラッグ&ドロップして並べ替えたりすることができます。

' + - '

一部のウィジェットは、クリックすることで表示を変更することができます。

' + - '

ウィジェットを削除するには、ヘッダーの「ゴミ箱」と書かれたエリアにウィジェットをドラッグ&ドロップします。

' + - '

カスタマイズを終了するには、右上の「完了」をクリックします。

', + title: '%fa:info-circle%%i18n:common.customizationtips.title%', + text: '

%i18n:common.customizationtips.paragraph1%

' + + '

%i18n:common.customizationtips.paragraph2%

' + + '

%i18n:common.customizationtips.paragraph3%

' + + '

%i18n:common.customizationtips.paragraph4%

', actions: [{ text: 'Got it!' }]