Translation extension

Author Message

Salvatore Guarino

Monday 14 November 2005 4:39:04 am

I created a custom class that contains a little text. My site is multilanguage (english and italian) and I need to translate the text in this class. I create an extension with a copy of the ita-IT translation.ts file and I create a custom context with my translation. Here the structure of extension:

(extension)
!
!
!-- (translations)
    !
    !-- (ita-IT)
        !
        !-- (translation.ts)  #copy of original with a custom context containig translations

It doesn't work. I forgot something?

Ɓukasz Serwatka

Monday 14 November 2005 4:57:14 am

In yourextension/settings/site.ini.append.php add:

[RegionalSettings]
TranslationExtensions[]=yourextension

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Salvatore Guarino

Wednesday 16 November 2005 4:11:20 am

Tank you Luke,
now it's working!

Bye,

Salvatore

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 07:18:55
Script start
Timing: Jan 19 2025 07:18:55
Module start 'layout'
Timing: Jan 19 2025 07:18:55
Module start 'content'
Timing: Jan 19 2025 07:18:55
Module end 'content'
Timing: Jan 19 2025 07:18:55
Script end

Main resources:

Total runtime0.0178 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.0070 590.9063152.6094
Module start 'layout' 0.00700.0039 743.515639.4141
Module start 'content' 0.01090.0049 782.929789.4297
Module end 'content' 0.01580.0019 872.359434.3047
Script end 0.0177  906.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002514.1403140.0002
Check MTime0.00116.1397140.0001
Mysql Total
Database connection0.00126.588210.0012
Mysqli_queries0.003721.038630.0012
Looping result0.00000.079210.0000
Template Total0.00158.510.0015
Template load0.00074.218510.0007
Template processing0.00084.303110.0008
Override
Cache load0.00052.900010.0005
General
dbfile0.00021.338680.0000
String conversion0.00000.049740.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