Details

    • Type: Dev Task
    • Status: Ready to Ship / Verified
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Team:
      Core

      Description

      I was able to get on-the-fly reloading of messages in resource bundles working by applying the attached hack. It's not fit for prod (since it uses an absolute path) but we might be able to get reloading working during development.

      We're already using ReloadableResourceBundleMessageSource (we need to because we have UTF-8 Java properties resource bundles), so by changing the configuration for this class, i18n work is easier and faster.

      Maybe we could parameterize the message bundle basenames, and only have cacheSeconds=0 during development (-1 otherwise).

        Attachments

          Activity

          meonkeys Adam Monsen created issue -
          meonkeys Adam Monsen made changes -
          Field Original Value New Value
          Fix Version/s Elsie F [ 10311 ]
          meonkeys Adam Monsen made changes -
          Attachment instant_bundle_reloads.patch [ 14846 ]
          Description I was able to get on-the-fly reloading of messages in resource bundles working by applying the attached hack. It's not fit for prod (since it uses an absolute path) but we might be able to get reloading working during development.

          We're already using [ReloadableResourceBundleMessageSource|http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/context/support/ReloadableResourceBundleMessageSource.html] (we need to because we have UTF-8 Java properties resource bundles), so by changing the configuration for this class, i18n work is easier and faster.

          Maybe we could parameterize the message bundle basenames, and only have cacheSeconds=0 during development (-1 otherwise).
          meonkeys Adam Monsen made changes -
          Status Open [ 1 ] Development In Progress [ 3 ]
          meonkeys Adam Monsen made changes -
          Status Development In Progress [ 3 ] Open [ 1 ]
          skwoka Stanley Kwok (Inactive) made changes -
          kaychau Kay Chau made changes -
          Fix Version/s Release G [ 10382 ]
          Fix Version/s Release G - Iteration 1 [ 10390 ]
          Fix Version/s Elsie F [ 10311 ]
          skwoka Stanley Kwok (Inactive) made changes -
          Status Open [ 1 ] Development In Progress [ 3 ]
          Assignee Adam Monsen [ meonkeys ] Stanley Kwok [ skwoka ]
          skwoka Stanley Kwok (Inactive) made changes -
          Status Development In Progress [ 3 ] Ready for Testing / Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          kaychau Kay Chau made changes -
          Status Ready for Testing / Resolved [ 5 ] Ready to Ship / Verified [ 10000 ]

            People

            • Assignee:
              skwoka Stanley Kwok (Inactive)
              Reporter:
              meonkeys Adam Monsen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified