Tapestry 5
  1. Tapestry 5
  2. TAP5-1704

Localizing the "Today" and "None" labels in the core datefield component

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.3
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      In de DateField Component the text of the buttons "Today" and "None" don´t get translated. they are hardcoded in the javascript code.

      1. TAP5-1704.patch
        3 kB
        Michael Wyraz

        Activity

        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Howard M. Lewis Ship [ hlship ]
        Fix Version/s 5.4 [ 12316401 ]
        Resolution Fixed [ 1 ]
        Hide
        Howard M. Lewis Ship added a comment -

        Fixed as part of the overall client refresh in Tapestry 5.4.

        Show
        Howard M. Lewis Ship added a comment - Fixed as part of the overall client refresh in Tapestry 5.4.
        Michael Wyraz made changes -
        Attachment TAP5-1704.patch [ 12518016 ]
        Hide
        Michael Wyraz added a comment - - edited

        I created a patch for this. It could be improved by adding the translations within DateFieldStack but i have no idea how to access the message bundle for DateField there nor to add one for DateFieldStack. Other translations required (i added english and german).

        Show
        Michael Wyraz added a comment - - edited I created a patch for this. It could be improved by adding the translations within DateFieldStack but i have no idea how to access the message bundle for DateField there nor to add one for DateFieldStack. Other translations required (i added english and german).
        Hide
        Emmanuel DEMEY added a comment -

        But these 2 strings are hardcoded in the external datepicker.js. I think we can not change this behavior easily.

        Show
        Emmanuel DEMEY added a comment - But these 2 strings are hardcoded in the external datepicker.js. I think we can not change this behavior easily.
        Patricia Arranz made changes -
        Field Original Value New Value
        Priority Minor [ 4 ] Major [ 3 ]
        Patricia Arranz created issue -

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Patricia Arranz
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development