Share » Forums » Extensions » my transaltion in my new extension...

my transaltion in my new extension fails to translate when it includes the "å" charachter

my transaltion in my new extension fails to translate when it includes the "å" charachter

Thursday 23 December 2010 4:43:46 am - 3 replies

Author Message

Edi Modrić

Thursday 23 December 2010 5:24:06 am

Hi Torbjørn,

I have just tested translating a string with "å" on my demo installation and there aren't any problems. The string was translated fine.

Make sure that both your translation.ts file and tpl file where you use i18n operator, are saved as UTF-8.

It's not enough to just put encoding="utf-8" at the top of the files. They need to be saved as UTF-8 too. Any better text editor allows you to save your files in UTF-8 encoding.

eZ Publish certified developer

http://ez.no/certification/verify/350658

Torbjørn L.

Thursday 23 December 2010 2:48:00 pm

Thanks!!

That solved it, I didn't realise the need to make the file UTF-8 as well....

I obviously missed that information, so maybe the need to put the file format in UTF-8 as well should be made more visible?

If it is clearly stated, then I shall rightfully shut up:)

Anyways - I greatly appreciate the help!

Edi Modrić

Monday 27 December 2010 2:18:53 am

I can't say for sure where it is written, but I do remember reading that from version 4.0, eZ Publish requires practicly everything to be UTF-8 encoded. That includes, database, templates, translation files.

There is a paragraph in upgrade docs about DB needing to be in UTF-8:

http://doc.ez.no/eZ-Publish/Upgrading/Upgrading-to-4.0/from-3.10.x-to-4.0.y

eZ Publish certified developer

http://ez.no/certification/verify/350658

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

36 542 Users on board!

Forums menu