Forums / General / Translating strings which aren't objects?
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[]=myextensionand 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
Sunday 12 December 2010 7:44:10 am
[RegionalSettings] TranslationExtensions[]=ez_mojvecernjiand 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! :)
Sunday 12 December 2010 8:04:00 am
No problem :)
Glad I could help you! :)
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!