Override of the translation.ts files

Author Message

Anthony M.

Thursday 12 October 2006 2:30:14 am

Hello,

my site has 3 languages and i have to use the 'translation.ts' files.

But is it possible to override the original files (which are in 'share\translations\eng-GB' for example) ??
instead of modifying them directly in their original folder, because if i change my version of ezpublish, i replace the translation files, therefore i lose everything...

Thanks for your help

Anthony

Anthony

Jonny Bergkvist

Thursday 12 October 2006 2:51:35 am

Make an extension with your own translation in.
In that extension create translations-folder, and then <language>-folders.
Put your translation.ts in there.

Activate it with these settings in your override/site.ini.append

[ExtensionSettings]
ActiveExtensions[]=<your-translation-extension>

[RegionalSettings]
TranslationExtensions[]=<your-translation-extension>

Jonny

Anthony M.

Thursday 12 October 2006 6:21:00 am

thank you very much !!!

Anthony

Pascal Specht

Thursday 28 June 2007 8:21:44 am

For those who may have the same problem I had, the suggested solution works, but you will have to make sure that the order in which the extensions are loaded is also correct. André posted a very helpful answer which you can find here:

http://ez.no/community/forum/extensions/extensions_to_extend_extensions_am_i_on_the_right_way/

-Pascal

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 31 2025 01:30:17
Script start
Timing: Jan 31 2025 01:30:17
Module start 'layout'
Timing: Jan 31 2025 01:30:17
Module start 'content'
Timing: Jan 31 2025 01:30:17
Module end 'content'
Timing: Jan 31 2025 01:30:17
Script end

Main resources:

Total runtime0.0242 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1563151.2109
Module start 'layout' 0.00540.0040 739.3672220.6875
Module start 'content' 0.00940.0134 960.0547997.8047
Module end 'content' 0.02280.0014 1,957.859433.9922
Script end 0.0242  1,991.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003012.3162140.0002
Check MTime0.00125.0524140.0001
Mysql Total
Database connection0.00083.155510.0008
Mysqli_queries0.00229.259130.0007
Looping result0.00000.053110.0000
Template Total0.00104.110.0010
Template load0.00083.134910.0008
Template processing0.00020.906610.0002
Override
Cache load0.00052.140710.0005
General
dbfile0.00156.265880.0002
String conversion0.00000.036440.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