Mainroad icon indicating copy to clipboard operation
Mainroad copied to clipboard

Pluralization of section names

Open sciurius opened this issue 1 year ago • 3 comments

I have a web site with mainroad theme. In the contents folder there are three subfolders: about, citaten and opinie. The latter two have an _index.md and subdocuments. In hugo.yaml there is

sectionPagesMenu: main

The names of the sections appear in the main menu, however, they are pluralized. citaten becomes citatens and opinie becomes opinies. This may or may not be desired, but it is wrong since it bypasses i18n.

sciurius avatar Aug 06 '24 18:08 sciurius

Control this behavior in your site configuration: https://gohugo.io/getting-started/configuration/#pluralizelisttitles

Please close this issue.

jmooring avatar Dec 04 '24 19:12 jmooring

Setting pluralizelisttitles to false prevents the pluralization. It does not solve the problem that pluralization, if enabled, bypasses i18n.

sciurius avatar Dec 04 '24 22:12 sciurius

I searched through the theme's template files looking for usage of the lang.Translate function (and its aliases i18n and T), and I didn't see it used when ranging through the menu entries.

Can you point me to where that's happening in the templates?

Or do you mean something different when you say "bypasses i18n?"

Also note that I am testing with v0.139.3.

jmooring avatar Dec 04 '24 23:12 jmooring