From c2663529c1edf7ff28a5bd7d1f5775b0f38ef7c9 Mon Sep 17 00:00:00 2001 From: "Dr. Gutfuck LLC" <40531868+gutfuckllc@users.noreply.github.com> Date: Fri, 19 Oct 2018 22:57:23 -0400 Subject: [PATCH] Localized BSoD messages. (#2953) * Added VSCode workspace files to : .gitignore * Localized Blue Screen of Death: locales/ja-JP.yml Localized Blue Screen of Death: src/client/app/init.ts --- .gitignore | 1 + locales/ja-JP.yml | 9 +++++++++ src/client/app/init.ts | 6 +++--- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 1e12e20de2..9d109e0c05 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ api-docs.json /redis /mongo /elasticsearch +*.code-workspace diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 7eced56ef5..ecdbce177c 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -25,6 +25,15 @@ common: application-authorization: "アプリã®é€£æº" close: "é–‰ã˜ã‚‹" do-not-copy-paste: "ã“ã“ã«ã‚³ãƒ¼ãƒ‰ã‚’入力ã—ãŸã‚Šå¼µã‚Šä»˜ã‘ãŸã‚Šã—ãªã„ã§ãã ã•ã„。アカウントãŒä¸æ£åˆ©ç”¨ã•ã‚Œã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚" + BSoD: + fatal-error: ":( 致命的ãªå•é¡ŒãŒç™ºç”Ÿã—ã¾ã—ãŸã€‚" + update-browser-os: "ãŠä½¿ã„ã®ãƒ–ラウザ(ã¾ãŸã¯OS)ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’æ›´æ–°ã™ã‚‹ã¨è§£æ±ºã™ã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚" + error-code: "エラーコード" + browser-version: "ブラウザ ãƒãƒ¼ã‚¸ãƒ§ãƒ³" + 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 17d8f64c6a..905f9c6258 100644 --- a/src/client/app/init.ts +++ b/src/client/app/init.ts @@ -216,10 +216,10 @@ function panic(e) { document.documentElement.style.background = '#1269e2'; document.body.innerHTML = '<div id="error">' - + '<h1>:( 致命的ãªå•é¡ŒãŒç™ºç”Ÿã—ã¾ã—ãŸã€‚</h1>' - + '<p>ãŠä½¿ã„ã®ãƒ–ラウザ(ã¾ãŸã¯OS)ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’æ›´æ–°ã™ã‚‹ã¨è§£æ±ºã™ã‚‹å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™ã€‚</p>' + + '<h1>%i18n.common.BSoD.fatal-error%</h1>' + + '<p>%i18n.common.BSoD.update-browser-os%</p>' + '<hr>' - + `<p>エラーコード: ${e.toString()}</p>` + + `<p>%i18n.common.BSoD.error-code%: ${e.toString()}</p>` + `<p>ブラウザ ãƒãƒ¼ã‚¸ãƒ§ãƒ³: ${navigator.userAgent}</p>` + `<p>クライアント ãƒãƒ¼ã‚¸ãƒ§ãƒ³: ${version}</p>` + '<hr>' -- GitLab