Hi:
I face an smarty compiler problem. Only happen when I use the translated text to language Catala. I have tracked the code to this point: tiki-show-page.tpl:
<a href="tiki-index.php?page={$page|escape:"url"}&watch_event=wiki_page_changed&watch_object={$page|escape:"url"}&watch_action=add">{html_image file='img/icons/icon_watch.png' border='0' alt='{tr}monitor this page{/tr}' title='{tr}monitor this page{/tr}'}</a>
The problem is that "monitor this page" is translated in Catala to " seguiment d'aquesta pà gina", with a single quote inside (wery used in Catala). It seems that the alt tag has single quotes, the translated text also has single quotes and this is what make the smarty compiler to fail. When I remove the single quote from the translated text all works again.
I don't know if the correct way is escaping every single quote on translations or force double quotes in hmtl tags...
sylvie: the correct way is to enclose the {tr} with "" . Like this you can use a ' in each translation
Another solution is to use the xml character quot in the translated string but changing the template is better
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |