Translation for Online Editor?

Author Message

Anja Lundin

Thursday 28 April 2005 4:34:27 am

Hi,
I wonder how I can translate text in the Online Editor. For example:

{"Location"|i18n("ezdhtml","design/standard/ezdhtml")}

design/standard/ezdhtml is not to be found in any of the translation.ts files and I can't find a translation file anywhere in extensions/ezdhtml either. If I add:

<context>
    <name>design/standard/ezdhtml</name>
    <message>
        <source>Location</source>
        <translation>Plats</translation>
    </message>
</context>

...to the translation.ts file, nothing happens.

How is the translation supposed to be done in the Online Editor?

I also want to know why the line says:

{"Location"|i18n("ezdhtml","design/standard/ezdhtml")}

and not just like usual:

{"Location"|i18n("design/standard/ezdhtml")}

what does ("ezdhtml", ... do?

I hope someone can answer my questions.

------------------------------------
Anja Lundin
Developer, Novitell AB
Sweden

www.novitell.se

Wenyue Yu

Wednesday 04 May 2005 5:47:11 am

Hi,

The following steps should work:

1.Change

 {"Location"|i18n("ezdhtml","design/standard/ezdhtml")}

to

 {"Location"|i18n("design/standard/ezdhtml")}

since the syntax will only work for operator x18n. We will update all OE string in next version.

2. make folder translations/x-X under folder ezdhtml and make a file translation.ts under folder translations/x-X. The file might looks like this:

<!DOCTYPE TS><TS>
<context>
    <name>design/standard/ezdhtml</name>
    <message>
        <source>Location</source>
        <translation>Plats</translation>
    </message>
</context>
</TS>

3. You need to edit site.ini.append

  [RegionalSettings]
  TranslationExtensions[]=ezdhtml

Best regards,
Wenyue Yu

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