[OpenAjaxIDE] Allowing inline message bundles (was "Localization")
jferrai at us.ibm.com
Wed Aug 13 10:31:11 PDT 2008
There was tentative agreement at Tuesday's phone call to allow the ability
to include message bundles inline within the metadata content in order to
address potential network download performance problems. I promised to
launch email discussion about the technical details.
As a reminder, we have adopted Google Gadget's localization file
approaches, which they call "message bundles", as documented at:
http://code.google.com/apis/gadgets/docs/i18n.html. We have also adopted
their file format naming conventions, with names such as "en_us.xml",
"en_ALL.xml" and "ALL_ALL.xml".
Here is my strawman proposal for how to allow inline message bundles:
(1) We just duplicate the <messagebundle> and <msg> elements from Google
Gadgets into our grammar. This will allow something like this:
(2) We add a 'lang' attribute to the <messagebundle> element to indicate
the language/country for the message bundle. The value of the 'locale'
attribute matches the file naming convention for the basename for the
Google Gadgets localization files.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IDE