-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
PHP format is not aligned to sprintf #9698
Comments
The check is correct because the ordering of the format strings have changed. Whatever was supposed to be printed as |
This issue has been marked as a question by a Weblate team member. Why? Because it belongs more to the professional Weblate Care or community Discussions than here. We strive to answer these reasonably fast here, too, but purchasing the support subscription is more responsible and faster for your business. And it makes Weblate stronger as well. Thanks! In case your question is already answered, making a donation is the right way to say thank you! |
Thanks for the prompt response. Changing to |
Because it is token processed by printf. Weblate will not complain if that is the only missing/extra one. |
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
When using the
php-format
check, it does not work with e.g. escaping.I already tried
Steps to reproduce the behavior
The current regular expression does not work with escaped percent characters or spaces: https://regex101.com/r/kbxtub/1
weblate/weblate/checks/format.py
Lines 51 to 64 in fcd725b
Expected behavior
%%
and% f
should not be found assprintf
placeholder.Screenshots
Exception traceback
No response
How do you run Weblate?
Docker container
Weblate versions
No response
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: