eZ Community » Forums » General » Translating strings which aren't...
expandshrink

Translating strings which aren't objects?

Translating strings which aren't objects?

Sunday 12 December 2010 3:32:52 pm - 4 replies

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?

Sunday 12 December 2010 4:17:22 pm

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/Techn...atting-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.

Modified on Sunday 12 December 2010 5:03:18 pm by Edi Modrić

Sunday 12 December 2010 4:44:10 pm

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/Techn...atting-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! happy.gif Emoticon

Sunday 12 December 2010 5:04:00 pm

No problem happy.gif Emoticon

Glad I could help you! happy.gif Emoticon

Friday 21 January 2011 6:06:37 am

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

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from