tpl: Set i18n bundle once per test run

No real practical difference, but more clear.
This commit is contained in:
Bjørn Erik Pedersen 2016-09-19 02:44:21 +02:00
parent 6e692f2d11
commit 2105e42aca

View file

@ -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)