You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Adrian Crum <ad...@hlmksw.com> on 2008/06/27 19:57:18 UTC
Potential OFBiz Localization Bugs
In the trunk rev 658045 I committed some localization work. My intention
was to fix all of the quirky localization issues that keep popping up.
I took the shotgun approach and localized all numeric and date-time
conversions - believing that the majority of those conversions should be
localized. The exceptions could be handled on a case-by-case basis.
That commit solved a number of localization issues, but (as was pointed
out on the user ml today) it introduced a bug in order number and
invoice number generation. IDs were being localized. IDs are one of the
exceptions to localization. I fixed that issue in rev 672343.
If anyone can think of any other exceptions, please let me know and I
will take care of it.
-Adrian
Re: Potential OFBiz Localization Bugs
Posted by Jacques Le Roux <ja...@les7arts.com>.
Thanks for the detailled explanation, Adrian
Jacques
From: "Adrian Crum" <ad...@hlmksw.com>
> In the trunk rev 658045 I committed some localization work. My intention
> was to fix all of the quirky localization issues that keep popping up.
>
> I took the shotgun approach and localized all numeric and date-time
> conversions - believing that the majority of those conversions should be
> localized. The exceptions could be handled on a case-by-case basis.
>
> That commit solved a number of localization issues, but (as was pointed
> out on the user ml today) it introduced a bug in order number and
> invoice number generation. IDs were being localized. IDs are one of the
> exceptions to localization. I fixed that issue in rev 672343.
>
> If anyone can think of any other exceptions, please let me know and I
> will take care of it.
>
> -Adrian
>
Re: Potential OFBiz Localization Bugs
Posted by Jacques Le Roux <ja...@les7arts.com>.
Hi Scott,
I did not see any issue at https://demo.hotwaxmedia.com/catalog/control/pendingReviews (I tried in English and French)
Moreover it seems that there are no entries for "StatusItem" but a lot for "StatusItem.description.*"
In brief, I guess it needs more informations
Jacques
From: "Scott Gray" <le...@gmail.com>
> Oh hey, if you're looking at the localization stuff, I just noticed this
> isn't working:
> review.getRelatedOne("StatusItem").get("description", locale)
> Here:
> https://demo.hotwaxmedia.com/catalog/control/pendingReviews
>
> I haven't looked into why but the key does exist in CommonEntityLabels.xml
>
> Regards
> Scott
>
> 2008/6/28 Scott Gray <le...@gmail.com>:
>
>> Phone numbers? I haven't checked if there's a problem, it's just the first
>> thing that came to mind.
>>
>> Regards
>> Scott
>>
>> 2008/6/28 Adrian Crum <ad...@hlmksw.com>:
>>
>> In the trunk rev 658045 I committed some localization work. My intention
>>> was to fix all of the quirky localization issues that keep popping up.
>>>
>>> I took the shotgun approach and localized all numeric and date-time
>>> conversions - believing that the majority of those conversions should be
>>> localized. The exceptions could be handled on a case-by-case basis.
>>>
>>> That commit solved a number of localization issues, but (as was pointed
>>> out on the user ml today) it introduced a bug in order number and invoice
>>> number generation. IDs were being localized. IDs are one of the exceptions
>>> to localization. I fixed that issue in rev 672343.
>>>
>>> If anyone can think of any other exceptions, please let me know and I will
>>> take care of it.
>>>
>>> -Adrian
>>>
>>>
>>
>
Re: Potential OFBiz Localization Bugs
Posted by Scott Gray <le...@gmail.com>.
Oh hey, if you're looking at the localization stuff, I just noticed this
isn't working:
review.getRelatedOne("StatusItem").get("description", locale)
Here:
https://demo.hotwaxmedia.com/catalog/control/pendingReviews
I haven't looked into why but the key does exist in CommonEntityLabels.xml
Regards
Scott
2008/6/28 Scott Gray <le...@gmail.com>:
> Phone numbers? I haven't checked if there's a problem, it's just the first
> thing that came to mind.
>
> Regards
> Scott
>
> 2008/6/28 Adrian Crum <ad...@hlmksw.com>:
>
> In the trunk rev 658045 I committed some localization work. My intention
>> was to fix all of the quirky localization issues that keep popping up.
>>
>> I took the shotgun approach and localized all numeric and date-time
>> conversions - believing that the majority of those conversions should be
>> localized. The exceptions could be handled on a case-by-case basis.
>>
>> That commit solved a number of localization issues, but (as was pointed
>> out on the user ml today) it introduced a bug in order number and invoice
>> number generation. IDs were being localized. IDs are one of the exceptions
>> to localization. I fixed that issue in rev 672343.
>>
>> If anyone can think of any other exceptions, please let me know and I will
>> take care of it.
>>
>> -Adrian
>>
>>
>
Re: Potential OFBiz Localization Bugs
Posted by Adrian Crum <ad...@yahoo.com>.
Scott,
The bug would appear while converting a numeric or timestamp data type to a String. I believe phone numbers are Strings.
-Adrian
--- On Fri, 6/27/08, Scott Gray <le...@gmail.com> wrote:
> From: Scott Gray <le...@gmail.com>
> Subject: Re: Potential OFBiz Localization Bugs
> To: dev@ofbiz.apache.org
> Date: Friday, June 27, 2008, 2:02 PM
> Phone numbers? I haven't checked if there's a
> problem, it's just the first
> thing that came to mind.
>
> Regards
> Scott
>
> 2008/6/28 Adrian Crum <ad...@hlmksw.com>:
>
> > In the trunk rev 658045 I committed some localization
> work. My intention
> > was to fix all of the quirky localization issues that
> keep popping up.
> >
> > I took the shotgun approach and localized all numeric
> and date-time
> > conversions - believing that the majority of those
> conversions should be
> > localized. The exceptions could be handled on a
> case-by-case basis.
> >
> > That commit solved a number of localization issues,
> but (as was pointed out
> > on the user ml today) it introduced a bug in order
> number and invoice number
> > generation. IDs were being localized. IDs are one of
> the exceptions to
> > localization. I fixed that issue in rev 672343.
> >
> > If anyone can think of any other exceptions, please
> let me know and I will
> > take care of it.
> >
> > -Adrian
> >
> >
Re: Potential OFBiz Localization Bugs
Posted by Scott Gray <le...@gmail.com>.
Phone numbers? I haven't checked if there's a problem, it's just the first
thing that came to mind.
Regards
Scott
2008/6/28 Adrian Crum <ad...@hlmksw.com>:
> In the trunk rev 658045 I committed some localization work. My intention
> was to fix all of the quirky localization issues that keep popping up.
>
> I took the shotgun approach and localized all numeric and date-time
> conversions - believing that the majority of those conversions should be
> localized. The exceptions could be handled on a case-by-case basis.
>
> That commit solved a number of localization issues, but (as was pointed out
> on the user ml today) it introduced a bug in order number and invoice number
> generation. IDs were being localized. IDs are one of the exceptions to
> localization. I fixed that issue in rev 672343.
>
> If anyone can think of any other exceptions, please let me know and I will
> take care of it.
>
> -Adrian
>
>