There's a section on Maypole::Manual::Beer, saying:

Maypole uses the column_names method to map between the names of the columns in the database to the names it displays in the default templates. This is provided by Maypole::Model::Base, and normally, it does a pretty good job; it turns model_number into "Model Number", for instance, but there was no way it could guess that abv was an abbreviation. Since it returns a hash, the easiest way to correct it is to construct a hash consisting of the bits it got right, and then override the bits it got wrong:
    package BeerDB::Beer;
sub column_names {
(shift->SUPER::column_names(), abv => "A.B.V.")
}

but  I did not tried it myself. Please let me know if it works for you, since this question is going to arise for me as well.

On 11/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Subj.
For example I got table 'beer' with columns 'name', 'price'. I need generated
by Maypole web-page containts 'пиво' instead 'beer' and 'марка',  'цена'
instead 'name', 'price'.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Maypole-users mailing list
Maypole-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maypole-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Maypole-users mailing list
Maypole-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to