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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weblate can't extract the attributes within the messages inside a Fluent translation file #7742

Closed
pan93412 opened this issue Jun 5, 2022 · 7 comments
Labels
enhancement Adding or requesting a new feature. translate-toolkit Issues which need to be fixed in the translate-toolkit
Milestone

Comments

@pan93412
Copy link
Contributor

pan93412 commented Jun 5, 2022

Describe the problem

When importing the string file of rustc, I found that Weblate can't extract the attributes inside messages.

As it is listed in the official Fluent specification, I wish it can be supported! 馃槃

Describe the solution you'd like

Weblate can treat the attributes in the messages as a translatable string.

Describe alternatives you've considered

No response

Screenshots

Weblate can correctly extract the messages but not the attributes inside messages

Take this image as example: I hope the strings in .suggestion and .help can be extracted and translated as a normal string.

Additional context

No response

@pan93412 pan93412 changed the title Weblate can't extract the attribute of a Fluent translation file Weblate can't extract the attributes within the messages inside a Fluent translation file Jun 5, 2022
@nijel
Copy link
Member

nijel commented Jun 6, 2022

Currently, the attributes are not exposed as translatable strings by translate-toolkit.

@nijel nijel added enhancement Adding or requesting a new feature. translate-toolkit Issues which need to be fixed in the translate-toolkit labels Jun 6, 2022
@github-actions
Copy link

github-actions bot commented Jun 6, 2022

The issue you've reported needs to be addressed in the translate-toolkit. Please file the issue there, and include links to any relevant specifications about the formats (if applicable).

@pan93412
Copy link
Contributor Author

pan93412 commented Jun 8, 2022

Currently, the attributes are not exposed as translatable strings by translate-toolkit.

Create an issue with a link to here in translate/translate#4649. Not really sure how to report it correctly since there is no ftl2po to check if it generates correctly.

@nijel
Copy link
Member

nijel commented Jun 9, 2022

This is correct, there are no convertors for fluent, but only a storage class there.

@juliancoffee
Copy link

Still an issue even after translate/translate#4649?

@nijel
Copy link
Member

nijel commented May 23, 2023

No, it should be fixed now (for 4.18).

@nijel nijel added this to the 4.18 milestone May 23, 2023
@nijel nijel closed this as completed May 23, 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鈥檛 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
enhancement Adding or requesting a new feature. translate-toolkit Issues which need to be fixed in the translate-toolkit
Projects
None yet
Development

No branches or pull requests

3 participants