Path

ez.no / ezpublish / documentation / development / extensions / translation


Translation

These documentation pages are no longer maintained. Please visit the new documentation site.

Note: Using x18n is only required for eZ publish 3.1 or lower. In 3.2 the extension should use the i18n operator instead.

Having translations for extension design or code is quite similar to translations for the kernel. The main difference is the use of the x18n operator as opposed to the i18n operator and the placement of the translation file.

The first thing you must do is to make sure i18n is used in your design. The first parameter defines the name of your extension and the rest is similar to the i18n operator. For instance let's assume our extension is called myextension we then create a translation line in one of our templates.

{"Translations in extensions"|i18n("myextension")}

The next time the site is run the translation file will be looked for in extension/myextension/translations and will be used if found.

To create the untranslated translation files for a extension please run the following line in your shell.

ezroot> ezlupdate.exe -u --extension extension/myextension

Creating the untranslated and the our language file

ezroot> ezlupdate.exe -u --extension extension/myextension ger-DE

Comments

INI setting

Remember to add the following to extension/myextension/settings/site.ini.append.php in order for the translation to take effect (curtosy of Jan Borsodi):

[RegionalSettings]
TranslationExtensions[]=myextension

Contents

Development

Extensions
    Translation
    Introduction to extensions
    Building an eZ publish module
    Design extension
    Datatypes
    Workflow events
    Module
    Template operator
    Template function
eZ publish datamodel
eZ publish tuning and stability
Importing attribute data
Kernel
Libraries
Scripting
Standards
System overview
Test Suite
Using Doxygen to create API documenta...


Created

17/07/2003
11:12:21 am
by Jan Borsodi

Last updated

10/01/2006
10:25:49 am
by Kåre Køhler Høvik

Authors

Jan Borsodi
Björn Dieding@xrow.de
Kåre Køhler Høvik



This page is part of the eZ Publish documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.