Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    change language for Calendar component

    Hi, first of all, thank you people for a superb product.

    I need the Calendar component to show header texts (Day, Week, Month, name of days ...) in Spanish, what is the right and easy way to achieve this? (provided that there is a way)

    Thanks

    #2
    Hi santiagogl,
    As you may be aware, i18n support for most of the SmartGWT labels has already been added for several locales (including spanish) in SVN. There are a handful of labels that remain which include the Calendar component labels.

    We'll be adding support for these soon. You can star this issue to get notified.

    Comment


      #3
      I tried using the i18n support from the latest SVN, but can't get it to work.

      I added
      Code:
        	 <extend-property name="locale" values="es"/>
      to my module .xml, and added ?locale=es to the URL. I know the correct locale strings are being loaded, because if I use com.google.gwt.i18n.client.DateTimeFormat class to format a date, I will get it it in the correct language (I tried formatting with locale fr_FR and the correct french names of the day are shown too).

      The weird thing is that the calendar is still completely in english. I still see "Sun", "Mon", "Tue", ... in the day headers in the calendar.

      Any idea of what might be I doing wrong? Thanks a lot for your help!

      Comment


        #4
        The Calendar component is the one area that hasn't been i18n'ed. Support for it will be added soon (~ a week).

        Sanjiv

        Comment


          #5
          Hello Sanjiv. Thank you for your amazing help and enthusiasm!

          For a personal project, I really need to translate the Calendar component. I will wait patiently for i18n support, but in the meantime I'm planning to use my own patched version from SVN with hard-coded translations (I've noted that some parts of the Calendar are already i18nized, that's great!).

          I've taken a look to the com.smartgwt.client.widgets.calendar.Calendar class source code but couldn't find the labels I want to translate. Do you know in what part I can find those strings? For example, the tabs in the top-right corner (inside red oval in this screenshot), in what part of the code are they being created, so that I can modify the text shown in them?



          And also, I'd like to contribute in the process of adding i18n support. How can I help?

          I greatly appreciate your help. Thanks!

          Comment


            #6
            Hi adnmej,
            I'll be checking in the code for this tomorrow. Once I do so, I'll need updated translations for these new labels. Please star this issue so that you get notified when there are updates. I'll be posting a comment soon requesting for updates to resource bundles.

            Sanjiv

            Comment


              #7
              Hello Sanjiv. I will surely contribute the spanish resource bundle once it's available. Is there any other way I can help in the meantime?
              Last edited by andmej; 31 May 2009, 13:21.

              Comment


                #8
                Support for Calendar i18n has been added. The new resource bundle keys are listed here. Feel free submit the translations for your locate.

                Sanjiv

                Comment

                Working...
                X