about theme i18n

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

about theme i18n

Michael Xu (xudong)
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
Reply | Threaded
Open this post in threaded view
|

Re: about theme i18n

Erwan de FERRIERES-3


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
Reply | Threaded
Open this post in threaded view
|

Re: about theme i18n

Bilgin Ibryam-2
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
>
>  
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
Reply | Threaded
Open this post in threaded view
|

Re: about theme i18n

Erwan de FERRIERES-3
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
Reply | Threaded
Open this post in threaded view
|

Re: about theme i18n

Michael Xu (xudong)
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
>