Closure Compiler has a plugin api that lets you add a message bundle.
http://closure-compiler.googlecode.com/svn/trunk/javadoc/com/google/javascript/jscomp/MessageBundle.html
If you're using the compiler's Java API, setting the message bundle
should work just like any other compiler option.
Google has some proprietary translation formats with implementations
of MessageBundle. No one has contributed implementations for open
formats.
> 2. how can the method getMsg actually be used?
The compiler will replace the getMsg call with the translations in your bundle.
> 3. how is code like goog.i18n.MessageFormat or goog.i18n.pluralRules
> related/supported in the os version already?
you can set goog.LOCALE at compile-time with the flag
--define="goog.LOCALE=XX"
or by just modifying it locally.
If you're using advanced optimizations, the compiler will strip out
all the code for other locales.