-
-
Notifications
You must be signed in to change notification settings - Fork 958
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
Escaping quotes in manual variants #7656
Comments
This is how it is done inside Weblate: weblate/weblate/checks/flags.py Lines 235 to 244 in a7c3d0a
|
Oh, I see, thank you. |
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! |
The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.
|
Describe the issue
Trying to mark a variant (through API), it fails because Weblate won't parse JSON with escaped quotes.
Original python object
converted to json with json.dumps:
Then sent to Weblate:
requests.patch(url, jdata, headers=HEADERS)
. Response:I already tried
Steps to reproduce the behavior
Expected behavior
Variant flag properly adding.
Screenshots
No response
Exception traceback
No response
How do you run Weblate?
Docker container
Weblate versions
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: