This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » development » Documentation » edit text in generator.yml
edit text in generator.yml [message #81131] Fri, 03 July 2009 19:50 Go to next message
kacyn  is currently offline kacyn
Messages: 3
Registered: July 2009
Location: Brasil
Junior Member
how to change the text in action generator.yml?
Confused

please help me

index.php/fa/1192/0/

my generator.yml:

generator:
  class: sfPropelGenerator
  param:
    model_class:           sfGuardUser
    theme:                 admin
    non_verbose_templates: true
    with_show:             false
    singular:              ~
    plural:                ~
    route_prefix:          sf_guard_user
    with_propel_route:     1

    config:
      actions:
       _new:    { label:    "Novo usuário" }
       _edit:   { label:    "Editar" }
       _delete: { label:    "Excluir" }

      fields:  
        username:      { label: Nome do usuário }
        last_login:    { label: Último login }
        is_active:     { label: Ativo }
        created_at:    { label: Criado em }
        password:      { label: Senha }
        is_super_admin:      { label: Super Administrador }

      list:
        title: Usuários
        display:        [ =username ,last_login]
        fields:
          last_login: { date_format: dd/MM/yy , name: "Ultimo login" }
          username: { name: usuário }
        object_actions:
         _edit:
         _delete:
      filter:  ~
      form:    ~
      edit:    ~
      new:     
       title:         Novo usuário

  • Attachment: acao.jpg
    (Size: 20.87KB, Downloaded 405 time(s))

Re: edit text in generator.yml [message #81214 is a reply to message #81131 ] Mon, 06 July 2009 15:51 Go to previous messageGo to next message
DBA_Alex  is currently offline DBA_Alex
Messages: 257
Registered: July 2008
Location: North Carolina, USA
Faithful Member
Not sure if this will work, but let's give it a shot:

config:
      actions:
       label:   YourNewLabel
       _new:    { label:    "Novo usuário" }
       _edit:   { label:    "Editar" }
       _delete: { label:    "Excluir" }



Currently Using
---------------------------
Symfony 1.4/Doctrine 1.2
MySQL 5.1
Re: edit text in generator.yml [message #81226 is a reply to message #81214 ] Mon, 06 July 2009 22:27 Go to previous message
kacyn  is currently offline kacyn
Messages: 3
Registered: July 2009
Location: Brasil
Junior Member
Hello DBA_Alex, not worked. But resolvi using i18n. Thank you very much for answer.
Previous Topic:Change the URL format of Getting Started chapters.
Next Topic:Error in documentation - symfony forms in action
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software