[Solar-talk] Formatting locale strings
Andreas Ravnestad
andreas.ravnestad at gmail.com
Thu Jun 7 17:32:43 PDT 2007
Rodrigo Moraes wrote:
> 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.
>
Thanks alot Rodrigo! I'll see if I can get permission to use SVN-code
and all will be well.
And if I'm really lucky, Paul might be planning a release soon too :)
-AR
More information about the solar-talk
mailing list