diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-08-07 14:03:03 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-09-06 18:32:17 +0300 |
commit | 2079a23dd89734cea39e523faf46e44201151279 (patch) | |
tree | 5b5163a12cf874863eea889685d65a3c5b56515c /hugolib/translations.go | |
parent | 596e0e98e4483d2a0a709412a338ceddb6538757 (diff) |
Make it possible to configure Blackfroday per language
See #2309
Diffstat (limited to 'hugolib/translations.go')
-rw-r--r-- | hugolib/translations.go | 15 |
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 } |