Loading...
 
Skip to main content

problem with single quotes in some translated text

Status
Closed
Subject
problem with single quotes in some translated text
Version
1.9.x
Category
  • Error
Feature
Templates (Smarty)
Submitted by
rogeliotg
Volunteered to solve
sylvie greverend
Rating
(0)
Description

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='monitor this page{/tr}' title='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.

Solution

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 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

Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
189
Created
Monday 16 May, 2005 13:28:00 UTC
by Unknown
LastModif
Friday 20 May, 2005 18:15:34 UTC


Show PHP error messages