[Catalyst] I18N with quotation marks
ton.voon at opsera.com
Wed Jul 1 17:22:22 GMT 2009
I wanted to find out how other people are handling this problem.
I am localising our app, which consists of strings in html and in
quotations (such as: s'il vous plait), then it could break the HTML:
<select value='[% c.loc("Please select one") %]'>
alert('[% c.loc("Please select one") %]');
We also sometimes use double quotes for attributes instead of single
What is the best practise? Always run c.loc() through a filter to
convert to HTML entities? (Although in FF3.0 alert('Impossible
d'exécuter snmpget pour tester la connexion'); does not give the
I was considering creating methods of c.hloc() (for a html
xgettext.pl helper does not look for these method names.
More information about the Catalyst