thanks to this page : 
http://trac.symfony-project.com/trac/wiki/HowToHandlei18nDbFieldsWithAdminGenerator
i managed to dispaly type_prospect in the good language with the
editing page, but i still have trouble to get the prospect_type in the
write culture on the listing page.
here is what i've done :

in type_prospect/action/action.class.php :
class type_prospectActions extends autotype_prospectActions
{
 //on override la fonction getTypeProspectOrCreate pour utiliser
l'i18n
  protected function getTypeProspectOrCreate ($id = 'id')
  {
    if (!$this->getRequestParameter('id', 0))
    {
      $type_prospect = new TypeProspect();
    }
    else
    {
      $type_prospect = TypeProspectPeer::retrieveByPk($this-
>getRequestParameter($id));
      $this->forward404Unless($type_prospect);
    }
    $type_prospect->setCulture($this->getUser()->getCulture());
    return $type_prospect;
  }
}

and this in the generator.yml :
    list:
      title:           "Liste des types de prospects"
      display:          [id, type]

    edit:
      title:            "edition des types de prospects"
      edit:
      display:          [type]
      fields:
        type:          { params: disabled=false }

the debug show all corrects sql request with corrects value on the
editing page but on the listing page, i have the good sql requests but
with a NULL value for $culture while the depub show that this variable
is good -symfony/user/sfUser/culture: fr_FR)

sorry for my poor english
thx for the help



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