eZ Community » Forums » Extensions » Overriding standard translation with...
expandshrink

Overriding standard translation with a translation extension

Overriding standard translation with a translation extension

Wednesday 16 May 2007 1:04:26 pm - 4 replies

Hi,

i want to override one part of the original translation with a translation extension.

<b>My extensionfolder:</b> extension/my_extension/translations/ger-DE/translation.ts

<b>translation.ts:</b>

<context>
    <name>design/standard/content/tipafriend</name>
    <message>
        <source>Tip a friend</source>
        <translation>Weiterempfehlen</translation>
    </message>
</context>

<b>site.ini.append.php in settings/override:</b>

[...]
[ExtensionSettings]
[...]
ActiveExtensions[]=my_extension
[...]

<b>site.ini.append.php in settings/siteaccess/my_siteacces:</b>

[...]
[ExtensionSettings]
ActiveAccessExtensions[]=my_extension
[...]
[RegionalSettings]
Locale=ger-DE
ContentObjectLocale=ger-DE
SiteLanguageList[]=ger-DE
TextTranslation=enabled
TranslationExtensions[]=my_extension
[...]

Why does it not work?

Thank you for your help.

Modified on Wednesday 16 May 2007 1:08:44 pm by Niko Goers

Saturday 19 May 2007 5:47:19 pm

Any Ideas?

Thursday 28 June 2007 9:59:34 am

Hi Niko,

Did you get it working? I'm struggling with the same problem: I want to change some of the translations in the translation.ts file that cames with the ezwebin interface, and want to apply my change without having to touch that particular file. I'd prefer overriding the translation.ts in an intelligent way, so that I don't have to start all over at the next release.

Any suggestions are welcome.

Pascal

Tuesday 10 July 2007 10:44:34 pm

You need to include the following in extension/my_extension/settings/site.ini.append.php

[RegionalSettings]
TranslationExtensions[]=my_extension

...I think maybe that line doesn't work if you have it in settings/siteaccess/my_siteaccess/site.ini.append.php. Without testing I'm not 100% sure, but I set this up for one of my sites last year, and that's the setup I have now which is working.

Matthew

Wednesday 11 July 2007 6:21:49 pm

Just for anyone else struggling with this:

Do <b>NOT</b> use the ezwebin admin HTML interface to enable/disable extensions! it writes the extension list back in an arbitrary order. To get it working, extensions that overwrite others should be included <b>before</b> their original ones, and the only way to be sure about this is to manually modify the site.ini.overwrite.php file, not through the webmin.

Pascal

Modified on Wednesday 11 July 2007 6:24:27 pm by Pascal Specht

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from