Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pluralization of section names #373

Open
sciurius opened this issue Aug 6, 2024 · 3 comments
Open

Pluralization of section names #373

sciurius opened this issue Aug 6, 2024 · 3 comments

Comments

@sciurius
Copy link

sciurius commented Aug 6, 2024

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.

@jmooring
Copy link

jmooring commented Dec 4, 2024

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

Please close this issue.

@sciurius
Copy link
Author

sciurius commented Dec 4, 2024

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

@jmooring
Copy link

jmooring commented Dec 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants