Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorTalizmelf
    • CommentTimeSep 29th 2008
     
    How can I tell the framework to pluralize models names in spanish when it's looking for the table in the DB..
    thanks..
    • CommentAuthormasylum
    • CommentTimeSep 29th 2008
     
    I think Akelos don't have a 'clean' way to do this. You can 'hack' Akelos a little bit this way:

    Open lib/AkInflector.php
    Find the pluralize method and add your spanish model names in the irregular array.

    $irregular = array(
    'person' => 'people',
    'man' => 'men',
    'child' => 'children',
    'sex' => 'sexes',
    'move' => 'moves',
    'usuario' => 'usuarios',
    'anacleto' => 'anacletos');

    I hope it works for you! Luck!
    •  
      CommentAuthorTalizmelf
    • CommentTimeSep 29th 2008
     
    yes... I realized akelos does not have a clean way...
    I did a better hack.. I changed the akelos Inflector class name and file name and turn the AkInflexor to AkInflector...
Add your comments
    Username Password
  • Format comments as