Translating strings which aren't objects?

Author Message

Cristina Carvalho

Sunday 12 December 2010 6:32:52 am

I apologize in advance if my question has an obvious answer which I'm missing, but I've read all the documentation concerning translation and I haven't found out where do I define strings which aren't really objects. The little words we need here and there in our interface, where do we define and translate them?

Edi Modrić

Sunday 12 December 2010 7:17:22 am

You can use i18n template operator to mark your strings for translation.

Take a look at the URL below for examples:

http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-operators/Formatting-and-internationalization/i18n

Default eZ Publish translation files are located in share/translations folder and, ofcourse, you can add your own translation files in your extension.

You need to add the following in your site.ini

[RegionalSettings]
TranslationExtensions[]=myextension
and place your translation files in the folder extension/myextension/translations with the same folder/file structure as share/translations folder.

eZ Publish certified developer

http://ez.no/certification/verify/350658

Cristina Carvalho

Sunday 12 December 2010 7:44:10 am

"

You can use i18n template operator to mark your strings for translation.

Take a look at the URL below for examples:

http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-operators/Formatting-and-internationalization/i18n

Default eZ Publish translation files are located in share/translations folder and, ofcourse, you can add your own translation files in your extension.

You need to add the following in your site.ini

[RegionalSettings]
TranslationExtensions[]=ez_mojvecernji
and place your translation files in the folder extension/myextension/translations with the same folder/file structure as share/translations folder.

"

I had read that article but I didn't know about the part where we can define our own extensions and that is what the previous developer had done to the main language. Now I found the .ts file and can happily add news strings. Thank you so much for your answer! :)

Edi Modrić

Sunday 12 December 2010 8:04:00 am

No problem :)

Glad I could help you! :)

eZ Publish certified developer

http://ez.no/certification/verify/350658

Olaf Fichtner

Thursday 20 January 2011 9:06:37 pm

Ah, exactly what I had been looking for! And after the usual headbanging due to eZP's complexity it even worked. Thanks!

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