mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-25 03:57:13 +08:00
Fix localization texts that contain semicolon (#2900)
This commit is contained in:
@ -160,6 +160,10 @@ func NewFuncMap() []template.FuncMap {
|
||||
return setting.DisableGitHooks
|
||||
},
|
||||
"TrN": TrN,
|
||||
// TODO: Remove this once go-ini parser supports unescaping comment characters
|
||||
"UnescapeLocale": func(str string) string {
|
||||
return strings.NewReplacer("\\;", ";", "\\#", "#").Replace(str)
|
||||
},
|
||||
}}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user