From 1729d05e8ca22439222f1a1009a117c42b6e3e58 Mon Sep 17 00:00:00 2001
From: "Dr. Gutfuck LLC" <40531868+gutfuckllc@users.noreply.github.com>
Date: Sat, 20 Oct 2018 02:46:01 -0400
Subject: [PATCH] Localized mark all as read message (#2956)

* Localized read-all message

* Fixed some weirdness:   src/client/app/init.ts

* Unfucked server api stuff (sorry lol):   src/server/api/endpoints/i/read_all_unread_notes.ts

* Clean up
---
 locales/ja-JP.yml                                   | 4 ++--
 src/client/app/init.ts                              | 8 ++++----
 src/server/api/endpoints/i/read_all_unread_notes.ts | 3 ++-
 3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index ecdbce177..be9c4f259 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -25,7 +25,7 @@ common:
   application-authorization: "アプリの連携"
   close: "閉じる"
   do-not-copy-paste: "ここにコードを入力したり張り付けたりしないでください。アカウントが不正利用される可能性があります。"
-  BSoD: 
+  BSoD:
     fatal-error: ":( 致命的な問題が発生しました。"
     update-browser-os: "お使いのブラウザ(またはOS)のバージョンを更新すると解決する可能性があります。"
     error-code: "エラーコード"
@@ -33,7 +33,7 @@ common:
     client-version: "クライアント バージョン"
     email-support: "問題が解決しない場合は、上記の情報をお書き添えの上 syuilotan@yahoo.co.jp までご連絡ください。"
     thanks: "Thank you for using Misskey."
-    
+
   got-it: "わかった"
   customization-tips:
     title: "カスタマイズのヒント"
diff --git a/src/client/app/init.ts b/src/client/app/init.ts
index 905f9c625..5bfb48778 100644
--- a/src/client/app/init.ts
+++ b/src/client/app/init.ts
@@ -220,11 +220,11 @@ function panic(e) {
 			+ '<p>%i18n.common.BSoD.update-browser-os%</p>'
 			+ '<hr>'
 			+ `<p>%i18n.common.BSoD.error-code%: ${e.toString()}</p>`
-			+ `<p>ブラウザ バージョン: ${navigator.userAgent}</p>`
-			+ `<p>クライアント バージョン: ${version}</p>`
+			+ `<p>%i18n.common.BSoD.browser-version%: ${navigator.userAgent}</p>`
+			+ `<p>%i18n.common.BSoD.client-version%: ${version}</p>`
 			+ '<hr>'
-			+ '<p>問題が解決しない場合は、上記の情報をお書き添えの上 syuilotan@yahoo.co.jp までご連絡ください。</p>'
-			+ '<p>Thank you for using Misskey.</p>'
+			+ '<p>%i18n.common.BSoD.email-support%</p>'
+			+ '<p>%i18n.common.BSoD.thanks%</p>'
 		+ '</div>';
 
 	// TODO: Report the bug
diff --git a/src/server/api/endpoints/i/read_all_unread_notes.ts b/src/server/api/endpoints/i/read_all_unread_notes.ts
index fae98b981..6a4f72ea2 100644
--- a/src/server/api/endpoints/i/read_all_unread_notes.ts
+++ b/src/server/api/endpoints/i/read_all_unread_notes.ts
@@ -4,7 +4,8 @@ import NoteUnread from '../../../../models/note-unread';
 
 export const meta = {
 	desc: {
-		'ja-JP': '未読の投稿をすべて既読にします。'
+		'ja-JP': '未読の投稿をすべて既読にします。',
+		'en-US': 'Mark all messages as read.'
 	},
 
 	requireCredential: true,