[Solar-talk] Formatting locale strings
Rodrigo Moraes
rodrigo.moraes at gmail.com
Thu Jun 7 16:24:46 PDT 2007
On 6/7/07, Andreas Ravnestad wrote:
> Is there a pretty way to add formatting to locale strings (without
> resorting to (s)printf)? Maybe the getText helper could support string
> formatting some time in the distant future?
Solar_Base::locale() now has a third parameter: $replace, which is an
array used to format the resulting locale string using vsprintf().
This is only in SVN, but it is pretty simple to implement even if you
don't want to adopt SVN. These are the classes you need, and I don't
remember of anything that could break code based on Solar 0.27.1 for
them:
Solar_Base
Solar_Locale
Solar_View_Helper_GetText
Solar_View_Helper_GetTextRaw
So I suggest you to use the SVN version of these classes instead.
-- rodrigo
More information about the solar-talk
mailing list