mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Make error pages translatable (#11163)
* make error pages translatable * dont translate ":" * link need Safe
This commit is contained in:
		@@ -82,6 +82,10 @@ loading = Loading…
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
error404 = The page you are trying to reach either <strong>does not exist</strong> or <strong>you are not authorized</strong> to view it.
 | 
					error404 = The page you are trying to reach either <strong>does not exist</strong> or <strong>you are not authorized</strong> to view it.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[error]
 | 
				
			||||||
 | 
					occurred = An error has occurred
 | 
				
			||||||
 | 
					report_message = If you are sure this is a Gitea bug, please search for issue on <a href="https://github.com/go-gitea/gitea/issues">GitHub</a> and open new issue if necessary.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[startpage]
 | 
					[startpage]
 | 
				
			||||||
app_desc = A painless, self-hosted Git service
 | 
					app_desc = A painless, self-hosted Git service
 | 
				
			||||||
install = Easy to install
 | 
					install = Easy to install
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,6 +5,6 @@
 | 
				
			|||||||
	<div class="ui divider"></div>
 | 
						<div class="ui divider"></div>
 | 
				
			||||||
	<br>
 | 
						<br>
 | 
				
			||||||
	<p>{{.i18n.Tr "error404" | Safe}}
 | 
						<p>{{.i18n.Tr "error404" | Safe}}
 | 
				
			||||||
	{{if .ShowFooterVersion}}<p>Application Version: {{AppVer}}</p>{{end}}
 | 
						{{if .ShowFooterVersion}}<p>{{.i18n.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}}
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
{{template "base/footer" .}}
 | 
					{{template "base/footer" .}}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,9 +3,9 @@
 | 
				
			|||||||
	<p style="margin-top: 100px"><img class="ui centered image" src="{{StaticUrlPrefix}}/img/500.png" alt="500"/></p>
 | 
						<p style="margin-top: 100px"><img class="ui centered image" src="{{StaticUrlPrefix}}/img/500.png" alt="500"/></p>
 | 
				
			||||||
	<div class="ui divider"></div>
 | 
						<div class="ui divider"></div>
 | 
				
			||||||
	<br>
 | 
						<br>
 | 
				
			||||||
	{{if .ErrorMsg}}<p>An error has occurred :</p>
 | 
						{{if .ErrorMsg}}<p>{{.i18n.Tr "error.occurred"}}:</p>
 | 
				
			||||||
	<pre style="text-align: left">{{.ErrorMsg}}</pre>{{end}}
 | 
						<pre style="text-align: left">{{.ErrorMsg}}</pre>{{end}}
 | 
				
			||||||
	{{if .ShowFooterVersion}}<p>Application Version: {{AppVer}}</p>{{end}}
 | 
						{{if .ShowFooterVersion}}<p>{{.i18n.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}}
 | 
				
			||||||
	{{if .IsAdmin}}<p>If you are sure this is Gitea bug, please search for issue on <a href="https://github.com/go-gitea/gitea/issues">GitHub</a> and open new issue if necessary.</p>{{end}}
 | 
						{{if .IsAdmin}}<p>{{.i18n.Tr "error.report_message"  | Safe}}</p>{{end}}
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
{{template "base/footer" .}}
 | 
					{{template "base/footer" .}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user