-
Notifications
You must be signed in to change notification settings - Fork 10
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
BadFormatLintRule looks at tokens inside other formatting tokens which it shouldn't do #72
Comments
I don't understand what you mean by this. Can you copy/paste a complete example? See #63 as an example. |
An example:
_("No data between {start:%Y-%m-%d %H:%M} and {end:%Y-%m-%d %H:%M}").format(start=date1, end=date2) |
I tossed this into a test .po file and got this output:
The |
That fixes this specific issue and should fix the general problem, too. In working on this, I found another problem with translators that requires a minor rewrite. That's covered in #67. I need to fix that before I do another release. |
Thanks @willkg ! |
Hi,
If I have things like
"{start:%Y-%m-%d %H:%M}"
, I thinkYMHm
should be considered valid.Thanks !
The text was updated successfully, but these errors were encountered: