From 134958fd9f40b96384bc76598409a4a6fa032708 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Mon, 13 Nov 2017 09:56:10 +0200 Subject: Fix localization texts that contain semicolon (#2900) --- modules/templates/helper.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 454bd648a3..ae2efc2585 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -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) + }, }} } -- cgit v1.2.3