Forums / General / multilanguage web & matrix atribute

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!!!!!