#5849: Strip indentation and leading/trailing spaces/linebreaks from contents of
blocktrans block.
-------------------------------------+-------------------------------------
Reporter: Dmitri Fedortchenko | Owner: nobody
<zeraien@…> | Status: new
Type: New feature | Version: master
Component: | Resolution:
Internationalization | Triage Stage: Accepted
Severity: Normal | Needs documentation: 0
Keywords: blocktrans strip | Patch needs improvement: 1
indentation | UI/UX: 0
Has patch: 1 |
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by bbr):
* cc: bbr@… (added)
Comment:
Replying to [ticket:5849 Dmitri Fedortchenko <zeraien@…>]:
> The biggest issue is if you indent the above block. Suddenly those
msgids are obsolete and you need to edit all your language files....
>
> Indentation is often changed in HTML since you might nest that block in
a new DIV element or whatnot, and the ability to spread the msgids along
many lines makes for cleaner looking code.
Another problem that I haven't seen mentioned, that is implied above: The
same blocktrans text could be used at different indentation levels and
gets interpreted as different msgids, thus needs to be translated more
than necessary.
--
Ticket URL: <https://code.djangoproject.com/ticket/5849#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.