Fix localization texts that contain semicolon (#2900)

This commit is contained in:
Lauris BH 2017-11-13 09:56:10 +02:00 committed by GitHub
parent 4725f91543
commit 134958fd9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View file

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