Le mercredi 14 novembre 2012 à 06:38 +0100, Michael Vehrs a écrit : ... > > Thanks for your advises. > > I need an object's ID to fixe the plural form, so I added a getName > > method to the goodsType class. > > Is it the right way ? > > > > Please find the cleanup in attachment (vs.r10286). > > > > Regards. > > > > That is unnecessary, since the FreeColGameObjectType class, from > which > GoodsType is derived, already has the getNameKey method. At present, > I > think the model classes should not even provide these keys, and that > Messages should handle all these cases with only the object ID as > input. > But that would require some major changes, I fear. > > > Regards > > Michael
Hello, Ok for the heritage of FreeColGameObjectType; I certainly missing something but I need "model.goods.fish.name" to manage the plural form and the method Messages.getName(goodsType) return "Fish". So can you show me please, how to do that properly ? Thanks in advance. -- Thierry ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Freecol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freecol-developers
