summaryrefslogtreecommitdiffstats
path: root/hugolib/translations.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/translations.go')
-rw-r--r--hugolib/translations.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/hugolib/translations.go b/hugolib/translations.go
index 267545f37..05dcfb260 100644
--- a/hugolib/translations.go
+++ b/hugolib/translations.go
@@ -13,10 +13,6 @@
package hugolib
-import (
- jww "github.com/spf13/jwalterweatherman"
-)
-
// Translations represent the other translations for a given page. The
// string here is the language code, as affected by the `post.LANG.md`
// filename.
@@ -38,17 +34,6 @@ func pagesToTranslationsMap(ml *Multilingual, pages []*Page) map[string]Translat
continue
}
- language := ml.Language(pageLang)
-
- if language == nil {
- // TODO(bep) ml
- // This may or may not be serious. It can be a file named stefano.chiodino.md.
- jww.WARN.Printf("Page language (if it is that) not found in multilang setup: %s.", pageLang)
- language = ml.DefaultLang
- }
-
- page.language = language
-
pageTranslation[pageLang] = page
out[base] = pageTranslation
}