[Solar-talk] Solar_Auth possible bug and questions

Rodrigo Moraes rodrigo.moraes at gmail.com
Thu Jul 13 10:44:13 PDT 2006


On 7/13/06, Paul M Jones wrote:
> I think this is 5.1.2 specific.  I do very similar things on my Unix
> machines with 5.1.4 and don't get that error.  See this bug in PHP:
>
>      http://bugs.php.net/bug.php?id=36872

I tried de code mentioned on the bug report under 5.1.2, got the
error, upgraded to 5.1.4, no more error. I hope it is what happened.

> (1) In your bootstrap front index.php script, immediately after you
> call Solar::start(), call Solar::setLocale('pt_BR').
>
> (2) In your Solar.config.php file, set $config['Solar']
> ['locale_code'] = 'pt_BR'.

Ah, ok. I guess first option will work if you let users choose a
locale in their preferences, or you want to set it according to IP
ranges etc. In the first case, set the locale right after the user is
authenticated may work for me.

> Warning: you may have just volunteered to write new pt_BR
> translations.  ;-)

Ah, I'll send you a bunch of pt_BR files very soon. Actually I've
started a mini Solar app, "Localize", that maps 'Locale' directories,
searches for locale files and compare them with en_US to see what is
missing. I think it'll be useful for upgrades or, after I add some
forms, as a tool to easily generate locale files (since their are
spreaded in the entire Solar directory, this is not so easy). The
report helped me to find the locale files and comparisons helped me to
update the (single) pt_BR one. But the primary purpose was to learn
how to make a Solar app. :)

> However, I don't know how to implement it; I will read the
> link you provided and see what I can do, but I'd appreciate patches/
> pointers/etc to help out.  :-)

I'll work on it and bring some ideas.

cheers,
rodrigo moraes / brazil


More information about the solar-talk mailing list