Announcement

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

    frameworkMessages.properties

    I'm trying to incorporate these locale files into our product and I can't seem to get it to work. I've added the script block to fetch it as instructed in the documentaton, and I see the browser requesting for the proper file for when I change the language setting in the browser but where is the hook for the UI to know to actually use this file for translation?

    Code:
    The SmartClient framework provides language pack files that can be plugged in at run time to set all of the framework standard messages to a particular locale. These locale files are located in 'webroot/isomorphic/locales'. Simply include the desired locale in a Script block, for example: <SCRIPT SRC="isomorphic/locales/frameworkMessages_pt.properties" /> to load the Portuguese locale. To see various locales, have a look at the Localization example. To create a new locale, modify the i18nMessages structure in an existing locale file.

    #2
    Simply loading the file causes framework strings to be modified.

    Comment


      #3
      Ok. I see this happening in a standalone. Next question is, what would make this NOT work? I see that we are loading the .properties file properly but it is not changing any of the listgrid dropdown menu messages

      Comment


        #4
        To break it:

        - load it before SmartClient is loaded
        - load it in the wrong frame if you are using multiple frames
        - don't actually load it (404)

        That's about it..

        Comment


          #5
          I was loading before SC loaded. Thanks!

          Comment

          Working...
          X