[WG: I18N & L10N] dynamic loading of message bundle data

John Bush john.bush at rsmart.com
Tue Aug 17 13:06:12 PDT 2010


I've completed the first task regarding this:
http://bugs.sakaiproject.org/browse/SAK-18983.  It would be nice to
have someone else validate its working as expected before merging this
work up to trunk.  Right now the work is in the following branch:
https://source.sakaiproject.org/svn/kernel/branches/SAK-18678

These first changes are all kernel stuff, so you need to switch to
that branch, build/deploy kernel and then do a full sakai build,
because there are changes to the kernel util jar which is included in
like every web app.

I put comments in the ticket for a sample test you can run.

You need these in your sakai.properties to turn it all and set the
cache timeout:

# message bundle management
load.bundles.from.db=true
# number of milliseconds before rechecking database for updates, the
default is 30 secs
load.bundles.from.db.timeout=30000

Basically what happens is as bundles are loaded, by clicking around in
the UI from the browser, they automatically get indexed and stored in
the SAKAI_MESSAGE_BUNDLE table.  So if you look around in that table
you should see lots of rows getting populated.  You can manually go in
and edit the PROP_VALUE column for any row to modify a value of a
bundle.  So if you know some keys and where they are show in the UI,
you can test whatever you like.  Depending on what you set the cache
to, you might have to wait until that expires to see your change.

The next step is to port the actual tool that lets you modify the
values from the UI, hopefully I'll have that wrapped up in a few days.

Any feedback is welcome.

-- 
John Bush
602-490-0470


More information about the i18n mailing list