-
-
Notifications
You must be signed in to change notification settings - Fork 959
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
Support for Source String Descriptions in YAML files #9039
Comments
"Explanation" is provided in Weblate, the comments from the file are shown as "Source string description". See for example https://hosted.weblate.org/translate/weblate/application/cs/?checksum=39b3998dcfe68cbf |
This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you! |
Hm. Interesting. It seems like the comments have different meanings depending on how they are made:
I think, I would have liked that explained or linked below the table of what supports description strings. Hm. I do not see anything about that in the documentation. https://docs.weblate.org/en/latest/search.html?q=%23%3A&check_keywords=yes&area=default# For me, this is unexpected behavior, not documented. I can not find the documentation. I think then, this is a "bug in the documentation". I have added this: niccokunzmann/open-web-calendar@04d66c4 And they do not turn up. I think, I have pulled the changes. |
I wonder where this would be implemented. I think, since PO files can do that already and we have different types of input files, there is probably a modular structure for that that can be kind-of replicated. |
This syntax is specific to PO files, see https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html Looking at YAML handler, it doesn't seem to parse comments at all: https://github.com/translate/translate/blob/master/translate/storage/yaml.py, so it needs to be implemented there. Weblate will then display comments properly. |
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). |
I opened translate/translate#4883 so that the implementation part is done here. From my perspective this issue is not resolved now but a documentation issue:
To close this issue:
Thanks for helping so far. What are your thoughts on this? |
Thanks! I consider this issue as closed now, too :) Thank you! |
Describe the issue
I have a yaml file like this:
I added these comments in order to allow the users to check out the place where the translations are on the page.
I had a look at https://docs.weblate.org/en/latest/formats.html - yaml section and the table.
Descriptions are allowed but I do not know how to add these to the file.
I already tried
Steps to reproduce the behavior
Expected behavior
I would expect the comments to turn up here:
But the explanations are empty.
How do I add descriptions/explanations from the yaml file?
Screenshots
No response
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
The text was updated successfully, but these errors were encountered: