spullara/mustache.java — pull request #39 by gw0 (2012-07-12 18:42:15+00:00)
Title: Added a translation function based on localized ResourceBundles

I think it would be good to also have some useful general Mustache.java functions available in case someone wants to use them...

This one implements a translation function based on standard ResourceBundles where it replaces your translation labels with the translation for given locale.

(Why is it called `TranslationBundleFunction`? Because someone may some day implement functions using alternative translation mechanisms like eg. `TranslationGettextFunction` (https://code.google.com/p/gettext-commons/)...)
(Why is it a Function and not a Pragma? Because now you can also use Mustache.java syntax in translations.)