ENH trunk 7x : hability to intoduce [linebreaks] in some texts and their translations
- Status
- Open
- Subject
- ENH trunk 7x : hability to intoduce [linebreaks] in some texts and their translations
- Version
- 7.x
- Category
- Feature request
- Feature
- All / Undefined
- Submitted by
- Bernard TREMBLAY
- Volunteered to solve
- Bernard TREMBLAY
- Lastmod by
- Bernard TREMBLAY
- Rating
- Description
ENH trunk 7x : ability to introduce breakline in some texts and their translations
Nature of the problem
I many text it is unhallowed to use any markup language and filters are applied to these text.
For <label> <input> and others strings with implicit new type "tikitypes" as warnings, comments etc... it is often necessary to have for a good GUI <breakline> at optimized positions. HTML allows <br /> in all these cases (and all tags for strings into many tags.
Nevertheless, regardless HTML the this creates one main problem :
Sometimes after translation because the words are longer a simple remark or a label which precede an input which followed himself by buttons-icons see the buttons at the next line.All these cases needs to allow a breakline command which is then the lonely tag allowed.
I made this first for prefs in tiki_admin for labels (particularly when they are dependent and have a disposal on two columns)
What have been done
Define the breakline command
Create a smarty modifier "breakline"
It just replaces into strings breakline by "<br />" after the firewalls have been passed...Apply to list.tpl (class adminoptionbox)
Sample in list.tpl
<label for="{$p.id|escape}">{$p.name|escape}:</label>
Become
<label for="{$p.id|escape}">{$p.name|escape|breakline}:</label>What to do ?
Nothing I just have to commit.
But it changes general common rules. It is a MOD of second level the level of developers.Ready to commit.
What's your opinion ?
trebly
- Importance
- 8
- Priority
- 40
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3758
- Created
- Tuesday 25 January, 2011 01:16:45 UTC
by Bernard TREMBLAY - LastModif
- Tuesday 25 January, 2011 01:23:40 UTC