You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Rafal Rusin (JIRA)" <ji...@apache.org> on 2010/02/13 21:22:28 UTC

[jira] Created: (CLK-624) Missing translations for Date Field, eg. no polish one

Missing translations for Date Field, eg. no polish one
------------------------------------------------------

                 Key: CLK-624
                 URL: https://issues.apache.org/jira/browse/CLK-624
             Project: Click
          Issue Type: Bug
          Components: examples
    Affects Versions: 2.2.0, 2.1.0
         Environment: Apache Tomcat 6
            Reporter: Rafal Rusin


In examples, http://localhost:8080/click-examples/cayenne/cayenne-form-page.htm,
I saw problem with DateField locale, similar to one described here: http://issues.apache.org/jira/browse/CLK-60

I mean, after clicking date value, rendered month value is in english
(eg. FEB) . But server accepts only polish values (LUT).
The same problem shows in online examples.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Created: (CLK-624) Missing translations for Date Field, eg. no polish one

Posted by WarnerJan Veldhuis <wa...@qprcostcontrol.com>.
done


On 02/15/2010 01:17 PM, Bob Schellink wrote:
> Hi WarnerJan,
>
> I've added some missing translations to CLK-624. Could you review them 
> and update the dutch translations?
>
> https://issues.apache.org/jira/browse/CLK-624
>
> kind regards
>
> bob
>
> On 15/02/2010 08:03 PM, WarnerJan Veldhuis wrote:
>> Here's the Dutch translation
>>
>>
>> On 02/13/2010 09:22 PM, Rafal Rusin (JIRA) wrote:
>>> Missing translations for Date Field, eg. no polish one
>>> ------------------------------------------------------
>>>
>>> Key: CLK-624
>>> URL: https://issues.apache.org/jira/browse/CLK-624
>>> Project: Click
>>> Issue Type: Bug
>>> Components: examples
>>> Affects Versions: 2.2.0, 2.1.0
>>> Environment: Apache Tomcat 6
>>> Reporter: Rafal Rusin
>>>
>>>
>>> In examples,
>>> http://localhost:8080/click-examples/cayenne/cayenne-form-page.htm,
>>> I saw problem with DateField locale, similar to one described here:
>>> http://issues.apache.org/jira/browse/CLK-60
>>>
>>> I mean, after clicking date value, rendered month value is in english
>>> (eg. FEB) . But server accepts only polish values (LUT).
>>> The same problem shows in online examples.
>>>
>>>

Re: [jira] Created: (CLK-624) Missing translations for Date Field, eg. no polish one

Posted by Bob Schellink <sa...@gmail.com>.
Hi WarnerJan,

I've added some missing translations to CLK-624. Could you review them and update the dutch 
translations?

https://issues.apache.org/jira/browse/CLK-624

kind regards

bob

On 15/02/2010 08:03 PM, WarnerJan Veldhuis wrote:
> Here's the Dutch translation
>
>
> On 02/13/2010 09:22 PM, Rafal Rusin (JIRA) wrote:
>> Missing translations for Date Field, eg. no polish one
>> ------------------------------------------------------
>>
>> Key: CLK-624
>> URL: https://issues.apache.org/jira/browse/CLK-624
>> Project: Click
>> Issue Type: Bug
>> Components: examples
>> Affects Versions: 2.2.0, 2.1.0
>> Environment: Apache Tomcat 6
>> Reporter: Rafal Rusin
>>
>>
>> In examples,
>> http://localhost:8080/click-examples/cayenne/cayenne-form-page.htm,
>> I saw problem with DateField locale, similar to one described here:
>> http://issues.apache.org/jira/browse/CLK-60
>>
>> I mean, after clicking date value, rendered month value is in english
>> (eg. FEB) . But server accepts only polish values (LUT).
>> The same problem shows in online examples.
>>
>>


[jira] Created: (CLK-624) Missing translations for Date Field, eg. no polish one

Posted by WarnerJan Veldhuis <wa...@qprcostcontrol.com>.
Here's the Dutch translation


On 02/13/2010 09:22 PM, Rafal Rusin (JIRA) wrote:
> Missing translations for Date Field, eg. no polish one
> ------------------------------------------------------
>
>                   Key: CLK-624
>                   URL: https://issues.apache.org/jira/browse/CLK-624
>               Project: Click
>            Issue Type: Bug
>            Components: examples
>      Affects Versions: 2.2.0, 2.1.0
>           Environment: Apache Tomcat 6
>              Reporter: Rafal Rusin
>
>
> In examples, http://localhost:8080/click-examples/cayenne/cayenne-form-page.htm,
> I saw problem with DateField locale, similar to one described here: http://issues.apache.org/jira/browse/CLK-60
>
> I mean, after clicking date value, rendered month value is in english
> (eg. FEB) . But server accepts only polish values (LUT).
> The same problem shows in online examples.
>
>
>    

Re: [jira] Updated: (CLK-624) Add missing translations for Date Field

Posted by "Adrian A." <a....@gmail.com>.
> This patch injects javascript that defines Date.month, Date.monthAbbreviations, Date.dayNames and Date.dayAbbreviations with values from DateFormatSymbols. With these definition the date string generated by the javascript calendar is always a valid date that can be parsed by java's dateparser. So the list of supported languages are then no longer needed.
>
> Regarding the remaining translations, I would *strongly* prefer that they were read from the DateField property file and injected into the javascript the same way as month names. So that all string are translated in the same way.
+1 for this Java approach (for all languages of course).
It's the same way it's done for the CountrySelect control, where it's 
the responsibility of the JDK to generate the country names and country 
ISO codes (it does that for much more languages we could possibly 
translate to).

Even, more, IMHO if there are other i18n messages in the JDK that we 
could re-use in other components, it might be a good idea to collect 
that info in a WIKI page, so that future components don't have to 
"reinvent the wheel" :).

Adrian.


[jira] Commented: (CLK-624) Add missing translations for Date Field

Posted by "WarnerJan Veldhuis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833790#action_12833790 ] 

WarnerJan Veldhuis commented on CLK-624:
----------------------------------------

// Full month names
  Date.months = new Array('Januari','Februari','Maart','April','Mei','Juni','Juli','Augustus','September','Oktober','November','December');

  // Month abbreviations
  Date.monthAbbreviations = new Array('Jan','Feb','Mrt','Apr','Mei','Jun','Jul','Aug','Sep','Okt','Nov','Dec');

  // Full day names
  Date.dayNames = new Array('Zondag','Maandag','Dinsdag','Woensdag','Donderdag','Vrijdag','Zaterdag');

  // Day abbreviations
  Date.dayAbbreviations = new Array('Zo','Ma','Di','Wo','Do','Vr','Za');

  // Weekdays displayed by popup calendar
  Date.weekdays = new Array('Z','M','D','W','D','V','Z');

  Date.first_day_of_week = 0;

  _translations = {
    "OK": "OK",
    "Now": "Nu",
    "Today": "Vandaag",
    "Clear": "Wissen"
  } 

> Add missing translations for Date Field
> ---------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>            Assignee: Bob Schellink
>             Fix For: 2.2.0
>
>         Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch
>
>
> Below is the full list of translations necessary for the DateField control. If you would like to add a translation please add it as a patch or in a comment.
>   // Full month names
>   Date.months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
>   // Month abbreviations
>   Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
>   // Full day names
>   Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
>   // Day abbreviations
>   Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
>   // Weekdays displayed by popup calendar
>   Date.weekdays = new Array('S','M','T','W','T','F','S');
>   Date.first_day_of_week = 0;
>   _translations = {
>     "OK": "OK",
>     "Now": "Now",
>     "Today": "Today",
>     "Clear": "Clear"
>   }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-624) Add missing translations for Date Field

Posted by "Finn Bock (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833990#action_12833990 ] 

Finn Bock commented on CLK-624:
-------------------------------

Before we all go ahead and submit translations for month and day names (and abbreviations), I think it would make more sense for DateField to generate these names from here:

http://java.sun.com/j2se/1.4.2/docs/api/java/text/DateFormatSymbols.html#getMonths%28%29
http://java.sun.com/j2se/1.4.2/docs/api/java/text/DateFormatSymbols.html#getShortMonths%28%29
http://java.sun.com/j2se/1.4.2/docs/api/java/text/DateFormatSymbols.html#getWeekdays%28%29
http://java.sun.com/j2se/1.4.2/docs/api/java/text/DateFormatSymbols.html#getShortWeekdays%28%29

By creating the arrays from java's names we will AFAIK also instantly "support" all language so that DateField.SUPPORTTED_LANGUAGES can be removed.



> Add missing translations for Date Field
> ---------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>            Assignee: Bob Schellink
>             Fix For: 2.2.0
>
>         Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch
>
>
> Below is the full list of translations necessary for the DateField control. If you would like to add a translation please add it as a patch or in a comment.
>   // Full month names
>   Date.months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
>   // Month abbreviations
>   Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
>   // Full day names
>   Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
>   // Day abbreviations
>   Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
>   // Weekdays displayed by popup calendar
>   Date.weekdays = new Array('S','M','T','W','T','F','S');
>   Date.first_day_of_week = 0;
>   _translations = {
>     "OK": "OK",
>     "Now": "Now",
>     "Today": "Today",
>     "Clear": "Clear"
>   }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CLK-624) Add missing translations for Date Field

Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Schellink updated CLK-624:
------------------------------

          Description: 
Below is the full list of translations necessary for the DateField control. If you would like to add a translation please add it as a patch or in a comment.

  // Full month names
  Date.months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

  // Month abbreviations
  Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');

  // Full day names
  Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

  // Day abbreviations
  Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');

  // Weekdays displayed by popup calendar
  Date.weekdays = new Array('S','M','T','W','T','F','S');

  Date.first_day_of_week = 0;

  _translations = {
    "OK": "OK",
    "Now": "Now",
    "Today": "Today",
    "Clear": "Clear"
  }


  was:
In examples, http://localhost:8080/click-examples/cayenne/cayenne-form-page.htm,
I saw problem with DateField locale, similar to one described here: http://issues.apache.org/jira/browse/CLK-60

I mean, after clicking date value, rendered month value is in english
(eg. FEB) . But server accepts only polish values (LUT).
The same problem shows in online examples.


    Affects Version/s:     (was: 2.2.0)

> Add missing translations for Date Field
> ---------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>            Assignee: Bob Schellink
>             Fix For: 2.2.0
>
>         Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch
>
>
> Below is the full list of translations necessary for the DateField control. If you would like to add a translation please add it as a patch or in a comment.
>   // Full month names
>   Date.months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
>   // Month abbreviations
>   Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
>   // Full day names
>   Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
>   // Day abbreviations
>   Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
>   // Weekdays displayed by popup calendar
>   Date.weekdays = new Array('S','M','T','W','T','F','S');
>   Date.first_day_of_week = 0;
>   _translations = {
>     "OK": "OK",
>     "Now": "Now",
>     "Today": "Today",
>     "Clear": "Clear"
>   }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CLK-624) Missing translations for Date Field, eg. no polish one

Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rafal Rusin updated CLK-624:
----------------------------

    Attachment: CLK-624.patch

This patch solves problem. 

> Missing translations for Date Field, eg. no polish one
> ------------------------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.2.0, 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>         Attachments: CLK-624.patch
>
>
> In examples, http://localhost:8080/click-examples/cayenne/cayenne-form-page.htm,
> I saw problem with DateField locale, similar to one described here: http://issues.apache.org/jira/browse/CLK-60
> I mean, after clicking date value, rendered month value is in english
> (eg. FEB) . But server accepts only polish values (LUT).
> The same problem shows in online examples.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-624) Add missing translations for Date Field

Posted by "Naoki Takezoe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834025#action_12834025 ] 

Naoki Takezoe commented on CLK-624:
-----------------------------------

Hi Bob,

Thanks, I didn't look at the description neatly...
I updated Japanese translation in SVN trunk.

> Add missing translations for Date Field
> ---------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>            Assignee: Bob Schellink
>             Fix For: 2.2.0
>
>         Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch
>
>
> Below is the full list of translations necessary for the DateField control. If you would like to add a translation please add it as a patch or in a comment.
>   // Full month names
>   Date.months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
>   // Month abbreviations
>   Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
>   // Full day names
>   Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
>   // Day abbreviations
>   Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
>   // Weekdays displayed by popup calendar
>   Date.weekdays = new Array('S','M','T','W','T','F','S');
>   Date.first_day_of_week = 0;
>   _translations = {
>     "OK": "OK",
>     "Now": "Now",
>     "Today": "Today",
>     "Clear": "Clear"
>   }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CLK-624) Missing translations for Date Field, eg. no polish one

Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833448#action_12833448 ] 

Rafal Rusin edited comment on CLK-624 at 2/13/10 8:32 PM:
----------------------------------------------------------

This patch solves problem (only for polish locale).

      was (Author: rrusin):
    This patch solves problem. 
  
> Missing translations for Date Field, eg. no polish one
> ------------------------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.2.0, 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>         Attachments: CLK-624.patch
>
>
> In examples, http://localhost:8080/click-examples/cayenne/cayenne-form-page.htm,
> I saw problem with DateField locale, similar to one described here: http://issues.apache.org/jira/browse/CLK-60
> I mean, after clicking date value, rendered month value is in english
> (eg. FEB) . But server accepts only polish values (LUT).
> The same problem shows in online examples.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-624) Add missing translations for Date Field

Posted by "Naoki Takezoe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833556#action_12833556 ] 

Naoki Takezoe commented on CLK-624:
-----------------------------------

I'd like to add Japanese translation to DateField.
Now I'm making it, please wait for a moment.

> Add missing translations for Date Field
> ---------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.2.0, 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>            Assignee: Bob Schellink
>             Fix For: 2.2.0
>
>         Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch
>
>
> In examples, http://localhost:8080/click-examples/cayenne/cayenne-form-page.htm,
> I saw problem with DateField locale, similar to one described here: http://issues.apache.org/jira/browse/CLK-60
> I mean, after clicking date value, rendered month value is in english
> (eg. FEB) . But server accepts only polish values (LUT).
> The same problem shows in online examples.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CLK-624) Add missing translations for Date Field

Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Schellink updated CLK-624:
------------------------------

    Fix Version/s: 2.2.0
         Assignee: Bob Schellink
          Summary: Add missing translations for Date Field  (was: Missing translations for Date Field, eg. no polish one)

> Add missing translations for Date Field
> ---------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.2.0, 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>            Assignee: Bob Schellink
>             Fix For: 2.2.0
>
>         Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch
>
>
> In examples, http://localhost:8080/click-examples/cayenne/cayenne-form-page.htm,
> I saw problem with DateField locale, similar to one described here: http://issues.apache.org/jira/browse/CLK-60
> I mean, after clicking date value, rendered month value is in english
> (eg. FEB) . But server accepts only polish values (LUT).
> The same problem shows in online examples.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-624) Missing translations for Date Field, eg. no polish one

Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833452#action_12833452 ] 

Rafal Rusin commented on CLK-624:
---------------------------------

I've tested click-calendar-1.0.2.jar and it works perfectly. 
So in order to use it, you need to put jar into click/lib/click-calendar-1.0.2.jar. Then apply patch CLK-624-calendar-1.0.2.patch

> Missing translations for Date Field, eg. no polish one
> ------------------------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.2.0, 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>         Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch
>
>
> In examples, http://localhost:8080/click-examples/cayenne/cayenne-form-page.htm,
> I saw problem with DateField locale, similar to one described here: http://issues.apache.org/jira/browse/CLK-60
> I mean, after clicking date value, rendered month value is in english
> (eg. FEB) . But server accepts only polish values (LUT).
> The same problem shows in online examples.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-624) Missing translations for Date Field, eg. no polish one

Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833449#action_12833449 ] 

Rafal Rusin commented on CLK-624:
---------------------------------

I saw, as Bob suggested, that using newer version of click-calendar, may resolve this problem.
For example click-calendar-1.0.2.jar contains ./META-INF/web/click/jscalendar/calendar-pl.js with relevant data. 
However I haven't tried that yet. 

> Missing translations for Date Field, eg. no polish one
> ------------------------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.2.0, 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>         Attachments: CLK-624.patch
>
>
> In examples, http://localhost:8080/click-examples/cayenne/cayenne-form-page.htm,
> I saw problem with DateField locale, similar to one described here: http://issues.apache.org/jira/browse/CLK-60
> I mean, after clicking date value, rendered month value is in english
> (eg. FEB) . But server accepts only polish values (LUT).
> The same problem shows in online examples.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CLK-624) Missing translations for Date Field, eg. no polish one

Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rafal Rusin updated CLK-624:
----------------------------

    Attachment: CLK-624-calendar-1.0.2.patch

> Missing translations for Date Field, eg. no polish one
> ------------------------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.2.0, 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>         Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch
>
>
> In examples, http://localhost:8080/click-examples/cayenne/cayenne-form-page.htm,
> I saw problem with DateField locale, similar to one described here: http://issues.apache.org/jira/browse/CLK-60
> I mean, after clicking date value, rendered month value is in english
> (eg. FEB) . But server accepts only polish values (LUT).
> The same problem shows in online examples.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (CLK-624) Add missing translations for Date Field

Posted by WarnerJan Veldhuis <wa...@qprcostcontrol.com>.
Can anybody commit my Dutch translations for this one please?




On 02/14/2010 03:59 PM, Naoki Takezoe (JIRA) wrote:
>      [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833575#action_12833575 ]
>
> Naoki Takezoe commented on CLK-624:
> -----------------------------------
>
> I committed Japanese translation to DateField into SVN trunk.
> http://svn.apache.org/viewvc?view=revision&revision=910014
>
>    
>> Add missing translations for Date Field
>> ---------------------------------------
>>
>>                  Key: CLK-624
>>                  URL: https://issues.apache.org/jira/browse/CLK-624
>>              Project: Click
>>           Issue Type: Bug
>>           Components: examples
>>     Affects Versions: 2.2.0, 2.1.0
>>          Environment: Apache Tomcat 6
>>             Reporter: Rafal Rusin
>>             Assignee: Bob Schellink
>>              Fix For: 2.2.0
>>
>>          Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch
>>
>>
>> In examples, http://localhost:8080/click-examples/cayenne/cayenne-form-page.htm,
>> I saw problem with DateField locale, similar to one described here: http://issues.apache.org/jira/browse/CLK-60
>> I mean, after clicking date value, rendered month value is in english
>> (eg. FEB) . But server accepts only polish values (LUT).
>> The same problem shows in online examples.
>>      
>    

[jira] Commented: (CLK-624) Add missing translations for Date Field

Posted by "Naoki Takezoe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833575#action_12833575 ] 

Naoki Takezoe commented on CLK-624:
-----------------------------------

I committed Japanese translation to DateField into SVN trunk.
http://svn.apache.org/viewvc?view=revision&revision=910014

> Add missing translations for Date Field
> ---------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.2.0, 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>            Assignee: Bob Schellink
>             Fix For: 2.2.0
>
>         Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch
>
>
> In examples, http://localhost:8080/click-examples/cayenne/cayenne-form-page.htm,
> I saw problem with DateField locale, similar to one described here: http://issues.apache.org/jira/browse/CLK-60
> I mean, after clicking date value, rendered month value is in english
> (eg. FEB) . But server accepts only polish values (LUT).
> The same problem shows in online examples.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-624) Add missing translations for Date Field

Posted by "Joseph Schmidt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840591#action_12840591 ] 

Joseph Schmidt commented on CLK-624:
------------------------------------

> This patch injects javascript ....
> So the list of supported languages are then no longer needed. 
I like this automated translation allot :).
Is it possible that the JDK has more translated texts that could be used too?

> Add missing translations for Date Field
> ---------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>            Assignee: Bob Schellink
>             Fix For: 2.2.0
>
>         Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch, datefield.patch
>
>
> Below is the full list of translations necessary for the DateField control. If you would like to add a translation please add it as a patch or in a comment.
>   // Full month names
>   Date.months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
>   // Month abbreviations
>   Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
>   // Full day names
>   Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
>   // Day abbreviations
>   Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
>   // Weekdays displayed by popup calendar
>   Date.weekdays = new Array('S','M','T','W','T','F','S');
>   Date.first_day_of_week = 0;
>   _translations = {
>     "OK": "OK",
>     "Now": "Now",
>     "Today": "Today",
>     "Clear": "Clear"
>   }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CLK-624) Add missing translations for Date Field

Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Schellink resolved CLK-624.
-------------------------------

    Resolution: Fixed

fixed in trunk

> Add missing translations for Date Field
> ---------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>            Assignee: Bob Schellink
>             Fix For: 2.2.0
>
>         Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch, datefield.patch
>
>
> Below is the full list of translations necessary for the DateField control. If you would like to add a translation please add it as a patch or in a comment.
>   // Full month names
>   Date.months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
>   // Month abbreviations
>   Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
>   // Full day names
>   Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
>   // Day abbreviations
>   Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
>   // Weekdays displayed by popup calendar
>   Date.weekdays = new Array('S','M','T','W','T','F','S');
>   Date.first_day_of_week = 0;
>   _translations = {
>     "OK": "OK",
>     "Now": "Now",
>     "Today": "Today",
>     "Clear": "Clear"
>   }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CLK-624) Add missing translations for Date Field

Posted by "Finn Bock (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Finn Bock updated CLK-624:
--------------------------

    Attachment: datefield.patch

This patch injects javascript that defines Date.month, Date.monthAbbreviations, Date.dayNames and Date.dayAbbreviations with values from DateFormatSymbols. With these definition the date string generated by the javascript calendar is always a valid date that can be parsed by java's dateparser. So the list of supported languages are then no longer needed.

Regarding the remaining translations, I would *strongly* prefer that they were read from the DateField property file and injected into the javascript the same way as month names. So that all string are translated in the same way.

> Add missing translations for Date Field
> ---------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>            Assignee: Bob Schellink
>             Fix For: 2.2.0
>
>         Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch, datefield.patch
>
>
> Below is the full list of translations necessary for the DateField control. If you would like to add a translation please add it as a patch or in a comment.
>   // Full month names
>   Date.months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
>   // Month abbreviations
>   Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
>   // Full day names
>   Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
>   // Day abbreviations
>   Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
>   // Weekdays displayed by popup calendar
>   Date.weekdays = new Array('S','M','T','W','T','F','S');
>   Date.first_day_of_week = 0;
>   _translations = {
>     "OK": "OK",
>     "Now": "Now",
>     "Today": "Today",
>     "Clear": "Clear"
>   }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-624) Add missing translations for Date Field

Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834123#action_12834123 ] 

Bob Schellink commented on CLK-624:
-----------------------------------

@Finn, that is a good idea. We could use this as a fallback mechanism in case the locale language is not supported. I can still see benefit in having a user defined property file for more fine grained customization. For example the English locale uses the weekdays 'S', 'M', 'T' instead of the shortWeekdays abbreviation.

> Add missing translations for Date Field
> ---------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>            Assignee: Bob Schellink
>             Fix For: 2.2.0
>
>         Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch
>
>
> Below is the full list of translations necessary for the DateField control. If you would like to add a translation please add it as a patch or in a comment.
>   // Full month names
>   Date.months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
>   // Month abbreviations
>   Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
>   // Full day names
>   Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
>   // Day abbreviations
>   Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
>   // Weekdays displayed by popup calendar
>   Date.weekdays = new Array('S','M','T','W','T','F','S');
>   Date.first_day_of_week = 0;
>   _translations = {
>     "OK": "OK",
>     "Now": "Now",
>     "Today": "Today",
>     "Clear": "Clear"
>   }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-624) Add missing translations for Date Field

Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833780#action_12833780 ] 

Bob Schellink commented on CLK-624:
-----------------------------------

Hi Naoki,

There are DateField translations that wasn't made visible in the current translation file. See this issue's main description for the full list of translations.

kind regards

bob

> Add missing translations for Date Field
> ---------------------------------------
>
>                 Key: CLK-624
>                 URL: https://issues.apache.org/jira/browse/CLK-624
>             Project: Click
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.1.0
>         Environment: Apache Tomcat 6
>            Reporter: Rafal Rusin
>            Assignee: Bob Schellink
>             Fix For: 2.2.0
>
>         Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch
>
>
> Below is the full list of translations necessary for the DateField control. If you would like to add a translation please add it as a patch or in a comment.
>   // Full month names
>   Date.months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
>   // Month abbreviations
>   Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
>   // Full day names
>   Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
>   // Day abbreviations
>   Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
>   // Weekdays displayed by popup calendar
>   Date.weekdays = new Array('S','M','T','W','T','F','S');
>   Date.first_day_of_week = 0;
>   _translations = {
>     "OK": "OK",
>     "Now": "Now",
>     "Today": "Today",
>     "Clear": "Clear"
>   }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.