eZ Community » Forums » Setup & design » Multiple translation.ts files
expandshrink

Multiple translation.ts files

Multiple translation.ts files

Thursday 20 May 2010 11:06:08 am - 6 replies

Hi,
I need your help because I don't know how I can to have 2 files translations for a same language.
Allow me to explain : I've a multilingual website with a general and technical language and I would like to dissociate these both types of language because general language shouldn't be change contrary to technical language.
I'd like to do something of this kind :

  • share/translations/fre-FR/translation.ts
  • share/translations/fre-FR/translation-technic.ts

For this multilangual website, I use EzPublish 4.2.0.
Do you have an idea for my problem ?

Thanks a lot

Thursday 20 May 2010 11:36:18 am

Hi Nicolas and congrats for your first post here (although you are no foreigner to the eZ Community, plugged-in on twitter as @nigo_agt ),

From the top of my head i'd suggest creating a new translation for the technical language, something like fre-FR-tech, and create a new siteaccess for showing it. You may want to have a look at this to build this new extension as an extension : http://ez.no/ezpublish/documentation/development/extensions/translation

Hoping that we'll get more replies on this one !
Cheers,

Thursday 20 May 2010 11:48:25 am

My first post was wrong, here is what I had in mind with full details :

http://serwatka.net/blog/overridi...lations_in_ez_publish_4_1_and_higher

Modified on Thursday 20 May 2010 11:58:39 am by Kevin Gaudin

Thursday 20 May 2010 12:00:35 pm

Thanks @jeanvoye and Kevin Gaudin,

I will try to implement this and informed you as soon as it's good

Thanks a lot

Nicolas AGUENOT

@nico_agt

Thursday 20 May 2010 12:52:14 pm

Personaly I would just use different contexts in your translation files.

for exemple:

{"My text"|i18n('mysite-technical/my_template')}

Or
{"My text"|i18n('mysite/my_template')}

You will then simply differenciate this in your translation file:
extension/technical_trans/translations/fre-FR/translation.ts

with this in the context
<context>
<name>mysite-technical/my_template</name>
<message>
<source>French</source>
<translation>Fran├žais</translation>
</message>
</context>

<context>
<name>mysite/my_template</name>
<message>
<source>Technical French</source>
<translation>Fran├žais technique</translation>
</message>
</context>

You can use 2 extensions, in order to split this in 2 translation files if you wish, but it may not be necessary.

Sunday 21 November 2010 12:15:33 am

Hi Nicolas and congrats for your first post here (although you are no foreigner to the eZ Community, plugged-in on twitter as @nigo_agt ),

From the top of my head i'd suggest creating a new translation for the technical language, something like fre-FR-tech, and create a new siteaccess for showing it. You may want to have a look at this to build this new extension as an extension : http://ez.no/ezpublish/documentation/development/extensions/translation

Hoping that we'll get more replies on this one !
Cheers,

The link is dead!

Sunday 21 November 2010 1:03:05 am

@ Frederik

Here is the update link location, http://auth.ez.no/ezpublish/docum...n/development/extensions/translation

Cheers,

Heath

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from