[jira] Created: (OFBIZ-133) French locale truncates times when saving edited routing task

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

[jira] Created: (OFBIZ-133) French locale truncates times when saving edited routing task

Nicolas Malin (Jira)
French locale truncates times when saving edited routing task
-------------------------------------------------------------

                 Key: OFBIZ-133
                 URL: http://issues.apache.org/jira/browse/OFBIZ-133
             Project: OFBiz (The Open for Business Project)
          Issue Type: Bug
          Components: manufacturing
         Environment: opentaps 0.9.1
Linux Fedora Core 5 (x86)
jdk 1.4.2_12-b03
postgres postgresql-server-8.1.4-1.FC5.1
jdbc driver postgresql-8.1-405.jdbc3.jar
            Reporter: Boris Lenzinger


How to reproduce/How to test
=======================
  We assume that you already have a routing task with a setup time larger than 1000 ms and/or with estimated larger than 1000ms.

Open Manufacturing Tab, then routing task and select the routing task with the above specifications.
With locale english, you see those times displayed as 60,000 (if time is 60000ms).
Now change the locale to French (France).
The number is now displayed as "60 000"
Then click on submit

--> the new time is now 60. Characters after space are ignored.



--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-133) French locale truncates times when saving edited routing task

Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-133?page=all ]

Jacopo Cappellato reassigned OFBIZ-133:
---------------------------------------

    Assignee: Jacopo Cappellato

> French locale truncates times when saving edited routing task
> -------------------------------------------------------------
>
>                 Key: OFBIZ-133
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-133
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: manufacturing
>         Environment: opentaps 0.9.1
> Linux Fedora Core 5 (x86)
> jdk 1.4.2_12-b03
> postgres postgresql-server-8.1.4-1.FC5.1
> jdbc driver postgresql-8.1-405.jdbc3.jar
>            Reporter: Boris Lenzinger
>         Assigned To: Jacopo Cappellato
>
> How to reproduce/How to test
> =======================
>   We assume that you already have a routing task with a setup time larger than 1000 ms and/or with estimated larger than 1000ms.
> Open Manufacturing Tab, then routing task and select the routing task with the above specifications.
> With locale english, you see those times displayed as 60,000 (if time is 60000ms).
> Now change the locale to French (France).
> The number is now displayed as "60 000"
> Then click on submit
> --> the new time is now 60. Characters after space are ignored.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-133) French locale truncates times when saving edited routing task

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-133?page=comments#action_12425975 ]
           
Jacopo Cappellato commented on OFBIZ-133:
-----------------------------------------

Yes, I've reproduced it however this is not a problem of that form but of all the form created using the widgets.
What should be the right thousand separator for France?

> French locale truncates times when saving edited routing task
> -------------------------------------------------------------
>
>                 Key: OFBIZ-133
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-133
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: manufacturing
>         Environment: opentaps 0.9.1
> Linux Fedora Core 5 (x86)
> jdk 1.4.2_12-b03
> postgres postgresql-server-8.1.4-1.FC5.1
> jdbc driver postgresql-8.1-405.jdbc3.jar
>            Reporter: Boris Lenzinger
>         Assigned To: Jacopo Cappellato
>
> How to reproduce/How to test
> =======================
>   We assume that you already have a routing task with a setup time larger than 1000 ms and/or with estimated larger than 1000ms.
> Open Manufacturing Tab, then routing task and select the routing task with the above specifications.
> With locale english, you see those times displayed as 60,000 (if time is 60000ms).
> Now change the locale to French (France).
> The number is now displayed as "60 000"
> Then click on submit
> --> the new time is now 60. Characters after space are ignored.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-133) French locale truncates times when saving edited routing task

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-133?page=all ]

Jacopo Cappellato reassigned OFBIZ-133:
---------------------------------------

    Assignee:     (was: Jacopo Cappellato)

> French locale truncates times when saving edited routing task
> -------------------------------------------------------------
>
>                 Key: OFBIZ-133
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-133
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: manufacturing
>         Environment: opentaps 0.9.1
> Linux Fedora Core 5 (x86)
> jdk 1.4.2_12-b03
> postgres postgresql-server-8.1.4-1.FC5.1
> jdbc driver postgresql-8.1-405.jdbc3.jar
>            Reporter: Boris Lenzinger
>
> How to reproduce/How to test
> =======================
>   We assume that you already have a routing task with a setup time larger than 1000 ms and/or with estimated larger than 1000ms.
> Open Manufacturing Tab, then routing task and select the routing task with the above specifications.
> With locale english, you see those times displayed as 60,000 (if time is 60000ms).
> Now change the locale to French (France).
> The number is now displayed as "60 000"
> Then click on submit
> --> the new time is now 60. Characters after space are ignored.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-133) French locale truncates times when saving edited routing task

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-133?page=comments#action_12425980 ]
           
Jacques Le Roux commented on OFBIZ-133:
---------------------------------------

Officially blank. I learn that in school when I was 8 (some time ago ;o). Some years ago (means before sixties) it was dot.

> French locale truncates times when saving edited routing task
> -------------------------------------------------------------
>
>                 Key: OFBIZ-133
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-133
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: manufacturing
>         Environment: opentaps 0.9.1
> Linux Fedora Core 5 (x86)
> jdk 1.4.2_12-b03
> postgres postgresql-server-8.1.4-1.FC5.1
> jdbc driver postgresql-8.1-405.jdbc3.jar
>            Reporter: Boris Lenzinger
>
> How to reproduce/How to test
> =======================
>   We assume that you already have a routing task with a setup time larger than 1000 ms and/or with estimated larger than 1000ms.
> Open Manufacturing Tab, then routing task and select the routing task with the above specifications.
> With locale english, you see those times displayed as 60,000 (if time is 60000ms).
> Now change the locale to French (France).
> The number is now displayed as "60 000"
> Then click on submit
> --> the new time is now 60. Characters after space are ignored.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-133) French locale truncates times when saving edited routing task

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-133?page=comments#action_12426027 ]
           
Peter Goron commented on OFBIZ-133:
-----------------------------------

I've been confronted to the same issue in neogia project (based on ofbiz)

My comprehension of the problem :
The grouping separator in french locale is the non breaking space (\u00A0) and is optional. So the parsing should be good if you input 60000 or 60 000 (with a non breaking space). The problem is that the string sent by browser contains a space instead of a non breaking space.

I've not identified if the problem comes from HtmlFormRenderer or from web browser.

I've done an ugly hack to fix the issue at parsing time.

> French locale truncates times when saving edited routing task
> -------------------------------------------------------------
>
>                 Key: OFBIZ-133
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-133
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: manufacturing
>         Environment: opentaps 0.9.1
> Linux Fedora Core 5 (x86)
> jdk 1.4.2_12-b03
> postgres postgresql-server-8.1.4-1.FC5.1
> jdbc driver postgresql-8.1-405.jdbc3.jar
>            Reporter: Boris Lenzinger
>
> How to reproduce/How to test
> =======================
>   We assume that you already have a routing task with a setup time larger than 1000 ms and/or with estimated larger than 1000ms.
> Open Manufacturing Tab, then routing task and select the routing task with the above specifications.
> With locale english, you see those times displayed as 60,000 (if time is 60000ms).
> Now change the locale to French (France).
> The number is now displayed as "60 000"
> Then click on submit
> --> the new time is now 60. Characters after space are ignored.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-133) French locale truncates times when saving edited routing task

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-133?page=all ]

Peter Goron updated OFBIZ-133:
------------------------------

    Attachment: ObjectType-nbsp.patch

the ugly hack that fix the issue for me

> French locale truncates times when saving edited routing task
> -------------------------------------------------------------
>
>                 Key: OFBIZ-133
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-133
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: manufacturing
>         Environment: opentaps 0.9.1
> Linux Fedora Core 5 (x86)
> jdk 1.4.2_12-b03
> postgres postgresql-server-8.1.4-1.FC5.1
> jdbc driver postgresql-8.1-405.jdbc3.jar
>            Reporter: Boris Lenzinger
>         Attachments: ObjectType-nbsp.patch
>
>
> How to reproduce/How to test
> =======================
>   We assume that you already have a routing task with a setup time larger than 1000 ms and/or with estimated larger than 1000ms.
> Open Manufacturing Tab, then routing task and select the routing task with the above specifications.
> With locale english, you see those times displayed as 60,000 (if time is 60000ms).
> Now change the locale to French (France).
> The number is now displayed as "60 000"
> Then click on submit
> --> the new time is now 60. Characters after space are ignored.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-133) French locale truncates times when saving edited routing task

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-133?page=comments#action_12426032 ]
           
Jacopo Cappellato commented on OFBIZ-133:
-----------------------------------------

Thanks Peter for the useful comments.
About the workaround: maybe it would be sufficient to suppress all the blank characters from the numeric string before parsing (instead of replacing them with the non breaking space)...



> French locale truncates times when saving edited routing task
> -------------------------------------------------------------
>
>                 Key: OFBIZ-133
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-133
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: manufacturing
>         Environment: opentaps 0.9.1
> Linux Fedora Core 5 (x86)
> jdk 1.4.2_12-b03
> postgres postgresql-server-8.1.4-1.FC5.1
> jdbc driver postgresql-8.1-405.jdbc3.jar
>            Reporter: Boris Lenzinger
>         Attachments: ObjectType-nbsp.patch
>
>
> How to reproduce/How to test
> =======================
>   We assume that you already have a routing task with a setup time larger than 1000 ms and/or with estimated larger than 1000ms.
> Open Manufacturing Tab, then routing task and select the routing task with the above specifications.
> With locale english, you see those times displayed as 60,000 (if time is 60000ms).
> Now change the locale to French (France).
> The number is now displayed as "60 000"
> Then click on submit
> --> the new time is now 60. Characters after space are ignored.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-133) French locale truncates times when saving edited routing task

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-133?page=comments#action_12426136 ]
           
David E. Jones commented on OFBIZ-133:
--------------------------------------

This should be fixed in SVN rev 429249. For details see the comments on that commit.

> French locale truncates times when saving edited routing task
> -------------------------------------------------------------
>
>                 Key: OFBIZ-133
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-133
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: manufacturing
>         Environment: opentaps 0.9.1
> Linux Fedora Core 5 (x86)
> jdk 1.4.2_12-b03
> postgres postgresql-server-8.1.4-1.FC5.1
> jdbc driver postgresql-8.1-405.jdbc3.jar
>            Reporter: Boris Lenzinger
>         Attachments: ObjectType-nbsp.patch
>
>
> How to reproduce/How to test
> =======================
>   We assume that you already have a routing task with a setup time larger than 1000 ms and/or with estimated larger than 1000ms.
> Open Manufacturing Tab, then routing task and select the routing task with the above specifications.
> With locale english, you see those times displayed as 60,000 (if time is 60000ms).
> Now change the locale to French (France).
> The number is now displayed as "60 000"
> Then click on submit
> --> the new time is now 60. Characters after space are ignored.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-133) French locale truncates times when saving edited routing task

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-133?page=all ]

Jacques Le Roux closed OFBIZ-133.
---------------------------------

    Fix Version/s: SVN trunk
       Resolution: Fixed
         Assignee: Jacques Le Roux

It's ok in french, I close the issue.

> French locale truncates times when saving edited routing task
> -------------------------------------------------------------
>
>                 Key: OFBIZ-133
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-133
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: manufacturing
>         Environment: opentaps 0.9.1
> Linux Fedora Core 5 (x86)
> jdk 1.4.2_12-b03
> postgres postgresql-server-8.1.4-1.FC5.1
> jdbc driver postgresql-8.1-405.jdbc3.jar
>            Reporter: Boris Lenzinger
>         Assigned To: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: ObjectType-nbsp.patch
>
>
> How to reproduce/How to test
> =======================
>   We assume that you already have a routing task with a setup time larger than 1000 ms and/or with estimated larger than 1000ms.
> Open Manufacturing Tab, then routing task and select the routing task with the above specifications.
> With locale english, you see those times displayed as 60,000 (if time is 60000ms).
> Now change the locale to French (France).
> The number is now displayed as "60 000"
> Then click on submit
> --> the new time is now 60. Characters after space are ignored.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira