Date: Wed, 26 Mar 2008 18:55:36 -0700 (PDT)
Local: Wed, Mar 26 2008 9:55 pm
Subject: Re: .po files not being read suddenly
Stranger and stranger. I decided to disable Auth because it was that
that I'd added to the site before i18n stopped working. As soon as I did that, my Configure::read('Config.language') now shows the new language setting. Why would Auth be screwing around with Config.language? Unfortunately, I'm still not seeing anything translated ;-(
I'm using cake_1.2.x.x_24.01.2008, btw.
As an aside, does anyone know how to globally disable Auth without
>allow(...) calls in 5 other controllers.
On Mar 26, 9:37 pm, "foo.log...@gmail.com" <foo.log...@gmail.com>
wrote: > I think I've narrowed down the problem if not the solution. Looking
> through i18n.php I noticed that the getInstance() method checks the > session, but only if the language is not found in the core config. > function &getInstance() {
> $language = Configure::read('Config.language');
> $instance[0]->l10n->get($language);
> }
> Since I'm doing language switching this seems backwards to me. If it's
> Trying my initial hunch, I modified the method to have:
> if (!empty($_SESSION['Config']['language']))
> else
> }
> This seems more reasonable to me because my language switching code (a
> But the debug() is still showing it's empty, however. So, I put
> Array
> When I print the output from Configure::read('Config.language') on the
> Does anyone have any thoughts on why the session appears to be empty
> On Mar 26, 12:59 am, "foo.log...@gmail.com" <foo.log...@gmail.com>
> > I got some L10n stuff working yesterday but it now seems to have
> > locale/eng/LC_MESSAGES/default.po
> > Later on, I noticed that I wasn't seeing any changes when switching
> > I have caching disabled and I've made no other changes to core.
> > Any idea what I may have done (or left out) to cause this? You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||