Fix localization texts that contain semicolon (#2900)

This commit is contained in:
Lauris BH authored and GitHub committed 2017-11-13 09:56:10 +02:00
1 parent 4725f91543
commit 134958fd9f
3 files changed
+7 -3

No files matched your search

+4
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)
},
}}
}