How to merge two separated translation files ?

Author Message

Ze IceCube

Friday 29 May 2009 3:00:29 am

Hi,

I'll try to explain my problem :

I have to merge on the fly two separated translation files.

The first one is a common file, the second one is unique for each separated site.

Some translations from common file may have been rewriten in the site file.

I thought transform each ts file in simplexml, then merge them, then write a new ts file.
Is this a good idea or does it exists a better way ?

Thanks for your help

PS : sorry for my bad english (French speaker)

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 19 2025 23:53:53
Script start
Timing: Jan 19 2025 23:53:53
Module start 'layout'
Timing: Jan 19 2025 23:53:53
Module start 'content'
Timing: Jan 19 2025 23:53:54
Module end 'content'
Timing: Jan 19 2025 23:53:54
Script end

Main resources:

Total runtime1.0526 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.2891152.6406
Module start 'layout' 0.00540.0024 741.929739.4766
Module start 'content' 0.00771.0438 781.4063400.2031
Module end 'content' 1.05150.0010 1,181.60948.1250
Script end 1.0526  1,189.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2725160.0002
Check MTime0.00120.1096160.0001
Mysql Total
Database connection0.00090.083910.0009
Mysqli_queries1.017996.7064460.0221
Looping result0.00030.0312440.0000
Template Total1.023097.220.5115
Template load0.00220.207220.0011
Template processing1.020896.980720.5104
Template load and register function0.00010.011810.0001
states
state_id_array0.00110.101210.0011
state_identifier_array0.00070.064720.0003
Override
Cache load0.00180.1682120.0001
Sytem overhead
Fetch class attribute can translate value0.00050.050510.0005
Fetch class attribute name0.00040.040610.0004
XML
Image XML parsing0.00010.009410.0001
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00290.2778100.0003
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs