From 89f352bc60e992b1401975c7d7d7c7b72df0e038 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Sun, 14 Oct 2018 14:02:50 +0300 Subject: [PATCH] Add an issue template translation --- .github/ISSUE_TEMPLATE.md | 1 + public/src/js/about.js | 9 ++++++--- public/src/js/songselect.js | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 95fd27a..91c5032 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,2 +1,3 @@ +###### 下記の問題を説明してください。 スクリーンショットと診断情報を含めてください。 ###### Describe the problem you are having below. Please include a screenshot and the diagnostic information. diff --git a/public/src/js/about.js b/public/src/js/about.js index c6cb501..99ca917 100644 --- a/public/src/js/about.js +++ b/public/src/js/about.js @@ -1,6 +1,9 @@ -class About{ +class About{ constructor(touchEnabled){ - this.issueTemplate = "###### Describe the problem you are having below. Please include a screenshot and the diagnostic information." + this.issueTemplate = [ + "###### 下記の問題を説明してください。 スクリーンショットと診断情報を含めてください。", + "###### Describe the problem you are having below. Please include a screenshot and the diagnostic information." + ] this.touchEnabled = touchEnabled loader.changePage("about") @@ -115,7 +118,7 @@ class About{ } } - var issueBody = this.issueTemplate + "\n\n\n\n" + diag + var issueBody = this.issueTemplate.join("\n") + "\n\n\n\n" + diag this.getLink(this.linkGithub).href += "?body=" + encodeURIComponent(issueBody) this.getLink(this.linkEmail).href += "?body=" + encodeURIComponent(issueBody.replace(/\n/g, "\r\n")) } diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index aee12cb..12b2b76 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -169,8 +169,8 @@ class SongSelect{ this.selectedDiff = 0 assets.sounds["bgm_songsel"].playLoop(0.1, false, 0, 1.442, 3.506) - if(!touchEnabled && !fromTutorial && !("selectedSong" in localStorage)){ - fromTutorial = "tutorial" + if(!fromTutorial && !("selectedSong" in localStorage)){ + fromTutorial = touchEnabled ? "about" : "tutorial" } if(fromTutorial){