mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
commands, hugolib, source, target, tpl: Get rid of some fmt statements
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
120f6b0cf2
commit
1f130fd692
@@ -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 {
|
||||
|
Reference in New Issue
Block a user