#1 2014-10-24 16:57:58

epescol
Member
Registered: 2012-05-27
Posts: 86

Problem with apostrophe in static translations

apostrophes are accepted in static translations but unfortunately the page shows the following error

PHP error : syntax error, unexpected 'ufficio' (T_STRING)<br/>in expression : <br/>
file : D:\testsite\application\libraries\ftl\parser.php(327) : eval()'d code

I have tried to escape the apostroph but the static translation modul strip the backslash :-(

Last edited by epescol (2014-10-26 18:05:25)

Offline

#2 2014-10-27 10:07:29

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: Problem with apostrophe in static translations

Had you tested with html code ?

&apos;

Webmaster / OUF!WEB

Offline

#3 2014-10-27 12:54:54

epescol
Member
Registered: 2012-05-27
Posts: 86

Re: Problem with apostrophe in static translations

Thank you for reply ...

&apos;

is converted to apostrophe when I save the page and the problem persists ....

Offline

#4 2014-11-24 13:18:10

epescol
Member
Registered: 2012-05-27
Posts: 86

Re: Problem with apostrophe in static translations

apostrophes in translations saved as

\'

is a very big problem for us:-(

Parse error: syntax error, unexpected 'll' (T_STRING), expecting ')' in D:\testsite\application\libraries\ftl\parser.php(327) : eval()'d code on line 854

in Italian apostrophes are used a lot, not only but also in English ....

Nobody else has problems with apostrophes?

Offline

#5 2014-11-24 15:12:44

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: Problem with apostrophe in static translations

@Epescol, is this working ?

<ion:static:my-item helper="to_specialchars" />

Webmaster / OUF!WEB

Offline

#6 2014-11-24 16:08:42

epescol
Member
Registered: 2012-05-27
Posts: 86

Re: Problem with apostrophe in static translations

I investigated more abut problem ....
in my specific case the problem is when I use the translation (with apostrophe) for the label in ionizecms form validation as described in http://doc.ionizecms.com/en/tags-reference/form-tags

'hotel' => array(
	'rules' => 'trim|required|regex_match[' . $alpha_numeric_space_special . ']|xss_clean',
	'label' => 'form_private_lesson.hotel',
)

in case of Static Items

    helper="to_specialchars"

dont solve the problem :-(

Last edited by epescol (2014-11-25 09:15:35)

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations