commands, hugolib, source, target, tpl: Get rid of some fmt statements

This commit is contained in:
bogem
2016-11-18 22:38:41 +01:00
committed by Bjørn Erik Pedersen
parent 120f6b0cf2
commit 1f130fd692
4 changed files with 6 additions and 12 deletions

View File

@@ -14,8 +14,6 @@
package tpl
import (
"fmt"
"github.com/nicksnyder/go-i18n/i18n/bundle"
"github.com/spf13/hugo/helpers"
jww "github.com/spf13/jwalterweatherman"
@@ -80,7 +78,7 @@ func SetI18nTfuncs(bndl *bundle.Bundle) {
i18nWarningLogger.Printf("i18n|MISSING_TRANSLATION|%s|%s", currentLang, translationID)
}
if enableMissingTranslationPlaceholders {
return fmt.Sprintf("[i18n] %s", translationID)
return "[i18n] " + translationID
}
if defaultT != nil {
if translated := defaultT(translationID, args...); translated != translationID {