developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Custom Query (1324 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (22 - 24 of 1324)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Ticket Resolution Summary Owner Reporter
#569 fixed jLocale : support multiline rendering in strings Julien Julien
Description

Sometimes, when we have to translate quite long texts, we may need line breaks in it.

Right now, we cannot insert \n in strings, because it won't be treated as a line break.

We already have the ability to write strings on multiple lines in the properties files, like this

mystring = This a string that will be returned\
on one line, even if it's declared on 2 lines in the property file

but the string is still returned in 1 single line.

I propose the following syntax (
at end of line) to get the string returned with a line break :

mystring = This a string that will be returned\\
with a line break

The jlocale html plugin will also be updated to render <br /> at line breaks.

#570 fixed jZipCreator : empty dirs are not included in the archive Julien Julien
Description

When we add directories in an archive using jZipCreator, empty dirs (ie without files inside) are not added.

I will add a new public method called addEmptyDir($name) wich will allow to add an empty dir.

The existing addDir() method will also be fixed (will call addEmptyDir() when needed) to include empty dirs.

#571 invalid "&" char in entities get escaped, and it shouldn't Julien Julien
Description

As I worked on ticket #543 (which is closed now because it was invalid), I noticed the following bug :

having that string in a property file :

test = My title with entities &amp; others (10 &gt; 2&lt;5)

and having a controller method doing this :

function index() {
$rep = $this->getResponse('html');
$rep->title = jLocale::get('test.test');
}

I'm getting the following HTML source code :

<title>My title with entities &amp;amp; others (10 &amp;gt; 2&amp;lt;5)</title>

I'm getting the same result if I use the escxml modifier in the HTML body.

So I think that the "&" char must be converted to "&amp;", except if it is followed by chars that will match something like

([a-z]+|#[0-9]+); // will match things like &eacute; and &#233;

I think it's the only way to safely allow entities use in jLocale strings.

Is that report valid, or should I forget about it ?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Note: See TracQuery for help on using queries.