Add an issue template translation

This commit is contained in:
LoveEevee 2018-10-14 14:02:50 +03:00
parent a0635812bb
commit 89f352bc60
3 changed files with 9 additions and 5 deletions

View File

@ -1,2 +1,3 @@
###### 下記の問題を説明してください。 スクリーンショットと診断情報を含めてください。
###### Describe the problem you are having below. Please include a screenshot and the diagnostic information.

View File

@ -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"))
}

View File

@ -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){