Modify ↓
Opened 15 years ago
Closed 15 years ago
#8021 closed defect (fixed)
[Patch] String formats should be `%(name)s` directive instead of `%s`
| Reported by: | Jun Omae | Owned by: | Steffen Hoffmann |
|---|---|---|---|
| Priority: | normal | Component: | DynamicFieldsPlugin |
| Severity: | normal | Keywords: | i18n |
| Cc: | Trac Release: | 0.12 |
Description
DynamicFieldsPlugin now uses %s in the messages catalog. It makes the translations difficult.
The formats should be %(name)s directive instead of %s.
Attachments (1)
Change History (4)
Changed 15 years ago by
| Attachment: | directive-name.diff added |
|---|
comment:1 Changed 15 years ago by
| Summary: | String formats should be `%(name)s` directive instead of `%s` → [Patch] String formats should be `%(name)s` directive instead of `%s` |
|---|
comment:2 Changed 15 years ago by
| Status: | new → assigned |
|---|
comment:3 Changed 15 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
(In [9417]) DynamicFieldsPlugin: Change strings aka msgid's containing variable parts for web UI, closes #8021.
Replacements (%s) are rewritten with named variables like %(variable)s.
This helps a lot when translating without looking at the source code.
Thanks to Jun Omae for both, suggestion and providing actually better code.
Note: See
TracTickets for help on using
tickets.



Looks saner, more understandable indeed. Thanks for the suggestion. You are a hurricane running through all the translations available by now, right? ;-) This is most appreciated.