Loading...
 
Skip to main content

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
(0)
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.
Nevertheless, regardless HTML the this creates one main problem :

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.


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+
Demonstrate Bug (older Tiki versions)
Ticket ID
3758
Created
Tuesday 25 January, 2011 01:16:45 UTC
by Bernard TREMBLAY
LastModif
Tuesday 25 January, 2011 01:23:40 UTC


Show PHP error messages