This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » Use & in translations.ts files

Use & in translations.ts files

Use & in translations.ts files

Wednesday 01 August 2012 3:46:06 pm - 2 replies


I can't use the & symbol in my translations files.

If I use it in <source> it breaks the translations

However &amp; is ok in <translation>

Is it normal ? Is there a work around ? Can it be an encoding problem ?

Thursday 02 August 2012 9:43:50 am

It is normal: .ts files are in fact XML files.

XML has some encoding rules of its own: most notably you can not write & and < but need to use &amp; and &lt;

This does not mean that you will need to use &amp; in your templates, nor that translation files are only good for usage in translating html.

Thursday 02 August 2012 3:26:12 pm

Thank you

It works


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from