hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 2105e42aca22f07267fb56dbe17bbe10bd14560d
parent 6e692f2d119a265d88025b64615b74b5f4856e4d
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Mon, 19 Sep 2016 02:44:21 +0200

tpl: Set i18n bundle once per test run

No real practical difference, but more clear.

Diffstat:
Mtpl/template_i18n_test.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tpl/template_i18n_test.go b/tpl/template_i18n_test.go
@@ -34,9 +34,9 @@ func doTestI18nTranslate(t *testing.T, data []test, lang, id string) string {
 		if err != nil {
 			t.Errorf("Error parsing translation file: %s", err)
 		}
-		SetI18nTfuncs(i18nBundle)
 	}
 
+	SetI18nTfuncs(i18nBundle)
 	SetTranslateLang(lang)
 
 	translated, err := I18nTranslate(id, nil)