Forums / Extensions / Overriding standard translation with a translation extension
Niko Goers
Wednesday 16 May 2007 4:04:26 am
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.
eZ Publish partner - http://www.all2e.com http://share.ez.no/directory/companies/all2e-gmbh http://ez.no/Partners/all2e-GmbH Lords of Heaven - http://www.LoH-Gilde.de (Created with eZ Publish) German online gaming guild About me - http://www.NikoGoers.de My roadmap, +1 are welcome: http://share.ez.no/community/roadmap/10889
Saturday 19 May 2007 8:47:19 am
Any Ideas?
Pascal Specht
Thursday 28 June 2007 12: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
Matthew Carroll
Tuesday 10 July 2007 1: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
http://carroll.org.uk
Wednesday 11 July 2007 9:21:49 am
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.