> How about somthing like 'NA1001' for errors and warnings. > > <!--Build Error Strings --> > <data name="NA1001"> > <value>Could not find a '{0}' file in '{1}'</value> > <comment>Some descriptive comment</comment> > </data>
What about this? Could be a valid alternative? Error messages: <data name="Error_FileNotFound"> <value>Could not find a '{0}' file in '{1}'</value> <comment>Some descriptive comment</comment> </data> or <data name="E1001_FileNotFound"> <value>Could not find a '{0}' file in '{1}'</value> <comment>Some descriptive comment</comment> </data> Warning messages: <data name="Warning_Message"> <value>Message text.</value> <comment>Some descriptive comment</comment> </data> or <data name="W1001_Message"> <value>Message text.</value> <comment>Some descriptive comment</comment> </data> Informational messages: <data name="Info_Message"> <value>Message text.</value> <comment>Some descriptive comment</comment> </data> or <data name="I1001_Message"> <value>Message text.</value> <comment>Some descriptive comment</comment> </data> > which would then produce the following output : > --------------------------- > > BUILD FAILED > > Error: NA1001: Could not find a '*.build' file in > 'C:\ianm\dev\test\csharp' > > For more information regarding the cause of the build > failure, run the > build again in debug mode. > > > --------------------------- > > For other messages ( non error ) I don't know - is there a > standard way > of naming thems ? For strings that are *NOT* messages I would say something like <data name="String_WelcomeMessage"> <value>Welcome to NAnt!</value> <comment>Some descriptive comment</comment> </data> or <data name="S1001_WelcomeMessage"> <value>Welcome to NAnt!</value> <comment>Some descriptive comment</comment> </data> > > While we are doing this I'd like to collate a list of the > NAxxx ones so > that we can add a list of NAnt error messages to the documentation.. > > >2. Decide who does what > > > > > Why don't we pick a couple of assemblies each and work through them ? > Ok, just let me know what assemblies you are working on. I'll start with a small one: NAnt.DotNet. > >3. Fill the RESX skeletons > > > >4. Replace hardcoded string with ResourceUtils.GetString("string_id") > > > >5. Update the build files > > > > > That will just be a case of adding the extra <resources> > child elements. > I'll do that today. Ok, j3d. > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. Discover which products truly live up to the > hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396> &op=click > > _______________________________________________ > > nant-developers mailing list nant-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-developers > ---------------------------------- DISCLAIMER ---------------------------------- This message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system.Any unauthorised use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. Banca del Gottardo (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. Under no circumstances this message can be considered as a written acceptance or confirmation of an instruction/order given to Banca del Gottardo. Instructions and orders cannot be accepted or confirmed via e-mail. Banca del Gottardo (or its group companies) does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference. --------------------------------------------------------------------------------- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers