Are you shure that you have the last version of the plugin?
Check in the lines 227 of the file
http://trac.symfony-project.com/browser/plugins/sfLucenePlugin/trunk/lib/sfLucene.class.php
you will see the exception you are geting, try adding a
var_dump($holder->get('enabled_cultures'));
to see what cultures the plugins activate.
also check around line 180, you will see that this parameter is set .
You can also check if the cache is set apropietly on the
cache/frontend/dev/config/config_search.yml (or similar)
i have an array with....
$config['MyIndex'] = array (
'models' =>
array (....),
'index' =>
array (
'encoding' => 'utf-8',
'cultures' =>
array (
0 => 'es_AR',
),
....
On Feb 5, 2008 7:57 AM, Laelia <[EMAIL PROTECTED]> wrote:
>
> Thanks, James. I did what you said but I'm still getting the same
> error. I don't know where's the problem.
>
>
> On Feb 5, 2:46 am, James <[EMAIL PROTECTED]> wrote:
> > You have to tell your application about the culture as well. In your
> > l18n.yml make sure there is this and it's uncommented.
> >
> > all:
> > default_culture: en
> > source: XLIFF
> > debug: on
> > cache: on
> > untranslated_prefix: "[T]"
> > untranslated_suffix: "[/T]"
> >
> > James
> >
> > On Feb 4, 2008, at 6:35 PM, Laelia wrote:
> >
> >
> >
> > > Thank you but that didn't work.
> >
> > > On Feb 5, 12:06 am, "Luciano A. Andrade" <[EMAIL PROTECTED]>
> > > wrote:
> > >> i think if you need somthing like
> > >> all:
> > >> .actions:
> > >> culture: en
> >
> > >> in the apps/frontend/config/settings.yml.
> >
> > >> On Feb 4, 2008 6:27 PM, Laelia <[EMAIL PROTECTED]> wrote:
> >
> > >>> I'm having a really annoying problem with sfLucenePlugin. I have
> > >>> installed and configured it but when I do:
> >
> > >>> symfony lucene-rebuild frontend
> >
> > >>> I only get this:
> >
> > >>> [sfLuceneException]
> > >>> Culture "en" is not enabled.
> >
> > >>> But IT IS enabled. Here is what I have in my search.yml under index:
> >
> > >>> index:
> > >>> encoding: UTF-8
> > >>> cultures: [en]
> >
> > >>> I've tried changing it for en_US, en_GB, clearing the cache and
> > >>> everything, really. I'm using Symfony 1.0.11. I don't know what
> > >>> more I
> > >>> can do.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---