http://www.doctrine-project.org/projects/orm/1.2/docs/manual/behaviors/en#core-behaviors:i18n

The default length for the lang column generated by Doctrine is 2, I think
that's the reason of your problem.

So, you can just use the language in symfony if you don't need to provide
different translations for the same language, or you can override this
setting to make the lang column containing 5 characters by doing this :
XXXXX:
  actAs:
    I18n:
      fields: [xxx, yyy, zzz]
      length: 5
<http://www.doctrine-project.org/projects/orm/1.2/docs/manual/behaviors/en#core-behaviors:i18n>
-- 
Pierre-Yves


2010/10/26 Tom Haskins-Vaughan <[email protected]>

> Hi all,
>
> I apologise if this has been dealt with in the past.
>
> In the Gentle Introduction to symfony it says:
>
>  "Keeping both the language and the country in the culture
>  is necessary because you may have a different French translation
>  for users from France, Belgium, or Canada, and a different Spanish
>  content for users from Spain or Mexico."
>
> I have created some dictionaries for en_US and fr_FR to use the i18n
> helper __() without any problem. But when I try to use Doctrine
> translations, I am limited to the language (i.e. en or fr). Am I doing
> something wrong or is it just not possible to use the "full" culture
> to translate doctrine records?
>
> Any pointers much appreciated.
>
> Thanks,
>
> Tom
> --
> The Harvest Cloud
> Who says buying local food can't be easy?
>
> Find out more @ www.harvestcloud.com
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> 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]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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