Create localized images?

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

Create localized images?

Mike Z
I want to create product images that has a "Free Shipping" boarder in
various languages.  Depending on the locale of the users browser, it would
display images that are specifically created for that language.  Is this
possible in OFBiz?

I know for product/catalog descriptions, the base product entity
descriptions need to be blank and they are picked up by electronic_text and
data_resource entities.  Would this also work for images as well?  Are
there any examples?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Create localized images?

Jacques Le Roux
Administrator
I don't think there are examples OOTB. But since images are DataResource as well, it should work if you follow the scheme in
DemoRentalProduct.xml
I'd just try to replace the dataResourceTypeId="ELECTRONIC_TEXT" by dataResourceTypeId="IMAGE_OBJECT" and follow IMAGE_OBJECT
examples of use

You might also use another DataResourceTypes
 like OFBIZ_FILE or
CONTEXT_FILE, or even
URL_RESOURCE, etc.
See DataResourceTypes in ContentTypeData.xml and related examples of use which best suit your need. This is how, most of the time,
OFBiz should be used: help yourself with OOTB examples ;o)

Have fun

Jacques

From: "Mike" <[hidden email]>

>I want to create product images that has a "Free Shipping" boarder in
> various languages.  Depending on the locale of the users browser, it would
> display images that are specifically created for that language.  Is this
> possible in OFBiz?
>
> I know for product/catalog descriptions, the base product entity
> descriptions need to be blank and they are picked up by electronic_text and
> data_resource entities.  Would this also work for images as well?  Are
> there any examples?
>
> Thanks
>
Reply | Threaded
Open this post in threaded view
|

Re: Create localized images?

Jacques Le Roux
Administrator
From: "Jacques Le Roux" <[hidden email]>
>I don't think there are examples OOTB. But since images are DataResource as well, it should work if you follow the scheme in
> DemoRentalProduct.xml

Oops, wrong C/P from Eclipse Navigator view tree, I meant DemoProductI18nData.xml of course

Jacques

> I'd just try to replace the dataResourceTypeId="ELECTRONIC_TEXT" by dataResourceTypeId="IMAGE_OBJECT" and follow IMAGE_OBJECT
> examples of use
>
> You might also use another DataResourceTypes
> like OFBIZ_FILE or
> CONTEXT_FILE, or even
> URL_RESOURCE, etc.
> See DataResourceTypes in ContentTypeData.xml and related examples of use which best suit your need. This is how, most of the time,
> OFBiz should be used: help yourself with OOTB examples ;o)
>
> Have fun
>
> Jacques
>
> From: "Mike" <[hidden email]>
>>I want to create product images that has a "Free Shipping" boarder in
>> various languages.  Depending on the locale of the users browser, it would
>> display images that are specifically created for that language.  Is this
>> possible in OFBiz?
>>
>> I know for product/catalog descriptions, the base product entity
>> descriptions need to be blank and they are picked up by electronic_text and
>> data_resource entities.  Would this also work for images as well?  Are
>> there any examples?
>>
>> Thanks
>>
Reply | Threaded
Open this post in threaded view
|

Re: Create localized images?

Mike Z
Thanks  Jacques.  I'll study  DemoProductI18nData.xml  in more detail.

On Sun, Jul 15, 2012 at 6:32 AM, Jacques Le Roux <
[hidden email]> wrote:

> From: "Jacques Le Roux" <[hidden email]>
>
>  I don't think there are examples OOTB. But since images are DataResource
>> as well, it should work if you follow the scheme in
>> DemoRentalProduct.xml
>>
>
> Oops, wrong C/P from Eclipse Navigator view tree, I meant
> DemoProductI18nData.xml of course
>
> Jacques
>
>
>  I'd just try to replace the dataResourceTypeId="**ELECTRONIC_TEXT" by
>> dataResourceTypeId="IMAGE_**OBJECT" and follow IMAGE_OBJECT
>> examples of use
>>
>> You might also use another DataResourceTypes
>> like OFBIZ_FILE or
>> CONTEXT_FILE, or even
>> URL_RESOURCE, etc.
>> See DataResourceTypes in ContentTypeData.xml and related examples of use
>> which best suit your need. This is how, most of the time, OFBiz should be
>> used: help yourself with OOTB examples ;o)
>>
>> Have fun
>>
>> Jacques
>>
>> From: "Mike" <[hidden email]>
>>
>>> I want to create product images that has a "Free Shipping" boarder in
>>> various languages.  Depending on the locale of the users browser, it
>>> would
>>> display images that are specifically created for that language.  Is this
>>> possible in OFBiz?
>>>
>>> I know for product/catalog descriptions, the base product entity
>>> descriptions need to be blank and they are picked up by electronic_text
>>> and
>>> data_resource entities.  Would this also work for images as well?  Are
>>> there any examples?
>>>
>>> Thanks
>>>
>>>