aboutsummaryrefslogtreecommitdiffhomepage
path: root/langs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-06-30 08:47:11 +0200
committerBjørn Erik Pedersen <[email protected]>2023-06-30 10:24:28 +0200
commitffd37d4f757c8448afd49823d2252532be7f7e00 (patch)
tree2b09f9d83a9be6966e74731fed741114a49a197c /langs
parentb4b65245b28e623e927941d4a07635535e6377fc (diff)
downloadhugo-ffd37d4f757c8448afd49823d2252532be7f7e00.tar.gz
hugo-ffd37d4f757c8448afd49823d2252532be7f7e00.zip
Only print the path warnings once
We could reset and rerun it on server rebuilds, but that report needs a full build to make sense. Also clean up the config vs flags in this area: Make all config settings match the flags e.g. `printPathWarnings`, but set up aliases for the old. Fixes #11187
Diffstat (limited to 'langs')
-rw-r--r--langs/i18n/i18n.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/langs/i18n/i18n.go b/langs/i18n/i18n.go
index 1ebd039cd..74af07754 100644
--- a/langs/i18n/i18n.go
+++ b/langs/i18n/i18n.go
@@ -119,7 +119,7 @@ func (t Translator) initFuncs(bndl *i18n.Bundle) {
t.logger.Warnf("Failed to get translated string for language %q and ID %q: %s", currentLangStr, translationID, err)
}
- if t.cfg.LogI18nWarnings() {
+ if t.cfg.PrintI18nWarnings() {
t.logger.Warnf("i18n|MISSING_TRANSLATION|%s|%s", currentLangStr, translationID)
}