Dan1 Posted November 14, 2012 Share Posted November 14, 2012 I'm translating my English shop into Spanish. in the es.php translation file, how do I get the spanish characters such as ñ á ó to show? I also need to know how to write the word "we'll" in the English translation file. The moment the character ' (apostrophe) is introduced into the translation the whole page disappears. Also how to do a line break if possible. Is there a name for this format or code? Link to comment Share on other sites More sharing options...
Mellow Posted November 15, 2012 Share Posted November 15, 2012 You should not directly edit es.php or en.php. For your translations you should use the tool integrated in Prestashop. Go to back office => Localization => Translations (or Tools => Translations for PS1.4.x) You can even change english expressions by translating english to english... As far as I know, line breaks are not possible. Link to comment Share on other sites More sharing options...
Dan1 Posted November 15, 2012 Author Share Posted November 15, 2012 (edited) Why shouldn't I? I've been doing it for a long time. I and many other users can't translate through back office due to problems with this Prestashop functionality. I should add that this is for module translation, not front office translation. Front office translation through BO does work. Edited November 15, 2012 by Dan1 (see edit history) Link to comment Share on other sites More sharing options...
Mellow Posted November 15, 2012 Share Posted November 15, 2012 (edited) OK! so forget what I said (But I prefer using Prestashop translation funtionality, even if it's not perfect...) To add apostrophe in a translation file, use \' ex : $_MODULE['*******************e3c832882b39d8fecbd2c'] = 'We\'ll have to use this'; To use Spanish special caracters you need tu use an editor that can save the file as utf_8 encoded (Notepad++ for exemple) Or use an online tool to convert all special caracters to utf_8 Regards Edited November 15, 2012 by Mellow (see edit history) Link to comment Share on other sites More sharing options...
Dan1 Posted November 15, 2012 Author Share Posted November 15, 2012 Thank you very much Mellow. The apostrophe info worked as well as using Notepad++ (choosing the "Encoding" menu, then "Encode in UTF-8 without BOM"). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now