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 |
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 > 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 |
In reply to this post by Michael Xu (xudong)
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 > > 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 |
In reply to this post by Michael Xu (xudong)
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 |
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 < [hidden email]> 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 > |
Free forum by Nabble | Edit this page |