There is a mini-bug that results in notices in the method _loadResources of the jLocale class.
On line 121, we have :
if(preg_match("/^\s*(.*)\s*(\\\\?)$/U", $line, $match)){
$sp = preg_split('/(?<!\\\\)\#/', $match[1], -1 ,PREG_SPLIT_NO_EMPTY);
$multiline= ($match[2] =="\\");
$this->_strings[$charset][$key].=' '.trim(str_replace('\#','#',$sp[0]));
}else{
throw new Exception('Syntaxe error in file properties '.$fichier.' line '.$linenumber,210);
}
This raises a notice ([notice 1] Undefined offset: 0 /usr/local/share/jelix/lib/jelix/init.php 124) in this case :
text.key = youpi\
youpu\
text.key2 = youpa
That's because the first preg_match gets an empty string as $match[1] when parsing the 3rd line of text.key.
This could be a acceptable workaround :
if(preg_match("/^\s*(.*)\s*(\\\\?)$/U", $line, $match))
{
$multiline= ($match[2] =="\\");
if (strlen ($match[1]) > 0)
{
$sp = preg_split('/(?<!\\\\)\#/', $match[1], -1 ,PREG_SPLIT_NO_EMPTY);
$this->_strings[$charset][$key].=' '.trim(str_replace('\#','#',$sp[0]));
}
else
{
$this->_strings[$charset][$key].=' ';
}
}else{
throw new Exception('Syntaxe error in file properties '.$fichier.' line '.$linenumber,210);
}