i18n translation und formatting archive pages listing #998
-
I still have a problem in the display of the date format in the archive pages in the right localization. Currently the date is displayed in english language in the default format defined in line 23 themes/hugo-theme-bootstrap/layouts/partials/archives/list.html
Probably did not understand the configuration of the theme. My current config: [de]
languageName = "Deutsch"
weight = 1
defaultContentLanguage = "de"
[de.params]
dateFormat = ':date_full'
description = "Anleitungen, HowTos, Code-Schnipsel & Blog"
pygmentsUseClasses = true
comment = false
[de.params.archive]
languageName = "Deutsch"
defaultContentLanguage = "de"
dateFormat = "1. Jan"
description = "Das Archiv der Homepage"
[en]
languageName = "English"
weight = 2
[en.params]
pygmentsUseClasses = true
comment = false
[fr]
languageName = "Français"
weight = 3
[fr.params]
dateFormat = "02-01-2006"
comment = false
[blackfriday.params]
hrefTargetBlank = true I thought that the section [de.params.archive]
languageName = "Deutsch"
defaultContentLanguage = "de"
dateFormat = "1. Jan" The expected output would be
But no matter what I enter there, unfortunately nothing changes. for example dateFormat = "02-01-2006" its still Could someone give me a hint as to what I am doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
It's a bug, the theme doesn't read the parameter correctly, now it was fixed, you can use the latest changes by upgrade to the Btw, the
See also:
Thanks for the feedback. |
Beta Was this translation helpful? Give feedback.
-
Oh dear. I wish I had posted this issue sooner. I've been tinkering with it for a few weeks now.
Yes, correct. Thanks for the reminder. That was a desperate attempt from my debugging. I will remove that.
You are welcome. Thanks for the bugfixing. |
Beta Was this translation helpful? Give feedback.
-
Hello @razonyang , here I am again. Here is again the default english and default dateFormat in the lines with the page title and the month paragraphs. The error should be in this file:
I will open an issue for this in a moment. |
Beta Was this translation helpful? Give feedback.
It's a bug, the theme doesn't read the parameter correctly, now it was fixed, you can use the latest changes by upgrade to the
master
branch.Btw, the
languageName
anddefaultContentLanguage
anddescription
are unused/invalid below the[de.params.archive]
block.See also:
Thanks for the feedback.