Jump to content

Special characters in translation file


Dan1

Recommended Posts

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

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

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 by Dan1 (see edit history)
Link to comment
Share on other sites

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 by Mellow (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...