Wednesday, February 2, 2011

Re: Locale files No such file or directory error apparently causing speed issues.

On Feb 2, 5:48 am, "#2Will" <willjbar...@gmail.com> 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?

how is (php equivalent):

if (!file_exists('this one')) {
echo 'no file here';
}

an error?

>
> 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.

>
> 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?
>
> 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.

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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: