taiko-web development has returned to GitHub. This Gitea instance will be shut down soon.
If your taiko-web fork is unavailable due to DMCA takedown, you can contact GitHub Support and ask for it to be deleted.
Browse Source

Add an issue template translation

kekero 10 months ago
parent
commit
89f352bc60
3 changed files with 9 additions and 5 deletions
  1. 1
    0
      .github/ISSUE_TEMPLATE.md
  2. 6
    3
      public/src/js/about.js
  3. 2
    2
      public/src/js/songselect.js

+ 1
- 0
.github/ISSUE_TEMPLATE.md View File

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

+ 6
- 3
public/src/js/about.js View File

@@ -1,6 +1,9 @@
1
-class About{
1
+class About{
2 2
 	constructor(touchEnabled){
3
-		this.issueTemplate = "###### Describe the problem you are having below. Please include a screenshot and the diagnostic information."
3
+		this.issueTemplate = [
4
+			"###### 下記の問題を説明してください。 スクリーンショットと診断情報を含めてください。",
5
+			"###### Describe the problem you are having below. Please include a screenshot and the diagnostic information."
6
+		]
4 7
 		
5 8
 		this.touchEnabled = touchEnabled
6 9
 		loader.changePage("about")
@@ -115,7 +118,7 @@ class About{
115 118
 			}
116 119
 		}
117 120
 		
118
-		var issueBody = this.issueTemplate + "\n\n\n\n" + diag
121
+		var issueBody = this.issueTemplate.join("\n") + "\n\n\n\n" + diag
119 122
 		this.getLink(this.linkGithub).href += "?body=" + encodeURIComponent(issueBody)
120 123
 		this.getLink(this.linkEmail).href += "?body=" + encodeURIComponent(issueBody.replace(/\n/g, "\r\n"))
121 124
 	}

+ 2
- 2
public/src/js/songselect.js View File

@@ -169,8 +169,8 @@ class SongSelect{
169 169
 		this.selectedDiff = 0
170 170
 		assets.sounds["bgm_songsel"].playLoop(0.1, false, 0, 1.442, 3.506)
171 171
 		
172
-		if(!touchEnabled && !fromTutorial && !("selectedSong" in localStorage)){
173
-			fromTutorial = "tutorial"
172
+		if(!fromTutorial && !("selectedSong" in localStorage)){
173
+			fromTutorial = touchEnabled ? "about" : "tutorial"
174 174
 		}
175 175
 		
176 176
 		if(fromTutorial){

Loading…
Cancel
Save