Re: [nant-dev] L16N - resx files

2005-02-17 Thread Ian MacLean
Greco Giuseppe wrote: Hmm - well I'd like the keep the number in there - for errors/warnings at least. It will make finding the use of a given error message easier later on. Okay, but tell me which one of the following formats: Could not find a '{0}' file in '{1}' Some descriptive

RE: [nant-dev] L16N - resx files

2005-02-17 Thread Greco Giuseppe
> Hmm - well I'd like the keep the number in there - for > errors/warnings > at least. It will make finding the use of a given error > message easier > later on. Okay, but tell me which one of the following formats: Could not find a '{0}' file in '{1}' Some descriptive comment

Re: [nant-dev] L16N - resx files

2005-02-17 Thread Ian MacLean
Greco Giuseppe wrote: How about somthing like 'NA1001' for errors and warnings. Could not find a '{0}' file in '{1}' Some descriptive comment What about this? Could be a valid alternative? Error messages: Could not find a '{0}' file in '{1}' Some descriptive comment o

RE: [nant-dev] L16N - resx files

2005-02-17 Thread Greco Giuseppe
> How about somthing like 'NA1001' for errors and warnings. > > > > Could not find a '{0}' file in '{1}' > Some descriptive comment > What about this? Could be a valid alternative? Error messages: Could not find a '{0}' file in '{1}' Some descriptive comment

Re: [nant-dev] L16N - resx files

2005-02-16 Thread Ian MacLean
Giuseppe Greco wrote: Ian, attached to this email you'll find a tar.gz containing the RESX skeletons. Could you please integrate them into the project and import them into CVS? The next steps would be: 1. Decide a standard for string IDs How about somthing like 'NA1001' for errors and warnings.

[nant-dev] L16N - resx files

2005-02-16 Thread Giuseppe Greco
Ian, attached to this email you'll find a tar.gz containing the RESX skeletons. Could you please integrate them into the project and import them into CVS? The next steps would be: 1. Decide a standard for string IDs 2. Decide who does what 3. Fill the RESX skeletons 4. Replace hardcoded strin

RE: [nant-dev] L16N

2005-02-16 Thread Byrd, Payton
Title: RE: [nant-dev] L16N Acronyms are horrible class names and are frowned upon by every modern coding standard.  When acronyms must be used, they should be used with other nouns that describe what the class is.  A utilities class is a utilities class is a utilities class, so ResourceUtils

Re: [nant-dev] L16N

2005-02-16 Thread Ian MacLean
Greco Giuseppe wrote: ... will work just fine. Just a question: does the element automatically embed the defalut resources into the assembly, or is the element still necessary? If the name of the .resx file contains a culture part it will package it up with any

RE: [nant-dev] L16N

2005-02-15 Thread Greco Giuseppe
> > > ... > > > > > > will work just fine. > Just a question: does the element automatically embed the defalut resources into the assembly, or is the element still necessary? j3d. -- DISCLAIMER ---

Re: [nant-dev] L16N

2005-02-15 Thread Ian MacLean
Ian MacLean wrote: Ian MacLean wrote: output="${build.dir}/${package.name}/lib/${culture}/${assembly}.resource s.dll" culture="${culture}"> ... value="-res:${build.dir}/${package.name}/lib/${default.resources}" /> we can use

RE: [nant-dev] L16N

2005-02-15 Thread Greco Giuseppe
Ian, I'm at work too... so I cannot start right now... j3d. > -Original Message- > From: Ian MacLean [mailto:[EMAIL PROTECTED] > Sent: mercoledì, 16 febbraio 2005 08:40 > To: Greco Giuseppe > Cc: nant-developers@lists.sourceforge.net > Subject: Re: [nant-dev] L16

Re: [nant-dev] L16N

2005-02-15 Thread Ian MacLean
Ian MacLean wrote: output="${build.dir}/${package.name}/lib/${culture}/${assembly}.resource s.dll" culture="${culture}"> ... value="-res:${build.dir}/${package.name}/lib/${default.resources}" /> we can use the child element for

Re: [nant-dev] L16N

2005-02-15 Thread Ian MacLean
The first step would be to create the resource files (NAnt.Core.en-US.resx, NAnt.DotNet.Task.en-US.resx, etc.), we can just start with NAnt.Core.resx for the default ( US english ) language. then replace hardcoded strings with RM.GetString("Message_Id") - or whatever name you want, and finally a

Re: [nant-dev] L16N

2005-02-15 Thread Ian MacLean
Greco Giuseppe wrote: I figured that one out :). We could probably call it NAnt.Core.ResourceUtils or somthing like that. That's up to you... but such a name is a little bit too long and uncomfortable to be used often... you think ? Show me some classes in the core framework that have 2 l

RE: [nant-dev] L16N

2005-02-15 Thread Greco Giuseppe
Ian, > >You're right... attached to this email you'll find a better > version of > >RM.cs (RM stands for [R]esource[M]anager). > > > > > > > I figured that one out :). We could probably call it > NAnt.Core.ResourceUtils or somthing like that. That's up to you... but such a name is a little b

Re: [nant-dev] L16N

2005-02-15 Thread Ian MacLean
Greco Giuseppe wrote: Ian, looks ok - but why not get AssemblyName dynamically using : Assembly.GetCallingAssembly() ? then you only need to define the RM class once in NAnt.Core. You're right... attached to this email you'll find a better version of RM.cs (RM stands for [R]esource[M]anage

RE: [nant-dev] L16N

2005-02-15 Thread Greco Giuseppe
Ian, > looks ok - but why not get AssemblyName dynamically using : > Assembly.GetCallingAssembly() ? > > then you only need to define the RM class once in NAnt.Core. You're right... attached to this email you'll find a better version of RM.cs (RM stands for [R]esource[M]anager). Let me know if

RE: [nant-dev] L16N

2005-02-15 Thread Greco Giuseppe
Ian, > looks ok - but why not get AssemblyName dynamically using : > Assembly.GetCallingAssembly() ? > > then you only need to define the RM class once in NAnt.Core. > It depends if you plan to create separate resource files for the different NAnt assemblies. Furthermore, it depends also if yo

Re: [nant-dev] L16N

2005-02-15 Thread Ian MacLean
Greco Giuseppe wrote: Mono source code does not contain documentation comments; XML stubs are generated via reflection with assembler.exe/updater.exe. Miguel told me that they want to keep user documentation separated from source code, meaning the /doc feature of the C# compiler is useless...

RE: [nant-dev] L16N

2005-02-15 Thread Greco Giuseppe
Hi Ian, > looks like the xmldoc attribute you mention in a later email > is the way > to get around this. We would invoke ndoc once for each > translated language. Exactly... > although we should be able to knock up a script to generate > stubs based > on the original english doc. > Of co

Re: [nant-dev] L16N

2005-02-14 Thread Ian MacLean
Giuseppe Greco wrote: Do you plan to localize NAnt? I think it would be a good idea. If yes, how are you going to manage translations? Actually, compiled assemblies and XML files generated by the C# compiler are kept togheter in the same directory, letting NDoc find them and do its job. looks

[nant-dev] L16N

2005-02-11 Thread Giuseppe Greco
Hi all, Do you plan to localize NAnt? If yes, how are you going to manage translations? Actually, compiled assemblies and XML files generated by the C# compiler are kept togheter in the same directory, letting NDoc find them and do its job. In order to be able to translate, let's say, the SDK doc