first line of translated file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

first line of translated file

Jorge Barros de Abreu
Hi.

There is according about first line in a translated file???

Is "md5=<md5sum> rev=<cvs english revision>" good as was suggested by Paul????

[]´s

Reply | Threaded
Open this post in threaded view
|

Re: first line of translated file

Paul Kienzle
Jorge,

You should also list author, e.g.,

        md5="0e231d7838f1834716d6b723465a7c"; rev="1.1.1"; by="Jorge Barros de
Abreu <[hidden email]>";

This is easy enough to parse in octave:

        try
          fid = fopen(file,'rb'); # md5sum needs identical text, so don't use
'rt'
          eval(fgets(fid));
       if md5 != md5sum(help('fn'))
            warning('translation is out of date; see "help fn");
          end
     catch
          warning('improper header in %s',file);
     end
        show_translated_text(fid)

Note: the above code won't work yet because help('fn') doesn't return
the raw help text.

Also, I hope you are creating a script to generate this line and not
doing it by hand.

- Paul

On Jul 16, 2005, at 1:00 PM, Jorge Barros de Abreu wrote:

> Hi.
>
> There is according about first line in a translated file???
>
> Is "md5=<md5sum> rev=<cvs english revision>" good as was suggested by
> Paul????
>
> []´s
>