Translating path text - SOLVED

Author Message

Jon Staines

Friday 26 June 2009 6:02:52 am

Hi,

What is the correct approach for translating text that appear in the path? I've just finished making a small extension and when I came around to adding the i18n bits to the templates I realised that I had no idea where that translation should be done. Is it done via the PHP where you normally have something like:

$Result['path'] = array( array( 'url' => false, 'text' => 'Text here' ) );

If so, how? Or is there a certain context that I should use in a translations file and then use the i18n in path.tpl?

Cheers
Jon

Jon Staines

Friday 26 June 2009 6:13:11 am

Never mind, I've found the answer.

$Result['path'] = array( array( 'url' => false, 'text' => ezi18n( 'context/here', 'Text here' ) ) );

Where context/here is the name in the translation file.

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