i18n category change default category content?

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

i18n category change default category content?

Si Chen-2
Jacques,

I noticed you had put in the i18n cateogory demo data, but don't you  
have to remove the description and longDescription from the  
ProductCategory entity as well?  Otherwise it doesn't seem like it  
works.

Best Regards,

Si
[hidden email]



Reply | Threaded
Open this post in threaded view
|

Re: i18n category change default category content?

Jacques Le Roux
Administrator
Si,

Yes, as it's solely a POC you only have to remove the demo categories descriptions (I did nothing for long descriptions).
I did not remove from ProductCategory entity because I only supplied 3 languagues (english, french and italian - thanks to Marco).
So people using other languagues would have not description at all.
The mechanism is provided if needed, that's the POC. Note that there is still something to do for catalog and other less used pieces
of OFBiz (can't remember which on the fly sorry).

Thanks for your interest in this.

Jacques

> Jacques,
>
> I noticed you had put in the i18n cateogory demo data, but don't you
> have to remove the description and longDescription from the
> ProductCategory entity as well?  Otherwise it doesn't seem like it
> works.
>
> Best Regards,
>
> Si
> [hidden email]
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: i18n category change default category content?

David E Jones-2

Jacques,

It looks like the primary locale for this content is the french one.  
It _should_ show that if the requested locale does not have specific  
content. Are you saying it is not doing that?

-David


On Oct 30, 2006, at 1:10 PM, Jacques Le Roux wrote:

> Si,
>
> Yes, as it's solely a POC you only have to remove the demo  
> categories descriptions (I did nothing for long descriptions).
> I did not remove from ProductCategory entity because I only  
> supplied 3 languagues (english, french and italian - thanks to Marco).
> So people using other languagues would have not description at all.
> The mechanism is provided if needed, that's the POC. Note that  
> there is still something to do for catalog and other less used pieces
> of OFBiz (can't remember which on the fly sorry).
>
> Thanks for your interest in this.
>
> Jacques
>
>> Jacques,
>>
>> I noticed you had put in the i18n cateogory demo data, but don't you
>> have to remove the description and longDescription from the
>> ProductCategory entity as well?  Otherwise it doesn't seem like it
>> works.
>>
>> Best Regards,
>>
>> Si
>> [hidden email]
>>
>>
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: i18n category change default category content?

Jacques Le Roux
Administrator
David,

Sorry, I'm not sure to understand your question

Jacques


>
> Jacques,
>
> It looks like the primary locale for this content is the french one.  
> It _should_ show that if the requested locale does not have specific  
> content. Are you saying it is not doing that?
>
> -David
>
>
> On Oct 30, 2006, at 1:10 PM, Jacques Le Roux wrote:
>
> > Si,
> >
> > Yes, as it's solely a POC you only have to remove the demo  
> > categories descriptions (I did nothing for long descriptions).
> > I did not remove from ProductCategory entity because I only  
> > supplied 3 languagues (english, french and italian - thanks to Marco).
> > So people using other languagues would have not description at all.
> > The mechanism is provided if needed, that's the POC. Note that  
> > there is still something to do for catalog and other less used pieces
> > of OFBiz (can't remember which on the fly sorry).
> >
> > Thanks for your interest in this.
> >
> > Jacques
> >
> >> Jacques,
> >>
> >> I noticed you had put in the i18n cateogory demo data, but don't you
> >> have to remove the description and longDescription from the
> >> ProductCategory entity as well?  Otherwise it doesn't seem like it
> >> works.
> >>
> >> Best Regards,
> >>
> >> Si
> >> [hidden email]
> >>
> >>
> >>
> >>
> >
Reply | Threaded
Open this post in threaded view
|

Re: i18n category change default category content?

Si Chen-2
I think David means that if you select, say, Chinese or Turkish, it  
should still show the French content because French is the primary  
locale for the content.

On Oct 30, 2006, at 6:07 PM, Jacques Le Roux wrote:

> David,
>
> Sorry, I'm not sure to understand your question
>
> Jacques
>
>
>>
>> Jacques,
>>
>> It looks like the primary locale for this content is the french one.
>> It _should_ show that if the requested locale does not have specific
>> content. Are you saying it is not doing that?
>>
>> -David
>>
>>
>> On Oct 30, 2006, at 1:10 PM, Jacques Le Roux wrote:
>>
>>> Si,
>>>
>>> Yes, as it's solely a POC you only have to remove the demo
>>> categories descriptions (I did nothing for long descriptions).
>>> I did not remove from ProductCategory entity because I only
>>> supplied 3 languagues (english, french and italian - thanks to  
>>> Marco).
>>> So people using other languagues would have not description at all.
>>> The mechanism is provided if needed, that's the POC. Note that
>>> there is still something to do for catalog and other less used  
>>> pieces
>>> of OFBiz (can't remember which on the fly sorry).
>>>
>>> Thanks for your interest in this.
>>>
>>> Jacques
>>>
>>>> Jacques,
>>>>
>>>> I noticed you had put in the i18n cateogory demo data, but don't  
>>>> you
>>>> have to remove the description and longDescription from the
>>>> ProductCategory entity as well?  Otherwise it doesn't seem like it
>>>> works.
>>>>
>>>> Best Regards,
>>>>
>>>> Si
>>>> [hidden email]
>>>>
>>>>
>>>>
>>>>
>>>

Best Regards,

Si
[hidden email]



Reply | Threaded
Open this post in threaded view
|

Re: i18n category change default category content?

Jacques Le Roux
Administrator
Thanks Si,

David and you are right.
I did not think about that because at this time I thought about this only as a POC and thought that if people want to use it they
will easily contruct their own data.
But yes it's better to put english (default) as primary locale. I will do it ASAP.

Thanks for your interest on this

Jacques


> I think David means that if you select, say, Chinese or Turkish, it
> should still show the French content because French is the primary
> locale for the content.
>
> On Oct 30, 2006, at 6:07 PM, Jacques Le Roux wrote:
>
> > David,
> >
> > Sorry, I'm not sure to understand your question
> >
> > Jacques
> >
> >
> >>
> >> Jacques,
> >>
> >> It looks like the primary locale for this content is the french one.
> >> It _should_ show that if the requested locale does not have specific
> >> content. Are you saying it is not doing that?
> >>
> >> -David
> >>
> >>
> >> On Oct 30, 2006, at 1:10 PM, Jacques Le Roux wrote:
> >>
> >>> Si,
> >>>
> >>> Yes, as it's solely a POC you only have to remove the demo
> >>> categories descriptions (I did nothing for long descriptions).
> >>> I did not remove from ProductCategory entity because I only
> >>> supplied 3 languagues (english, french and italian - thanks to
> >>> Marco).
> >>> So people using other languagues would have not description at all.
> >>> The mechanism is provided if needed, that's the POC. Note that
> >>> there is still something to do for catalog and other less used
> >>> pieces
> >>> of OFBiz (can't remember which on the fly sorry).
> >>>
> >>> Thanks for your interest in this.
> >>>
> >>> Jacques
> >>>
> >>>> Jacques,
> >>>>
> >>>> I noticed you had put in the i18n cateogory demo data, but don't
> >>>> you
> >>>> have to remove the description and longDescription from the
> >>>> ProductCategory entity as well?  Otherwise it doesn't seem like it
> >>>> works.
> >>>>
> >>>> Best Regards,
> >>>>
> >>>> Si
> >>>> [hidden email]
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
>
> Best Regards,
>
> Si
> [hidden email]
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: i18n category change default category content?

Si Chen-2
Jacques,

I don't think it's about English rather than French as the default  
language.  I think we were trying to figure out if it worked  
correctly.  I think you should remove the description and  
longDescription of the DemoProduct's ProductCategories, and then see  
if the default languages show up when a non-defined language is  
selected.


On Oct 31, 2006, at 9:36 AM, Jacques Le Roux wrote:

> Thanks Si,
>
> David and you are right.
> I did not think about that because at this time I thought about  
> this only as a POC and thought that if people want to use it they
> will easily contruct their own data.
> But yes it's better to put english (default) as primary locale. I  
> will do it ASAP.
>
> Thanks for your interest on this
>
> Jacques
>
>
>> I think David means that if you select, say, Chinese or Turkish, it
>> should still show the French content because French is the primary
>> locale for the content.
>>
>> On Oct 30, 2006, at 6:07 PM, Jacques Le Roux wrote:
>>
>>> David,
>>>
>>> Sorry, I'm not sure to understand your question
>>>
>>> Jacques
>>>
>>>
>>>>
>>>> Jacques,
>>>>
>>>> It looks like the primary locale for this content is the french  
>>>> one.
>>>> It _should_ show that if the requested locale does not have  
>>>> specific
>>>> content. Are you saying it is not doing that?
>>>>
>>>> -David
>>>>
>>>>
>>>> On Oct 30, 2006, at 1:10 PM, Jacques Le Roux wrote:
>>>>
>>>>> Si,
>>>>>
>>>>> Yes, as it's solely a POC you only have to remove the demo
>>>>> categories descriptions (I did nothing for long descriptions).
>>>>> I did not remove from ProductCategory entity because I only
>>>>> supplied 3 languagues (english, french and italian - thanks to
>>>>> Marco).
>>>>> So people using other languagues would have not description at  
>>>>> all.
>>>>> The mechanism is provided if needed, that's the POC. Note that
>>>>> there is still something to do for catalog and other less used
>>>>> pieces
>>>>> of OFBiz (can't remember which on the fly sorry).
>>>>>
>>>>> Thanks for your interest in this.
>>>>>
>>>>> Jacques
>>>>>
>>>>>> Jacques,
>>>>>>
>>>>>> I noticed you had put in the i18n cateogory demo data, but don't
>>>>>> you
>>>>>> have to remove the description and longDescription from the
>>>>>> ProductCategory entity as well?  Otherwise it doesn't seem  
>>>>>> like it
>>>>>> works.
>>>>>>
>>>>>> Best Regards,
>>>>>>
>>>>>> Si
>>>>>> [hidden email]
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>
>> Best Regards,
>>
>> Si
>> [hidden email]
>>
>>
>>
>>

Best Regards,

Si
[hidden email]



Reply | Threaded
Open this post in threaded view
|

Re: i18n category change default category content?

Jacques Le Roux
Administrator
Si,

It's because I tested before with non-defined language that I made this conclusions.
In this case for the moment french definitions show up. I tested only with dutch but I guess any non-defined language will have the
same behaviour.
So I suppose that if I define default (english) as the primary content it will be OK...

I'm in vacation for a week from now, have a nice week.

Jacques

----- Original Message -----
From: "Si Chen" <[hidden email]>
To: <[hidden email]>
Sent: Tuesday, October 31, 2006 7:07 PM
Subject: Re: i18n category change default category content?


> Jacques,
>
> I don't think it's about English rather than French as the default
> language.  I think we were trying to figure out if it worked
> correctly.  I think you should remove the description and
> longDescription of the DemoProduct's ProductCategories, and then see
> if the default languages show up when a non-defined language is
> selected.
>
>
> On Oct 31, 2006, at 9:36 AM, Jacques Le Roux wrote:
>
> > Thanks Si,
> >
> > David and you are right.
> > I did not think about that because at this time I thought about
> > this only as a POC and thought that if people want to use it they
> > will easily contruct their own data.
> > But yes it's better to put english (default) as primary locale. I
> > will do it ASAP.
> >
> > Thanks for your interest on this
> >
> > Jacques
> >
> >
> >> I think David means that if you select, say, Chinese or Turkish, it
> >> should still show the French content because French is the primary
> >> locale for the content.
> >>
> >> On Oct 30, 2006, at 6:07 PM, Jacques Le Roux wrote:
> >>
> >>> David,
> >>>
> >>> Sorry, I'm not sure to understand your question
> >>>
> >>> Jacques
> >>>
> >>>
> >>>>
> >>>> Jacques,
> >>>>
> >>>> It looks like the primary locale for this content is the french
> >>>> one.
> >>>> It _should_ show that if the requested locale does not have
> >>>> specific
> >>>> content. Are you saying it is not doing that?
> >>>>
> >>>> -David
> >>>>
> >>>>
> >>>> On Oct 30, 2006, at 1:10 PM, Jacques Le Roux wrote:
> >>>>
> >>>>> Si,
> >>>>>
> >>>>> Yes, as it's solely a POC you only have to remove the demo
> >>>>> categories descriptions (I did nothing for long descriptions).
> >>>>> I did not remove from ProductCategory entity because I only
> >>>>> supplied 3 languagues (english, french and italian - thanks to
> >>>>> Marco).
> >>>>> So people using other languagues would have not description at
> >>>>> all.
> >>>>> The mechanism is provided if needed, that's the POC. Note that
> >>>>> there is still something to do for catalog and other less used
> >>>>> pieces
> >>>>> of OFBiz (can't remember which on the fly sorry).
> >>>>>
> >>>>> Thanks for your interest in this.
> >>>>>
> >>>>> Jacques
> >>>>>
> >>>>>> Jacques,
> >>>>>>
> >>>>>> I noticed you had put in the i18n cateogory demo data, but don't
> >>>>>> you
> >>>>>> have to remove the description and longDescription from the
> >>>>>> ProductCategory entity as well?  Otherwise it doesn't seem
> >>>>>> like it
> >>>>>> works.
> >>>>>>
> >>>>>> Best Regards,
> >>>>>>
> >>>>>> Si
> >>>>>> [hidden email]
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>
> >> Best Regards,
> >>
> >> Si
> >> [hidden email]
> >>
> >>
> >>
> >>
>
> Best Regards,
>
> Si
> [hidden email]
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: i18n category change default category content?

David E Jones-2

On Oct 31, 2006, at 4:22 PM, Jacques Le Roux wrote:

> It's because I tested before with non-defined language that I made  
> this conclusions.

What do you mean by this? What does it mean to test with a non-
defined language?

> In this case for the moment french definitions show up. I tested  
> only with dutch but I guess any non-defined language will have the
> same behaviour.

If I understand what you are saying this is what I was getting to  
with my comments. As nice as it would be if the default locale  
content (ie primary content record) was English, that wasn't my  
point. What I was asking about was what happened when you select a  
locale for a user session that does not have an alternate content  
record for it. What happens then? It should render the primary  
content record when no alternate locale record is found for the  
requested locale. If it isn't doing this, then we should fix the  
content rendering stuff because that would be a bug...

-David


> So I suppose that if I define default (english) as the primary  
> content it will be OK...
>
> I'm in vacation for a week from now, have a nice week.
>
> Jacques
>
> ----- Original Message -----
> From: "Si Chen" <[hidden email]>
> To: <[hidden email]>
> Sent: Tuesday, October 31, 2006 7:07 PM
> Subject: Re: i18n category change default category content?
>
>
>> Jacques,
>>
>> I don't think it's about English rather than French as the default
>> language.  I think we were trying to figure out if it worked
>> correctly.  I think you should remove the description and
>> longDescription of the DemoProduct's ProductCategories, and then see
>> if the default languages show up when a non-defined language is
>> selected.
>>
>>
>> On Oct 31, 2006, at 9:36 AM, Jacques Le Roux wrote:
>>
>>> Thanks Si,
>>>
>>> David and you are right.
>>> I did not think about that because at this time I thought about
>>> this only as a POC and thought that if people want to use it they
>>> will easily contruct their own data.
>>> But yes it's better to put english (default) as primary locale. I
>>> will do it ASAP.
>>>
>>> Thanks for your interest on this
>>>
>>> Jacques
>>>
>>>
>>>> I think David means that if you select, say, Chinese or Turkish, it
>>>> should still show the French content because French is the primary
>>>> locale for the content.
>>>>
>>>> On Oct 30, 2006, at 6:07 PM, Jacques Le Roux wrote:
>>>>
>>>>> David,
>>>>>
>>>>> Sorry, I'm not sure to understand your question
>>>>>
>>>>> Jacques
>>>>>
>>>>>
>>>>>>
>>>>>> Jacques,
>>>>>>
>>>>>> It looks like the primary locale for this content is the french
>>>>>> one.
>>>>>> It _should_ show that if the requested locale does not have
>>>>>> specific
>>>>>> content. Are you saying it is not doing that?
>>>>>>
>>>>>> -David
>>>>>>
>>>>>>
>>>>>> On Oct 30, 2006, at 1:10 PM, Jacques Le Roux wrote:
>>>>>>
>>>>>>> Si,
>>>>>>>
>>>>>>> Yes, as it's solely a POC you only have to remove the demo
>>>>>>> categories descriptions (I did nothing for long descriptions).
>>>>>>> I did not remove from ProductCategory entity because I only
>>>>>>> supplied 3 languagues (english, french and italian - thanks to
>>>>>>> Marco).
>>>>>>> So people using other languagues would have not description at
>>>>>>> all.
>>>>>>> The mechanism is provided if needed, that's the POC. Note that
>>>>>>> there is still something to do for catalog and other less used
>>>>>>> pieces
>>>>>>> of OFBiz (can't remember which on the fly sorry).
>>>>>>>
>>>>>>> Thanks for your interest in this.
>>>>>>>
>>>>>>> Jacques
>>>>>>>
>>>>>>>> Jacques,
>>>>>>>>
>>>>>>>> I noticed you had put in the i18n cateogory demo data, but  
>>>>>>>> don't
>>>>>>>> you
>>>>>>>> have to remove the description and longDescription from the
>>>>>>>> ProductCategory entity as well?  Otherwise it doesn't seem
>>>>>>>> like it
>>>>>>>> works.
>>>>>>>>
>>>>>>>> Best Regards,
>>>>>>>>
>>>>>>>> Si
>>>>>>>> [hidden email]
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>
>>>> Best Regards,
>>>>
>>>> Si
>>>> [hidden email]
>>>>
>>>>
>>>>
>>>>
>>
>> Best Regards,
>>
>> Si
>> [hidden email]
>>
>>
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: i18n category change default category content?

Jacques Le Roux
Administrator
From: "David E Jones" <[hidden email]>
>
> On Oct 31, 2006, at 4:22 PM, Jacques Le Roux wrote:
>
> > It's because I tested before with non-defined language that I made  
> > this conclusions.
>
> What do you mean by this? What does it mean to test with a non-
> defined language?

I was not the first to use this definition, Si was. I guess it means a language not defined in DemoProductCategoriesI18nData.xml.
So testing with a non-defined language means testing with a language not defined in this file (for instance dutch)

>
> > In this case for the moment french definitions show up. I tested  
> > only with dutch but I guess any non-defined language will have the
> > same behaviour.
>
> If I understand what you are saying this is what I was getting to  
> with my comments. As nice as it would be if the default locale  
> content (ie primary content record) was English, that wasn't my  
> point. What I was asking about was what happened when you select a  
> locale for a user session that does not have an alternate content  
> record for it. What happens then? It should render the primary  
> content record when no alternate locale record is found for the  
> requested locale. If it isn't doing this, then we should fix the  
> content rendering stuff because that would be a bug...

Yes it renders the primary content record (for the moment french).
I will fix it (put english by default) when I will return from vacation, in one week.
So there is no bug to worry for.

Jacques

> -David
>
>
> > So I suppose that if I define default (english) as the primary  
> > content it will be OK...
> >
> > I'm in vacation for a week from now, have a nice week.
> >
> > Jacques
> >
> > ----- Original Message -----
> > From: "Si Chen" <[hidden email]>
> > To: <[hidden email]>
> > Sent: Tuesday, October 31, 2006 7:07 PM
> > Subject: Re: i18n category change default category content?
> >
> >
> >> Jacques,
> >>
> >> I don't think it's about English rather than French as the default
> >> language.  I think we were trying to figure out if it worked
> >> correctly.  I think you should remove the description and
> >> longDescription of the DemoProduct's ProductCategories, and then see
> >> if the default languages show up when a non-defined language is
> >> selected.
> >>
> >>
> >> On Oct 31, 2006, at 9:36 AM, Jacques Le Roux wrote:
> >>
> >>> Thanks Si,
> >>>
> >>> David and you are right.
> >>> I did not think about that because at this time I thought about
> >>> this only as a POC and thought that if people want to use it they
> >>> will easily contruct their own data.
> >>> But yes it's better to put english (default) as primary locale. I
> >>> will do it ASAP.
> >>>
> >>> Thanks for your interest on this
> >>>
> >>> Jacques
> >>>
> >>>
> >>>> I think David means that if you select, say, Chinese or Turkish, it
> >>>> should still show the French content because French is the primary
> >>>> locale for the content.
> >>>>
> >>>> On Oct 30, 2006, at 6:07 PM, Jacques Le Roux wrote:
> >>>>
> >>>>> David,
> >>>>>
> >>>>> Sorry, I'm not sure to understand your question
> >>>>>
> >>>>> Jacques
> >>>>>
> >>>>>
> >>>>>>
> >>>>>> Jacques,
> >>>>>>
> >>>>>> It looks like the primary locale for this content is the french
> >>>>>> one.
> >>>>>> It _should_ show that if the requested locale does not have
> >>>>>> specific
> >>>>>> content. Are you saying it is not doing that?
> >>>>>>
> >>>>>> -David
> >>>>>>
> >>>>>>
> >>>>>> On Oct 30, 2006, at 1:10 PM, Jacques Le Roux wrote:
> >>>>>>
> >>>>>>> Si,
> >>>>>>>
> >>>>>>> Yes, as it's solely a POC you only have to remove the demo
> >>>>>>> categories descriptions (I did nothing for long descriptions).
> >>>>>>> I did not remove from ProductCategory entity because I only
> >>>>>>> supplied 3 languagues (english, french and italian - thanks to
> >>>>>>> Marco).
> >>>>>>> So people using other languagues would have not description at
> >>>>>>> all.
> >>>>>>> The mechanism is provided if needed, that's the POC. Note that
> >>>>>>> there is still something to do for catalog and other less used
> >>>>>>> pieces
> >>>>>>> of OFBiz (can't remember which on the fly sorry).
> >>>>>>>
> >>>>>>> Thanks for your interest in this.
> >>>>>>>
> >>>>>>> Jacques
> >>>>>>>
> >>>>>>>> Jacques,
> >>>>>>>>
> >>>>>>>> I noticed you had put in the i18n cateogory demo data, but  
> >>>>>>>> don't
> >>>>>>>> you
> >>>>>>>> have to remove the description and longDescription from the
> >>>>>>>> ProductCategory entity as well?  Otherwise it doesn't seem
> >>>>>>>> like it
> >>>>>>>> works.
> >>>>>>>>
> >>>>>>>> Best Regards,
> >>>>>>>>
> >>>>>>>> Si
> >>>>>>>> [hidden email]
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>
> >>>> Best Regards,
> >>>>
> >>>> Si
> >>>> [hidden email]
> >>>>
> >>>>
> >>>>
> >>>>
> >>
> >> Best Regards,
> >>
> >> Si
> >> [hidden email]
> >>
> >>
> >>
> >>
> >
Reply | Threaded
Open this post in threaded view
|

Re: i18n category change default category content?

David E Jones-2

On Nov 1, 2006, at 1:16 AM, Jacques Le Roux wrote:

> Yes it renders the primary content record (for the moment french).
> I will fix it (put english by default) when I will return from  
> vacation, in one week.
> So there is no bug to worry for.

Great, thanks for the clarification and such Jacques.

-David