Opened 17 years ago

Closed 17 years ago

#4535 closed (worksforme)

I18n in templates - multiline messages

Reported by: rohan@… 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:

  1. 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 %}

  1. It isn't clear in the documents that this will cause a problem, or how such cases should be treated.
  1. 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)

Copy_of_own_plantation.html (11.4 KB ) - added by Malcolm Tredinnick 17 years ago.
Template file that is causing the trouble.

Download all attachments as: .zip

Change History (5)

comment:1 by rohan@…, 17 years ago

Unable to attach the template file (trac error). Contact me should you want it.

by Malcolm Tredinnick, 17 years ago

Attachment: Copy_of_own_plantation.html added

Template file that is causing the trouble.

comment:2 by Simon G. <dev@…>, 17 years ago

Triage Stage: UnreviewedAccepted

comment:3 by permonik@…, 17 years ago

Cc: permonik@… added

Is it still problem in current trunk? I've tried your template with r6110 and have not noticed any problems.

comment:4 by Tomáš Kopeček, 17 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top