From aed7d06af594d452b67d02e4a74a6a7e0c8bd115 Mon Sep 17 00:00:00 2001 From: gutfuckllc <40531868+gutfuckllc@users.noreply.github.com> Date: Tue, 31 Jul 2018 11:36:15 -0400 Subject: [PATCH 01/12] Translated trash on main menu Translated trash on main menu --- locales/en.yml | 1 + locales/ja.yml | 2 ++ src/client/app/desktop/views/components/home.vue | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/locales/en.yml b/locales/en.yml index fbb3bd3cd3..e690605159 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -17,6 +17,7 @@ common: weeks_ago: "{}week(s) ago" months_ago: "{}month(s) ago" years_ago: "{}year(s) ago" + trash: "Garbage bin" weekday-short: sunday: "S" monday: "M" diff --git a/locales/ja.yml b/locales/ja.yml index 474bdf3a82..a808464398 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -19,6 +19,8 @@ common: months_ago: "{}ヶ月前" years_ago: "{}年前" + trash: "ゴミ箱" + weekday-short: sunday: "日" monday: "月" diff --git a/src/client/app/desktop/views/components/home.vue b/src/client/app/desktop/views/components/home.vue index ab276d3c4b..7a01596cfd 100644 --- a/src/client/app/desktop/views/components/home.vue +++ b/src/client/app/desktop/views/components/home.vue @@ -34,7 +34,7 @@
-

ゴミ箱

+

%i18n:common.trash%

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 02/12] 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 e690605159..37492ed20f 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 a808464398..27cf6b9840 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 7a01596cfd..5390e89ac5 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!' }] From 0f34ed3ccd0325461229eb3574fdddfb7aea41b4 Mon Sep 17 00:00:00 2001 From: gutfuckllc <40531868+gutfuckllc@users.noreply.github.com> Date: Tue, 31 Jul 2018 13:32:18 -0400 Subject: [PATCH 03/12] Added got it to the local files Home.vue got it was still untranslated. It now has a localization file --- locales/en.yml | 1 + locales/ja.yml | 1 + src/client/app/desktop/views/components/home.vue | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/locales/en.yml b/locales/en.yml index 37492ed20f..c60bf5243b 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -13,6 +13,7 @@ common: 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." + gotit: "Got it!" time: unknown: "unknown" diff --git a/locales/ja.yml b/locales/ja.yml index 27cf6b9840..46cf8caa37 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -13,6 +13,7 @@ common: paragraph2: "一部のウィジェットは、クリックすることで表示を変更することができます。" paragraph3: "ウィジェットを削除するには、ヘッダーの「ゴミ箱」と書かれたエリアにウィジェットをドラッグ&ドロップします。" paragraph4: "カスタマイズを終了するには、右上の「完了」をクリックします。" + gotit: "Got it!" time: unknown: "なぞのじかん" diff --git a/src/client/app/desktop/views/components/home.vue b/src/client/app/desktop/views/components/home.vue index 5390e89ac5..28860d09bc 100644 --- a/src/client/app/desktop/views/components/home.vue +++ b/src/client/app/desktop/views/components/home.vue @@ -193,7 +193,7 @@ export default Vue.extend({ '

%i18n:common.customizationtips.paragraph3%

' + '

%i18n:common.customizationtips.paragraph4%

', actions: [{ - text: 'Got it!' + text: '%i18n:common.customizationtips.gotit%' }] }); }, From 2855ec03729cccc4dce76ec1ec9457e840ecf3fa Mon Sep 17 00:00:00 2001 From: gutfuckllc <40531868+gutfuckllc@users.noreply.github.com> Date: Tue, 31 Jul 2018 13:54:12 -0400 Subject: [PATCH 04/12] Reformat, more translation Translated the totality of desktop/post-form.vue, reformated customization-tips. --- locales/en.yml | 10 +++++++++- locales/ja.yml | 11 +++++++++-- src/client/app/desktop/views/components/home.vue | 12 ++++++------ .../app/desktop/views/components/post-form.vue | 12 ++++++------ 4 files changed, 30 insertions(+), 15 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index c60bf5243b..d4ae70cd10 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -7,7 +7,7 @@ common: 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: + customization-tips: 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." @@ -407,6 +407,9 @@ desktop/views/components/notifications.vue: more: "More" empty: "No notifications!" desktop/views/components/post-form.vue: + add-visible-user: "+ Add user" + attach-location-information: "Attach location information" + hide-contents: "Hide contents" reply-placeholder: "Reply to this note..." quote-placeholder: "Quote this note..." submit: "Post" @@ -427,6 +430,11 @@ desktop/views/components/post-form.vue: text-remain: "{} characters remaining" recent-tags: "Recent" click-to-tagging: "Click to tagging" + visibility: "Visibility" + geolocation-alert: "Your device does not support geolocalization." + error: "Error" + enter-username: "Please enter a username..." + desktop/views/components/post-form-window.vue: note: "New note" reply: "Reply" diff --git a/locales/ja.yml b/locales/ja.yml index 46cf8caa37..3bcceaf05d 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -7,7 +7,7 @@ common: about-title: "A ⭐ of fediverse." about: "Misskeyを見つけていただき、ありがとうございます。Misskeyは、地球で生まれた分散マイクロブログSNSです。Fediverse(様々なSNSで構成される宇宙)の中に存在するため、他のSNSと相互に繋がっています。暫し都会の喧騒から離れて、新しいインターネットにダイブしてみませんか。" - customizationtips: + customization-tips: title: "カスタマイズのヒント" paragraph1: "ホームのカスタマイズでは、ウィジェットを追加/削除したり、ドラッグ&ドロップして並べ替えたりすることができます。" paragraph2: "一部のウィジェットは、クリックすることで表示を変更することができます。" @@ -470,6 +470,9 @@ desktop/views/components/notifications.vue: empty: "ありません!" desktop/views/components/post-form.vue: + add-visible-user: "+ユーザーを追加" + attach-location-information: "位置情報を添付する" + hide-contents: "内容を隠す" reply-placeholder: "この投稿への返信..." quote-placeholder: "この投稿を引用..." submit: "投稿" @@ -490,7 +493,11 @@ desktop/views/components/post-form.vue: text-remain: "残り{}文字" recent-tags: "最近" click-to-tagging: "クリックでタグ付け" - + visibility: "公開範囲" + geolocation-alert: "お使いの端末は位置情報に対応していません" + error: "エラー" + enter-username: "ユーザー名を入力してください" + desktop/views/components/post-form-window.vue: note: "新規投稿" reply: "返信" diff --git a/src/client/app/desktop/views/components/home.vue b/src/client/app/desktop/views/components/home.vue index 28860d09bc..e4902fcc38 100644 --- a/src/client/app/desktop/views/components/home.vue +++ b/src/client/app/desktop/views/components/home.vue @@ -187,13 +187,13 @@ export default Vue.extend({ methods: { hint() { (this as any).apis.dialog({ - 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%

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

%i18n:common.customization-tips.paragraph1%

' + + '

%i18n:common.customization-tips.paragraph2%

' + + '

%i18n:common.customization-tips.paragraph3%

' + + '

%i18n:common.customization-tips.paragraph4%

', actions: [{ - text: '%i18n:common.customizationtips.gotit%' + text: '%i18n:common.customization-tips.gotit%' }] }); }, diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index 06caf5f7aa..25942acee5 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -8,7 +8,7 @@
{{ u | userName }}[x] - +ユーザーを追加 + %i18n:@add-visible-user%
%i18n:@recent-tags%: @@ -36,9 +36,9 @@ - - - + +
- カスタマイズのヒント + %i18n:common.customization-tips.title%