Bonjour Necho,
If you mastered i18n with the 1.2 generator, I'd be really glad if you could
help me: I'm trying to get a hand on the i18n fields from within the form
section of the generator.yml, but fail to do so:
schema.yml:
post:
id: ~
author_id: ~
post_i18n:
title: { type: varchar(255) }
generator.yml:
config:
actions: ~
fields: ~
list:
display: [ id, title ] # this works
filter: ~
form:
display: [ id, title ] # error: no 'title' widget exposed in the form
edit: ~
new: ~
Does not work. The embedi18n method works, but is really not satisfying,
since only the embedded forms are controllable through the generator.yml,
not their fields. How can I do?
Thanks!
Philibert
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Necho
Sent: Wednesday, November 19, 2008 18:10
To: symfony users
Subject: [symfony-users] Re: I18N for Fields title - How to ?
Salut fréderic!
Peux tu me donner ton fichier generator.yml??
J'ai réussi à bien maitriser l'internationalisation
On 19 nov, 17:51, fredlab <[EMAIL PROTECTED]> wrote:
> Hey,
>
> Continuing my tests on the new admin generator, I decided to try to
> translate field names.
>
> For example, in my author table, I have :
>
> Id
> Name
> birthdate
>
> If I use the 1.2 admin generator, the form display the table titles. I
> found how to change them for the current language but how do you
> create a french file for example with the translation.
>
> I tried : symfony i18n:extract en
>
> But it gives :
>
> >> i18n extracting i18n strings for the "backend" application
> >> i18n found "0" new i18n strings
> >> i18n found "0" old i18n strings
>
> Thanks to all the persons providing help on that framework. I think
> that with low PHP knowledge, you can create small but usefull smart
> applications including small ones for a small entreprise
>
> A bientôt,
>
> Frédéric
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---