On Fri, 21 Dec 2007 15:59:58 -0500 Hans Dieter Pearcey <[EMAIL PROTECTED]> 
wrote: 

HDP> On Fri, Dec 21, 2007 at 02:56:07PM -0600, Ted Zlatanov wrote:
>> I couldn't find an example in the docs of how to set up
>> Rose::DB::Object::Loader with a properly pluralizing convention manager.
>> I tried the following, but I keep getting a class called "Currencie"
>> from a table called "currencies" for example.  I must be missing
>> something.

>> # Set the new singular-to-plural function
>> $cm->singular_to_plural_function(\&Lingua::EN::Inflect::PL);

HDP> you want to change plural_to_singular_function (currencies -> Currency), 
not
HDP> the other way around.

Unfortunately Lingua::EN::Inflect only goes from singular to plural.
Any advice or am I stuck making my own word lists?

Thanks
Ted

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to