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

Error: Error building site: Failed to load translations in file "de.toml": unable to parse translation #1 because invalid plural category newerPosts #462

Open
FoxMaccloud opened this issue Jan 13, 2024 · 2 comments

Comments

@FoxMaccloud
Copy link

I'm getting an error when I try to start a server like so;

$ hugo server
Total in 803 ms
Error: Error building site: Failed to load translations in file "de.toml": unable to parse translation #1 because invalid plural category newerPosts
map[id:pagination translation:map[newerPosts:Neuere Beiträge olderPosts:Ältere Beiträge]]

The steps I did to reproduce this was to add the theme as a submodule in the themes folder and edit the config.toml in the root path.
I'm attempting to start the server using WSL on windows10 and I have installed hugo via apt.

@Pyr3z
Copy link

Pyr3z commented Feb 1, 2024

I have the same exact problem, slightly different setup.

  • Ubuntu 20.04.6 server via SSH
  • Wait I suppose that's the only difference.

apt installed this Hugo version (today, default canonical repos):

Hugo Static Site Generator v0.68.3/extended linux/amd64 BuildDate: 2020-03-25T06:15:45Z

Which I suppose is pretty far behind upstream (v0.122.0)...

Seeing as I've already tried all the obvious bandaids like disabling all languages except english to no avail, suppose I'll try upgrading my Hugo version manually next.

@Pyr3z
Copy link

Pyr3z commented Feb 1, 2024

Confirmed: Upgrading to the latest version of Hugo (v0.122.0/extended linux/amd64) resolved the issue for me.

I would love to submit a PR that either fixes the issue or minimally updates the min_version property in theme.toml, but I also just learned this repo was archived last June 😞

P.S. alternative to manual installation, it seems you can get the latest version of hugo from the snap default repos. If you prefer to stick to package managers as much as possible.

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