Problem using translation files

Author Message

Philip K.

Friday 25 July 2008 8:10:46 am

Hi!

I have a multilingual website. The existing siteaccesses are translated in german (default), english and french. I have a translation file for each languages but german because I use german sources.

Everything worked fine till I made an update (3.8.x to 3.9). From that day on nothing was translated. Today I made an update to version 4.0. But also in this new version I get no translations.

I never changed anything in my translation files and all files have correct permissions.

I use translations like this:

<a href="url" title='{"My Source"|i18n("design/plain/full")}'>{"My Source"|i18n("design/plain/full")}</a>

My translation file looks like:

<!DOCTYPE TS><TS>
<context>
    <name>design/plain/full</name>
    <message>
        <source>My Source</source>
        <translation>My translation</translation>
    </message>
    ...
</context>

Do you have any idea? Thanks a lot.

Philip

Linux is like a wigwam; no windows, now gates, and apache inside!

Norman Leutner

Wednesday 30 July 2008 2:47:31 am

Hi Philip,

mostly this is a problem with the utf8 decoding of the file itself.
Try editing the file with a editor that supports utf8 or use linguist for the translation files.

Anyway keep in mind that using html enities (for German umlauts like &auml; for ä) will break the translation file.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.