From 1d4f4b829f9594ee8f962f434f7a1c028c0e665f Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 2 Aug 2018 08:04:16 +0900 Subject: [PATCH] Improve i18n --- locales/ja.yml | 15 +++------------ src/client/app/desktop/views/pages/search.vue | 2 +- src/client/app/desktop/views/pages/tag.vue | 2 +- src/client/app/mobile/views/pages/tag.vue | 2 +- 4 files changed, 6 insertions(+), 15 deletions(-) diff --git a/locales/ja.yml b/locales/ja.yml index 76ae7553d..342c90fba 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -867,20 +867,14 @@ desktop/views/pages/selectdrive.vue: desktop/views/pages/search.vue: not-available: "検索機能を利用することができません。" - not-found-quotes1: "「" - not-found-quotes2: "」" - not-found-text-english: "" - not-found-text-japanese: "に関する投稿は見つかりませんでした。" + not-found: "「{}」に関する投稿は見つかりませんでした。" desktop/views/pages/share.vue: share-with: "Misskeyで共有" close: "閉じる" desktop/views/pages/tag.vue: - no-posts-found-english: "" - no-posts-found-japanese: "に関する投稿は見つかりませんでした。" - left-quote: "「" - right-quote: "」" + no-posts-found: "ハッシュタグ「{}」が付けられた投稿は見つかりませんでした。" desktop/views/pages/user-list.users.vue: users: "ユーザー" @@ -1126,10 +1120,7 @@ mobile/views/pages/home.vue: global: "グローバル" mobile/views/pages/tag.vue: - no-posts-found-japanese: "に関する投稿は見つかりませんでした。" - no-posts-found-english: "" - left-quote: "「" - right-quote: "」" + no-posts-found: "ハッシュタグ「{}」が付けられた投稿は見つかりませんでした。" mobile/views/pages/welcome.vue: signup: "新規登録" diff --git a/src/client/app/desktop/views/pages/search.vue b/src/client/app/desktop/views/pages/search.vue index 2db9617db..0b6c9a032 100644 --- a/src/client/app/desktop/views/pages/search.vue +++ b/src/client/app/desktop/views/pages/search.vue @@ -7,7 +7,7 @@

%i18n:@not-available%

-

%fa:search%%i18n:@not-found-text-english%%i18n:@not-found-quotes1%{{ q }}%i18n:@not-found-quotes2%%i18n:@not-found-text-japanese%

+

%fa:search% {{ '%i18n:not-found%'.split('{}')[0] }}{{ q }}{{ '%i18n:not-found%'.split('{}')[1] }}

diff --git a/src/client/app/desktop/views/pages/tag.vue b/src/client/app/desktop/views/pages/tag.vue index 19f7ad1c1..04b377e0a 100644 --- a/src/client/app/desktop/views/pages/tag.vue +++ b/src/client/app/desktop/views/pages/tag.vue @@ -6,7 +6,7 @@
-

%i18n:no-posts-found-english%%fa:search%%i18n:left-quote%{{ q }}%i18n:right-quote%%i18n:no-posts-found-japanese%

+

%fa:search% {{ '%i18n:no-posts-found%'.split('{}')[0] }}{{ q }}{{ '%i18n:no-posts-found%'.split('{}')[1] }}

diff --git a/src/client/app/mobile/views/pages/tag.vue b/src/client/app/mobile/views/pages/tag.vue index c94fcec7d..a545e2b83 100644 --- a/src/client/app/mobile/views/pages/tag.vue +++ b/src/client/app/mobile/views/pages/tag.vue @@ -3,7 +3,7 @@ %fa:hashtag%{{ $route.params.tag }}
-

%fa:search%%i18n:@no-posts-found-english%%i18n:@left-quote%{{ q }}%i18n:@right-quote%%i18n:@no-posts-found-japanese%

+

%fa:search% {{ '%i18n:no-posts-found%'.split('{}')[0] }}{{ q }}{{ '%i18n:no-posts-found%'.split('{}')[1] }}