Bjørn Erik Pedersen
23ba779fab
i18n: Support unknown language codes
...
Fixes #3564
2017-11-06 20:27:41 +01:00
Bjørn Erik Pedersen
b88a105a7c
Revert "i18n: Allow custom language codes"
...
This reverts commit bb04010cbf
.
2017-11-05 10:20:39 +01:00
Bjørn Erik Pedersen
b3443b3d0c
Revert "i18n: Prevent data race in lang code handling"
...
This reverts commit c97216e4f0
.
2017-11-05 10:20:30 +01:00
Bjørn Erik Pedersen
c97216e4f0
i18n: Prevent data race in lang code handling
...
See #3564
2017-11-04 10:48:29 +01:00
Kevin Gimbel
bb04010cbf
i18n: Allow custom language codes
...
Use the new `RegisterPluralSpec` function to register all defined
languages. This allows the usage of language identifiers which are not
part of the Unicode CLDR standard.
Closes #3564
2017-11-04 10:48:29 +01:00
Bjørn Erik Pedersen
873a6f1885
Run gofmt to get imports in line vs gohugoio/hugo
2017-06-13 19:12:10 +02:00
Bjørn Erik Pedersen
d8717cd4c7
all: Update import paths to gohugoio/hugo
2017-06-13 18:42:45 +02:00
Bjørn Erik Pedersen
93ca7c9e95
all: Refactor to nonglobal Viper, i18n etc.
...
This is a final rewrite that removes all the global state in Hugo, which also enables
the use if `t.Parallel` in tests.
Updates #2701
Fixes #3016
2017-02-17 17:15:26 +01:00