diff options
author | Lauris BH <lauris@nix.lv> | 2017-11-13 09:56:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-13 09:56:10 +0200 |
commit | 134958fd9f40b96384bc76598409a4a6fa032708 (patch) | |
tree | 175e195ff53a0288d43995bc131b02cab3028dcf /modules | |
parent | 4725f915433703335d8f7f162e6dbc97afe5115f (diff) | |
download | gitea-134958fd9f40b96384bc76598409a4a6fa032708.tar.gz gitea-134958fd9f40b96384bc76598409a4a6fa032708.zip |
Fix localization texts that contain semicolon (#2900)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/templates/helper.go | 4 |
1 files changed, 4 insertions, 0 deletions
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) + }, }} } |