again, ta for pitching in with some help here.

On Feb 2, 8:17 pm, AD7six <[email protected]> wrote:
> On Feb 2, 5:48 am, "#2Will" <[email protected]> wrote:
>
> > Hi Thanks for your response AD7six
>
> > When you say its not an error, do you mean cake is meant to do this,
> > as part of looking for files in a set order till finds a default?
>
> so, you didn't look at what strace does?

i read the wiki page.  it shows all the things the server does to show
the page.  So yeah, i agree its not an error to look for a file, just
mt have noticed its doing it rather a lot.

>
> how is (php equivalent):
>
> if (!file_exists('this one')) {
>   echo 'no file here';
>
> }
>
> an error?

nope


>
>
>
> > I didn't have a locale set (i hadn't really thought to as im not
> > trying to be international) so i put
> > Configure::write('Config.language', 'eng'); into my boot strap.  Guess
> > i need to do this for all my cake projects.
>
> You should find a reason before you do anything - which involves
> looking at hte cake code and finding WHY it's continually looking for
> the same file.

k.  its not finding any messages for default domain, and when that
happens it sets :

$this->__domains[$domain][$this->__lang][$this->category] = array();

which isn't enough to avoid looking again :             if (empty($_this-
>__domains[$domain][$_this->__lang][$_this->category])) {

Is that really the issue though?  why no messages? as there are
messages in my default.po file.

its not finding default.po with the file_exists call. which is odd.
Ive copied the path and it opens the dir in finder.  think ive managed
to spell "default.po" correctly.  Why might that be?

hmm. bit stumped for today.


>
>
>
> > I ran the console i18n thing, and it developed various po files and i
> > have put them into my eng dir.
>
> > Its now looking for core.po and core.mo and can't find them  - Should
> > i be making those? If so, how do i make the core.po and core.mo
> > files?
>
> what version of cake are you using?

1.3.6


>
>
>
> > What could be wrong with cache set up? Ive just uncommented the file
> > cache set up & set disable cache to false in core.php and that seems
> > to be generating lots of cache files as expected. Is it more
> > complicated than this? I don't think it is right?
>
> when you find out why the i18n class is continually looking for the
> same file, you should be able to answer that.



>
>
>
> > This all seems like a lot of set up for a feature im not using. Which
> > makes me think its either a non issue or im doing something
> > fundamentally wrong.
>
> the i18n logic is only invoked if you use it - so somewhere in your
> app or dependencies is a call to __(... . there are __( calls
> throughout the cake core.

yep, and where i have those calls from my bake templates.


>
> AD

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to