bobthecow/mustache.php — Issue #69: internationalization with Mustache and sprintf
Author: gingerlime
Created: 2012-01-03 20:45:53+00:00
State: open

Sorry if this might seem as a double-post from stack-overflow (http://stackoverflow.com/questions/8695970/mustache-i18n-with-parameters/) but I'm really struggling with this and would appreciate any pointers.

I've read about higher order sections, and even though lambdas generally confuse me, I think I managed to implement something basic to do i18n of simple text with Mustache (I can copy&paste the code, but it's already on SO).

However, I'd really like to find a good (or reasonable) replacement for things like `sprintf(__('translated %s with parameters'), $string)`

Can anybody suggest something? Did I miss something obvious (or not so obvious)?