[MonoDevelop] Re: translation strings patches

Rafael Teixeira monoman at gmail.com
Mon Nov 28 17:00:52 EST 2005


it seems MonoDevelop is using Mono.GetOptions for command-line
arguments processing, what means annotations/Attributes are used to
put descriptions and other help information that is automatically
collected and formatted for the user.


currently Mono.GetOptions doesn't support translation, I didn't have
the time to implement it yet. The basic idea, is to keep the text in
the attributes as the base-default-text, and tell Mono.GetOptions
which catalog to use.
Besides the code to do the translations, what is missing is teaching
the tools that collect the strings to also collect those with the
pattern Option("xxx" or Option(number,"xxx", barring that, maybe write
some simple regex script to do that in separate.

For the specific case I think MD misses this line in AssemblyInfo.cs:

[assembly: Mono.UsageComplement("file [file2 ...]")]

as it is able to open a given set of files of any of the supported formats.


On 11/28/05, Lluis Sanchez <lluis at ximian.com> wrote:
> Hi,
> The most basic rules for submiting patches are:
> * Submit one single patch file per assembly directory (that is, one
> single patch for every subdirectory below Core/src or Extras).
> * The patch must include a new entry in the corresponding ChangeLog file
> (notice that there is only one ChangeLog file per assembly).
> And please, if you are going to send several patches wait until you have
> all of them and do it at once.
> > sending few more patches for missing translation strings.
> > ChangeLog is simple for all of them: "Make some strings
> > translatable." :)
> It's simple, but somebody has to do it, and that somebody is the patch
> writer :)
> >
> > What about localizing options for commandline?
> > Should we make them translatable in Options attributes?
> Which Options attribute?
> > And what to do with [assembly: Mono.UsageComplement("")] can we use
> > the same translatable way as for the rest?
> We can't use Gettext.GetString in an attribute.
> > And by the way this attribute is missing in AssemblyInfo and we are
> > getting this not user friendly output:
> >
> > monodevelop --help
> > MonoDevelop.IdeApplication - Mike Krueger 2000-2003
> > The MonoDevelop IDE
> > Usage: MonoDevelop.Ide [options] Add a [assembly:
> > Mono.UsageComplement("Here goes the usage clause complement")] to your
> > assembly
> I don't know where this info comes from.
> >
> >
> > Kind Regards,
> >
> > --
> > David Makovský <yakeen at sannyas-on.net>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list

Rafael "Monoman" Teixeira
I'm trying to become a "Rosh Gadol" before my own eyes.
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!

More information about the Monodevelop-list mailing list