On Sat, 13 May 2006, Marco Ciampa wrote:
> On Fri, May 12, 2006 at 05:07:28PM +0200, Michael Van Canneyt wrote:
> > Not for the initial format either:
> You have to insert the tag:
>
> > <element name="TMyClass.MyMethod">
> > <descr lang="en"
> rdate=200613050135
> >>
> > <p>blah-blah</p>
> > <p>blah2-blah2</p>
> > </descr>
> > <descr lang="de"
> rdate=20061305
> >>
> > <p>blah-blah</p>
> > <p>blah2-blah2</p>
> > </descr>
>
> 1) you have to make the tool that parses the source in search of a
> "ReleaseDATE"
> mismatch to signal the change and 'jumps' to it
A diff will do fine. The tag is just a help to avoid the diff.
> 2) you have to create the macros to update the rdate tag
1. IMHO rdate is not needed. You can use SVN/CVS for that.
2. If it's used anyway:
Writing the rdate tag is _exactly_ 1 line of code in the lazdoc editor.
> 3) you have to check for the validation of the code
This is done anyway in the lazdoc editor. No changes needed.
> and so on... to be short, you find yourself reinventing the wheel of the
> gettext
> platform...
Partly, but we already have the fpdoc format, which does not support .po.
So coding will be needed anyway, and I think that it's better to create
something which 'knows' about fpdoc. You can write pascal code and GUI
programs without Lazarus with any text editor (e.g. notepad). No-one
will argue that it's better to code in Lazarus, because it 'knows'
pascal and it 'knows' form files.
Same goes for docs... I agree that we should make some modifications for
tranlations, but I don't think that .po files are the way to go...
But that is my personal opinion.
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives