[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: first line of translated file
From: |
Paul Kienzle |
Subject: |
Re: first line of translated file |
Date: |
Sat, 16 Jul 2005 15:08:16 -0400 |
Jorge,
You should also list author, e.g.,
md5="0e231d7838f1834716d6b723465a7c"; rev="1.1.1"; by="Jorge Barros de
Abreu <address@hidden>";
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