You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by "Michael Xu (xudong)" <do...@wizitsoft.com> on 2009/12/03 08:41:17 UTC
about theme i18n
hi,
In theme selection screen, how to internationalize theme description? I
found it is hard coded in themes/**/data/**ThemeData.xml
Appreciate any advice.
--
Regards,
Michael Xu (xudong)
www.wizitsoft.com
Re: about theme i18n
Posted by Erwan de FERRIERES <er...@nereide.biz>.
Le 03/12/2009 08:41, Michael Xu (xudong) a écrit :
> hi,
>
> In theme selection screen, how to internationalize theme description? I
> found it is hard coded in themes/**/data/**ThemeData.xml
>
> Appreciate any advice.
>
> --
> Regards,
> Michael Xu (xudong)
> www.wizitsoft.com
>
Hi,
you have to add the default-resource-name property to the entity
VisualTheme definition (in
/ofbiz/framework/common/entitydef/entitymodel.xml), then you have to add
the translations in the file you specified.
HTH
--
Erwan
Re: about theme i18n
Posted by Bilgin Ibryam <bi...@gmail.com>.
Michael Xu (xudong) wrote:
> hi,
>
> In theme selection screen, how to internationalize theme description? I
> found it is hard coded in themes/**/data/**ThemeData.xml
>
> Appreciate any advice.
>
> --
> Regards,
> Michael Xu (xudong)
> www.wizitsoft.com
>
>
Hi Michael,
in r886701 I did a fix to theme list, so if you go now the way Erwan
described, it should work.
Feel free to open jira issue and provide the fix if you like.
Bilgin
Re: about theme i18n
Posted by "Michael Xu (xudong)" <do...@wizitsoft.com>.
hi Erwan,
Thanks. It seems you have already created an issue in JIRA and put a patch
there. Will try that.
--
Regards,
Michael Xu (xudong)
www.wizitsoft.com
On Thu, Dec 3, 2009 at 5:36 PM, Erwan de FERRIERES <
erwan.de-ferrieres@nereide.biz> wrote:
>
>
> Le 03/12/2009 08:41, Michael Xu (xudong) a écrit :
>
>> hi,
>>
>>
>> In theme selection screen, how to internationalize theme description? I
>> found it is hard coded in themes/**/data/**ThemeData.xml
>>
>> Appreciate any advice.
>>
>> --
>> Regards,
>> Michael Xu (xudong)
>> www.wizitsoft.com
>>
>>
> This should do the trick !
>
> Index: framework/common/config/CommonEntityLabels.xml
>
>
> ===================================================================
> --- framework/common/config/CommonEntityLabels.xml (révision 886312)
> +++ framework/common/config/CommonEntityLabels.xml (copie de travail)
> @@ -15068,4 +15068,19 @@
> <value xml:lang="th">น้ำหนัก</value>
> <value xml:lang="zh">重量</value>
> </property>
> + <property key="VisualTheme.description.BIZZNESS_TIME">
> + <value xml:lang="en">It's bizzness, it's bizzness time. I
> couldn't have said it better myself. This theme gets down</value>
> + </property>
> + <property key="VisualTheme.description.BLUELIGHT">
> + <value xml:lang="en">BlueLight Theme: Breadcrumbs, drop-down menus
> and rounded corners</value>
> + </property>
> + <property key="VisualTheme.description.DROPPINGCRUMBS">
> + <value xml:lang="en">Dropping Crumbs: Includes a drop down menu
> embedded in the breadcrumbs bar</value>
> + </property>
> + <property key="VisualTheme.description.FLAT_GREY">
> + <value xml:lang="en">Flat Grey - Old OFBiz Standard Floating
> Layout</value>
> + </property>
> + <property key="VisualTheme.description.MULTIFLEX">
> + <value xml:lang="en">Alternative VisualTheme for Ecommerce</value>
> + </property>
> </resource>
> Index: framework/common/entitydef/entitymodel.xml
> ===================================================================
> --- framework/common/entitydef/entitymodel.xml (révision 886312)
> +++ framework/common/entitydef/entitymodel.xml (copie de travail)
> @@ -574,6 +574,7 @@
>
> <entity entity-name="VisualTheme"
> package-name="org.ofbiz.common.theme"
> + default-resource-name="CommonEntityLabels"
> title="Defines a Visual Theme">
> <description>The VisualTheme entity contains one entry per visual
> theme.</description>
> <field name="visualThemeId" type="id-ne"></field>
>
>
> --
> Erwan
>
Re: about theme i18n
Posted by Erwan de FERRIERES <er...@nereide.biz>.
Le 03/12/2009 08:41, Michael Xu (xudong) a écrit :
> hi,
>
> In theme selection screen, how to internationalize theme description? I
> found it is hard coded in themes/**/data/**ThemeData.xml
>
> Appreciate any advice.
>
> --
> Regards,
> Michael Xu (xudong)
> www.wizitsoft.com
>
This should do the trick !
Index: framework/common/config/CommonEntityLabels.xml
===================================================================
--- framework/common/config/CommonEntityLabels.xml (révision 886312)
+++ framework/common/config/CommonEntityLabels.xml (copie de travail)
@@ -15068,4 +15068,19 @@
<value xml:lang="th">น้ำหนัก</value>
<value xml:lang="zh">重量</value>
</property>
+ <property key="VisualTheme.description.BIZZNESS_TIME">
+ <value xml:lang="en">It's bizzness, it's bizzness time. I
couldn't have said it better myself. This theme gets down</value>
+ </property>
+ <property key="VisualTheme.description.BLUELIGHT">
+ <value xml:lang="en">BlueLight Theme: Breadcrumbs, drop-down
menus and rounded corners</value>
+ </property>
+ <property key="VisualTheme.description.DROPPINGCRUMBS">
+ <value xml:lang="en">Dropping Crumbs: Includes a drop down menu
embedded in the breadcrumbs bar</value>
+ </property>
+ <property key="VisualTheme.description.FLAT_GREY">
+ <value xml:lang="en">Flat Grey - Old OFBiz Standard Floating
Layout</value>
+ </property>
+ <property key="VisualTheme.description.MULTIFLEX">
+ <value xml:lang="en">Alternative VisualTheme for Ecommerce</value>
+ </property>
</resource>
Index: framework/common/entitydef/entitymodel.xml
===================================================================
--- framework/common/entitydef/entitymodel.xml (révision 886312)
+++ framework/common/entitydef/entitymodel.xml (copie de travail)
@@ -574,6 +574,7 @@
<entity entity-name="VisualTheme"
package-name="org.ofbiz.common.theme"
+ default-resource-name="CommonEntityLabels"
title="Defines a Visual Theme">
<description>The VisualTheme entity contains one entry per
visual theme.</description>
<field name="visualThemeId" type="id-ne"></field>
--
Erwan