multilanguage web & matrix atribute

Author Message

Vjeran Vlahovic

Sunday 01 August 2004 2:00:46 pm

Hi!
I'm trying to build a multilanguage web and I use predefined Person class which has matrix atribute for storing phone/email/fax contacts. That leads me to the problem: How to localise those matrix labels like "phone" or "fax"?
Thanks for help.

http://www.netgen.hr/eng

Bård Farstad

Tuesday 10 August 2004 3:47:32 am

First you need to disable translation for those attribute. This is done in the class setup.

You will then need to use the i18n() in the template to do the translation of the string label for your current laguage.

More information on:
http://ez.no/ez_publish/documentation/reference/template_operators/formatting/i18n

--bård

Documentation: http://ez.no/doc

Peter Schnuerer

Monday 23 August 2004 7:47:28 am

Sorry but this did not do it for me!

I did as you told and put the following line in
/override/templates/datatype/ezmatrix/view.tpl:

{$Rows:Columns:item|i18n('design/base') }

But nothing is shown on the screen. Neither the english text ("Visitor Address") nor my translation.

When using the following, it works, but this is not what I did want:
{"Visitor Address"|i18n('design/base') }


Any ideas?

Peter Schnuerer

Thursday 09 September 2004 6:34:21 am

HEEEEELLLLLPPP!!!!!

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 05:35:40
Script start
Timing: Jan 31 2025 05:35:40
Module start 'layout'
Timing: Jan 31 2025 05:35:40
Module start 'content'
Timing: Jan 31 2025 05:35:40
Module end 'content'
Timing: Jan 31 2025 05:35:40
Script end

Main resources:

Total runtime0.0216 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.0103 588.1328151.2109
Module start 'layout' 0.01030.0041 739.343836.6484
Module start 'content' 0.01430.0058 775.992294.1250
Module end 'content' 0.02010.0015 870.117233.9922
Script end 0.0216  904.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002310.6345140.0002
Check MTime0.00104.5682140.0001
Mysql Total
Database connection0.00125.655110.0012
Mysqli_queries0.007534.760930.0025
Looping result0.00000.102510.0000
Template Total0.00104.710.0010
Template load0.00083.560610.0008
Template processing0.00021.095810.0002
Override
Cache load0.00052.316110.0005
General
dbfile0.00125.471080.0001
String conversion0.00000.049640.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