-
-
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
java: String.format()
checks wrongly applied to java-format
#7798
Comments
2 tasks
When we implemented |
nijel
added a commit
to nijel/weblate
that referenced
this issue
Jul 25, 2022
Weblate didn't follow gettext in the beginning because it did not support these back then. Fixes WeblateOrg#7799 Fixes WeblateOrg#7798
5 tasks
nijel
added a commit
to nijel/weblate
that referenced
this issue
Jul 25, 2022
Weblate didn't follow gettext in the beginning because it did not support these back then. Fixes WeblateOrg#7799 Fixes WeblateOrg#7798
nijel
added a commit
to nijel/weblate
that referenced
this issue
Jul 25, 2022
Weblate didn't follow gettext in the beginning because it did not support these back then. Fixes WeblateOrg#7799 Fixes WeblateOrg#7798
Thank you for your report; the issue you have reported has just been fixed.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue
It seems that weblate tries to apply the checks for a printf-like version of Java format strings (i.e. the ones for
String.format()
for messages with thejava-format
format. From what I can see, this does not match the behaviour of GNU gettext:https://www.gnu.org/software/gettext/manual/html_node/java_002dformat.html
This can be easily checked:
and extracting it:
gives the following (header removed):
I checked the code of weblate at commit f2f333f:
weblate/weblate/checks/format.py
Line 260 in f2f333f
IMHO the above ought to be
java-printf-format
rather thanjava-format
.I already tried
Steps to reproduce the behavior
No response
Expected behavior
No response
Screenshots
No response
Exception traceback
No response
How do you run Weblate?
Other
Weblate versions
No response
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: