#27261 closed Bug (fixed)
Missing python-brace-format marker for a contrib.admin string
| Reported by: | Maxime Vdb | Owned by: | Claude Paroz |
|---|---|---|---|
| Component: | contrib.admin | Version: | 1.10 |
| Severity: | Normal | Keywords: | translation japanese admin |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | yes |
Description
Hi there,
I found out there is a mismatch in the placeholders between a translation message id and its actual translation in Japanese. You can find the strings here (here is the code that uses this string).
I don't know what is your process to do that but I'll be glad to help. Also, I discovered that because we have unit-tests that compare the strings and their translations and look for mismatches in their placeholders. We could easily implement such a unit test in Django itself.
Change History (4)
comment:1 by , 9 years ago
| Easy pickings: | unset |
|---|---|
| Type: | Uncategorized → Bug |
comment:2 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
| Summary: | Mismatch for placholders in japanese translations (django.contrib.admin app) → Missing python-brace-format marker for a contrib.admin string |
| Triage Stage: | Unreviewed → Accepted |
As Tim said, you should fix the string on Transifex.
However, this reveals a bug in that the offended original string misses the #, python-brace-format marker in the base en/LC_MESSAGES/django.po. I'll fix that.
With the proper marker, this error should have been caught by the gettext check program (msgfmt -vc).
Translations are done through Transifex. Assuming this can be fixed there, then you can close the ticket as we don't use Trac to coordinate that work.