An improved translation checking script

Author Message

Gaetano Giunta

Wednesday 16 March 2011 4:21:37 am

Head on to http://issues.ez.no/IssueView.php?Id=18152 and get the much improved translation checking script - it will help find out subtle but common errors in translation files

Principal Consultant International Business
Member of the Community Project Board

Damien Pobel

Wednesday 16 March 2011 6:59:55 am

Hi Gaetano,

this script is a good idea. I have not tested it yet but I will while translating extensions in French.

In addition, I think it misses one feature that would be very interesting for translations consistency between extensions and the kernel. In fact, several extensions provide templates override so there are the same strings with the same context in several extensions and in eZ Publish itself and unfortunately sometimes the translation differs from one to another... it would be nice if the script can alert the translator that the same string in the same context is translated differently between two translations.ts file. And I even think it would also makes sense to inform the translator that the same string in 2 different contexts have a different translation. The later would be a notice (sometimes it's normal, sometimes it's not...)

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Gaetano Giunta

Wednesday 16 March 2011 8:41:14 am

Hi Damien, all valid points. For now it's only a one-ts-file-at-a-time script, but I plan to implement more stuff in the eztranslationtools extensions. Wanna join?

Principal Consultant International Business
Member of the Community Project Board

Damien Pobel

Thursday 17 March 2011 6:42:47 am

"

For now it's only a one-ts-file-at-a-time script, but I plan to implement more stuff in the eztranslationtools extensions. Wanna join?

"

yeah, I've just applied !

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

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 30 2025 00:19:21
Script start
Timing: Jan 30 2025 00:19:21
Module start 'layout'
Timing: Jan 30 2025 00:19:21
Module start 'content'
Timing: Jan 30 2025 00:19:21
Module end 'content'
Timing: Jan 30 2025 00:19:21
Script end

Main resources:

Total runtime0.1367 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.4141151.2422
Module start 'layout' 0.00500.0026 739.656336.7344
Module start 'content' 0.00760.1281 776.3906505.6563
Module end 'content' 0.13570.0009 1,282.046915.8047
Script end 0.1367  1,297.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00292.1423160.0002
Check MTime0.00130.9148160.0001
Mysql Total
Database connection0.00070.547110.0007
Mysqli_queries0.094669.2191650.0015
Looping result0.00040.3190630.0000
Template Total0.102775.120.0513
Template load0.00201.484320.0010
Template processing0.100673.625720.0503
Template load and register function0.00010.076910.0001
states
state_id_array0.00161.136810.0016
state_identifier_array0.00090.643120.0004
Override
Cache load0.00171.2287220.0001
Sytem overhead
Fetch class attribute can translate value0.00050.354920.0002
Fetch class attribute name0.00080.595460.0001
XML
Image XML parsing0.00110.790120.0005
class_abstraction
Instantiating content class attribute0.00000.009480.0000
General
dbfile0.00211.5584220.0001
String conversion0.00000.005840.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs