Multiple translation.ts files

Author Message

AGUENOT Nicolas

Thursday 20 May 2010 2:06:08 am

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

Nicolas Pastorino

Thursday 20 May 2010 2: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,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Kevin Gaudin

Thursday 20 May 2010 2:48:25 am

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

http://serwatka.net/blog/overriding_translations_in_ez_publish_4_1_and_higher

Twitter: @kevingaudin

AGUENOT Nicolas

Thursday 20 May 2010 3:00:35 am

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

Paul Leclercq

Thursday 20 May 2010 3:52:14 am

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.

Frederik Krautwald

Saturday 20 November 2010 3:15:33 pm

"

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!

Frederik Krautwald
Executive Creative Director

Heath

Saturday 20 November 2010 4:03:05 pm

@ Frederik

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

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

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

eZ debug

Timing: Jan 29 2025 14:41:12
Script start
Timing: Jan 29 2025 14:41:12
Module start 'layout'
Timing: Jan 29 2025 14:41:12
Module start 'content'
Timing: Jan 29 2025 14:41:12
Module end 'content'
Timing: Jan 29 2025 14:41:12
Script end

Main resources:

Total runtime0.0134 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.1328151.2109
Module start 'layout' 0.00520.0028 739.343836.6484
Module start 'content' 0.00800.0042 775.992298.8438
Module end 'content' 0.01220.0011 874.835941.9922
Script end 0.0133  916.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002216.7901140.0002
Check MTime0.00107.8563140.0001
Mysql Total
Database connection0.00096.718210.0009
Mysqli_queries0.002820.882330.0009
Looping result0.00000.067810.0000
Template Total0.00096.510.0009
Template load0.00075.148310.0007
Template processing0.00021.332610.0002
Override
Cache load0.00053.614210.0005
General
dbfile0.00096.472080.0001
String conversion0.00000.042840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs