[wp-hackers] Re: [wp-polyglots] no-code-duplication i18n for
nbachiyski at developer.bg
Fri Mar 7 11:36:02 GMT 2008
2008/3/7, Lionel Elie Mamane <lionel at mamane.lu>:
> Assuming we decide we don't want to-be-translated strings to contain
> variable references, only to be literal strings (which is what I would
> recommend), there are several classes of reactions the translation
> code can have when it encounters a to-be-translated string that
> contains variable references:
> - fail noisily; e.g. return an error and a big fat error message of
> the form "I refuse to translate a non-literal string; change it to
> a format string in a sprintf()".
This one -- we have enough experience with printf templates around
other i18n work. Let's keep it simple.
More information about the wp-hackers