Announcement

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

    Edit DateItem

    Hi I use a DateItem in my project, everything works fine but the problem is that when I display the month it shows me like this

    it displays the same characters in June and July

    I want to indicate the language of the application is French

    how can I show 4 characters in the DateItem, like this [janv,févr,..., juin, juil,...]

    this is my source code
    isc.DynamicForm.create({
    ID: "dateForm",
    numCols: 4,
    width: 650,
    fields: [
    {name:"pickListDate", title:"PickList Date", type:"date", change:"dateLabel.setContents(value)",
    wrapTitle:false , selectorFormat:"YM"}
    ]
    });

    Attached Files

    #2
    These translations for the short month names come from the language pack. If you want to modify them, see the Internationalization overview in the docs. If you think you have alternate translations that are simply better, please see this thread for how to submit alternate translations.

    Comment


      #3
      is there an easier way. I just want to change to modify those tow words.
      and if there is a way to display all the word I will accept it

      Comment


        #4
        Anyone has an idea ?

        Comment


          #5
          Hi nizarenis

          as Isomorphic wrote. This is pretty easy.
          Create an account for getlocalization.com, go here, filter for "Logical String" "date_shortMonthName" and translate the 12 month names.
          When you are finished ask Isomorphic to pick up the changes.

          While you are at it, you could also filter for all untranslated strings and translate those, so that also the rest of the GUI is fully localized. I did the same for German once, does not take too long.

          Isomorphic:
          I can see that there is "fr" and "fr-fr". What happens if a string is translated in "fr", but not in "fr-fr" and the user uses "fr-fr" as language? Does it fall back to "fr" or the english default?

          Best regards
          Blama

          Comment


            #6
            Hi Isomorphic


            I translate the 12 month names
            can you pick up my changes
            Last edited by nizarenis; 8 Jan 2018, 02:00.

            Comment


              #7
              Which version of SmartGWT are you using?

              Comment


                #8
                Hi Isomorphic,

                I know it might be annoying, but there is actually a good and already formalized and ready to extract version of all those date string available here in the GWT source, making it possible for you to automatically higher your translation percentage. The base data from Unicode does not look like it is easily extracted.

                Best regards
                Blama

                Comment


                  #9
                  I'm using SmartGWT version 4.0
                  Thanks

                  Comment


                    #10
                    In fact, the translations were already correct for June (Juin) and July (Jui) in the French language-packs - as of 4.1, you'll see June represented as "Juin" in French locales.

                    However, you version (4.0) is very, very old (6 versions old - the current version is 6.1, with a new version due in the coming months) - logic in builds from back then enforced a 3-character month.

                    This was a simple fix, so we've applied it to 4.0, and you can test it out in tomorrow's builds.

                    However, note that as a rule, we don't fix minor bugs like this in ancient versions of the software, for unsupported customers - our advice is to upgrade to a more recent version of SmartGWT.

                    Comment


                      #11
                      Thank you

                      Comment


                        #12
                        Hi Isomorphic
                        I test my application but I still have the same problem

                        Comment


                          #13
                          Did you update to the latest build from smartclient.com/builds?

                          Comment


                            #14
                            my project is a maven project, I run maven clean install so I think it gives me the latest version

                            Comment


                              #15
                              Evaluate isc.versionNumber in your browser console.

                              Comment

                              Working...
                              X