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: add site dependencies: load resources: loading translations: #503

Closed
VZhuck opened this issue Mar 17, 2023 · 2 comments
Closed

Error: add site dependencies: load resources: loading translations: #503

VZhuck opened this issue Mar 17, 2023 · 2 comments
Labels
i18n Issue with i18n translations

Comments

@VZhuck
Copy link

VZhuck commented Mar 17, 2023

Language

bn

What's the issue?

Env:

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

Steps to reproduce:

  • hugo new site my-site
  • cd my-site
  • git init
  • git submodule add -b stable https://github.com/jpanther/congo.git themes/congo
  • update config file with theme="congo"
  • run: hugo
  • hugo generate Error (see below)
    PS. Please note that when I run the same steps on Windows I see no issues.

Theme version

Stable & Dev

Hugo version

0.68.3

Relevant Hugo log output

Error: add site dependencies: load resources: loading translations: "/mnt/d/Repos/my-site/themes/congo/i18n/bn.yaml:1:1": failed to load translations: unable to parse translation #0 because invalid plural category externalurl_title
map[id:list translation:map[externalurl_title:অন্য ওয়েবসাইটের লিংক no_articles:এখানে তালিকাভুক্ত করার মতো আপাতত কিছুই নেই।]]
@VZhuck VZhuck added the i18n Issue with i18n translations label Mar 17, 2023
@jpanther
Copy link
Owner

Thanks for the report. The fact that this is working on Windows but not on Linux suggests to me that it has something to do with the file encoding. I'll make a change that hopefully rectifies this for you and will include it in the next update.

@kpspu
Copy link

kpspu commented Mar 26, 2023

Not sure, looks like the connected issue?
I've got this error in the attempt to install using Hugo:

hugo server
go: finding github.com/jpanther/congo/v2 v2.5.4
hugo: downloading modules …
go: finding github.com/jpanther/congo v1.6.4
go: downloading github.com/jpanther/congo/v2 v2.5.4
go: downloading github.com/jpanther/congo v1.6.4
go: extracting github.com/jpanther/congo v1.6.4
go: extracting github.com/jpanther/congo/v2 v2.5.4
hugo: collected modules in 4228 ms
Error: add site dependencies: load resources: loading translations: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/congo/v2@v2.5.4/i18n/bn.yaml:1:1": failed to load translations: unable to parse translation #0 because invalid plural category copied
map[id:code translation:map[copied:কপি হয়ে গেছে copy:কপি করুন]]

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

No branches or pull requests

3 participants