From fe7c1c482f4f67902694987a6ddc7fcafab9ae53 Mon Sep 17 00:00:00 2001 From: Timur Ismagilov Date: Wed, 18 May 2022 20:18:30 +0300 Subject: [PATCH] Copyedit --- viewutil/viewutil.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viewutil/viewutil.go b/viewutil/viewutil.go index 7e248f4..3fff9a6 100644 --- a/viewutil/viewutil.go +++ b/viewutil/viewutil.go @@ -72,10 +72,9 @@ func Init() { BaseRu = m(m(BaseEn.Clone()).Parse(ruText)) } -// TODO: get rid of this func localizedBaseWithWeirdBody(meta Meta) *template.Template { t := func() *template.Template { - if meta.Locale() == "_ru" { + if meta.Locale() == "ru" { return BaseRu } return BaseEn @@ -103,6 +102,7 @@ func (bd *BaseData) withBaseValues(meta Meta, headerLinks []cfg.HeaderLink, comm } // Base is a temporary wrapper around BaseEn and BaseRu, meant to facilitate the migration from qtpl. +// TODO: get rid of this func Base(meta Meta, title, body string, headElements ...string) string { var w strings.Builder meta.W = &w