Opened 18 years ago
Closed 17 years ago
#4535 closed (worksforme)
I18n in templates - multiline messages
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Internationalization | Version: | dev |
Severity: | Keywords: | trans blocktrans i18n | |
Cc: | permonik@… | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Three issues regarding multiline messages in templates to be translated:
- Messages spanning multiple lines don't seem to be accepted, e.g. the following gives an error (even using unix \n line ends):
{% blocktrans %}
Thank you very much for your
payment. Your transaction has been completed.
{% endblocktrans %}
- It isn't clear in the documents that this will cause a problem, or how such cases should be treated.
- In some cases it's possible for a template to cause make-messages.py to "freeze" (never return to the command prompt, no error messages). Attached is a template file which causes this behavior. After changing all the {% blocktrans %} to {% trans } the problem went away.
Attachments (1)
Change History (5)
comment:1 by , 18 years ago
by , 18 years ago
Attachment: | Copy_of_own_plantation.html added |
---|
Template file that is causing the trouble.
comment:2 by , 18 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 17 years ago
Cc: | added |
---|
Is it still problem in current trunk? I've tried your template with r6110 and have not noticed any problems.
comment:4 by , 17 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Unable to attach the template file (trac error). Contact me should you want it.