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

On adding component "There is more than one file for Spanish language, please adjust the file mask and use components for translating different resources." #9214

Closed
2 tasks done
eighthave opened this issue May 9, 2023 · 3 comments
Assignees
Labels
bug Something is broken.
Milestone

Comments

@eighthave
Copy link
Contributor

Describe the issue

I'm adding a new component to F-Droid using very simple YAML files. It uses a typical monolingual base file and subdirs for each language. This is the same file layout as https://hosted.weblate.org/projects/f-droid/website uses for JSON files and https://hosted.weblate.org/projects/f-droid/anti-features uses for YAML files:

  • File mask: badge/src/*/strings.yml
  • Monolingual base language file: badge/src/strings.yml

I already tried

  • I've read and searched the documentation.
  • I've searched for similar issues in this repository.

Steps to reproduce the behavior

https://gitlab.com/fdroid/artwork.git

It has these files that might be relevant:

$ ls -1 badge/src/es*/*
badge/src/es-419/strings.yml
badge/src/es-ar/strings.yml
badge/src/es-es/strings.yml
badge/src/es-mx/strings.yml
badge/src/es/strings.yml

This is perhaps related to the SIMPLIFY_LANGUAGES setting. If so, perhaps the error code can mention that?

Expected behavior

This should be allowed.

Screenshots

Screenshot from 2023-05-09 11-07-03

Exception traceback

No response

How do you run Weblate?

weblate.org service

Weblate versions

No response

Weblate deploy checks

No response

Additional context

No response

@nijel nijel self-assigned this May 9, 2023
@nijel nijel added the bug Something is broken. label May 9, 2023
@nijel nijel added this to the 4.18 milestone May 9, 2023
Craxti pushed a commit to Craxti/weblate that referenced this issue May 11, 2023
@eighthave
Copy link
Contributor Author

Showing the filenames in question sounds like a good solution to me.

@nijel
Copy link
Member

nijel commented May 15, 2023

I have no clue why GitHub didn't link this together. Fixed by 37e61f4

@nijel nijel closed this as completed May 15, 2023
@github-actions
Copy link

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

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

No branches or pull requests

2 participants