This solution did not solved my problem. This feature worked for earlier
version of symfony (1.1.2) and I did not changed configuration for i18n. I
think problem does not related with configuration in the factories.yml

2008/11/4 Kiril Angov <[EMAIL PROTECTED]>

>
> Oh, I see it now. You have to put
>
> database:  "mysql://[EMAIL PROTECTED]/sfshop"
>
> Notice the quotes!
>
> On Tue, Nov 4, 2008 at 8:56 AM, Kiril Angov <[EMAIL PROTECTED]> wrote:
> > Seems like. I would double check if the yaml is valid and does not
> > have any tabs, etc. Also try putting the source with lowecase "mysql".
> > Everything else seems correct. If it still does not work, please
> > report it to http://trac.symfony-project.com
> >
> > Kiril
> >
> > On Mon, Nov 3, 2008 at 11:37 PM, Dmitry Nesteruk <[EMAIL PROTECTED]>
> wrote:
> >> I have problem with extracting strings from php files.
> >>
> >> I have added to factories.yml following configuration
> >>
> >>   i18n:
> >>     class: sfI18N
> >>     param:
> >>       source: MySQL
> >>       database: mysql://[EMAIL PROTECTED]/sfshop
> >>       debug:                off
> >>       untranslated_prefix:  "[T]"
> >>       untranslated_suffix:  "[/T]"
> >>       cache:
> >>         class: sfFileCache
> >>         param:
> >>           automatic_cleaning_factor: 0
> >>           cache_dir:                 %SF_I18N_CACHE_DIR%
> >>           lifetime:                  86400
> >>           prefix:                    %SF_APP_DIR%
> >>
> >> and added tables catalogue and trans_unit to my schema
> >>
> >> After it I trying to execute command from command line
> >>
> >> ./symfony i18n:extract frontend en
> >>
> >> But an error occurred
> >>
> >> "Error in connecting to Array."
> >>
> >> Also displayed warnings
> >>
> >> PHP Warning:  array_map(): An error occurred while invoking the map
> callback
> >> in /www/sfshop/htdocs/lib/symfony/lib/i18n/sfI18N.class.php on line 136
> >> Warning: array_map(): An error occurred while invoking the map callback
> in
> >> /www/sfshop/htdocs/lib/symfony/lib/i18n/sfI18N.class.php on line 136
> >>
> >> Is it bug in the symfony?
> >>
> >> >>
> >>
> >
>
> >
>

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

Reply via email to