[OFBiz] Dev - Localization Patch for Ecommerce

Can Castell cancastell at yahoo.com
Sat Sep 25 03:42:05 EDT 2004


David,

This patch is not a full localization for ecommerce.
This is a partial
patch.
But I will send other patches for generic messages in
java files.

I've a question for xml files.
How do we localization xml files?
For example
components\ecommerce\webapp\ecommerce\WEB-INF\pagedefs\contactus.xml
<?xml version="1.0" encoding="UTF-8"?>
<page>
    <template>main_right</template>
    <property name="title">Login</property>
    <property name="pageHeader">Contact Us</property>
    <property name="headerItem">contactus</property>
</page>

I tried
    <property
name="title">"${uiLabelMap.CommonLogin}"</property>
But didn't work.

In some xml files, it is working. For example
CalendarForms.xml
        <field name="description"
title="${uiLabelMap.CommonDescription}"><display/></field>

-Can

----- Original Message ----- 
From: "David E. Jones" <jonesde at ofbiz.org>
To: "OFBiz Development" <dev at lists.ofbiz.org>
Sent: Friday, September 24, 2004 10:12 PM
Subject: Re: [OFBiz] Dev - Localization Patch for
Ecommerce

Can,

As much as I like FreeMarker, I'm not sure if I want
to have localized
messages that can only used in it. For the most part
we have tried to
stay more generic with these messages, avoiding
FreeMarker markup in
them.

We do sometimes use the FlexibleStringExpander for
localized messages,
which has a similar though simpler syntax, and that
may be an option
here, though not quite as convenient.

-David



>
> _______________________________________________
> Dev mailing list
> Dev at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/dev



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail


More information about the Dev mailing list