On Sun, January 21, 2007 04:23, Allin Cottrell wrote:
On Sun, 21 Jan 2007, Sven Schreiber wrote:
> In relation to the outfile command: the message 'Closed output file
> <x>'
> seems to be not marked for translation?
In this case, I'd have been quite easy to submit a patch yourself, and go
through the related thrill. Quick guide (assuming you're using linux and
you have cvs access):
Move to the root directory of you gretl source tree. The relevant string
occurs in both the cli and gui versions, so it must be either in a file
in lib/src/ or on plugin/. You can look for it by doing
grep -n "Close output file" lib/src/*.c plugin/*.c
and you would have seen
lib/src/interact.c:3005: pprintf(prn, "Closed output file
'%s'\n", outname);
Ok, found. So you open up an editor of your choice (Allin and I both use
emacs, but it's fairly irrelevant here), you navigate to line 3005 of
lib/src/interact.c, and you mark the string for translation by changing
pprintf(prn, "Closed output file '%s'\n", outname);
to
pprintf(prn, _("Closed output file '%s'\n"), outname);
This will mark the string for translation. Now compile gretl to make sure
everything works. If there are no problems, you can obtain a diff file by
doing (again, from your root gretl dir)
cvs diff -u -rHEAD lib/src/interact.c > ~/mypatch.diff
and you should find, in your home directory, a file mypatch.diff you can
sen to Allin.
Riccardo (Jack) Lucchetti
Dipartimento di Economia
FacoltĂ di Economia "G. FuĂ "
Ancona