Martin Vermeer wrote:

> On Wed, 2004-10-06 at 17:48, Angus Leeming wrote:
>> Martin Vermeer wrote:
>> > So I re-wrote the patch like attached... only problem is,
>> > runparams.lang appears to be empty, no matter what I set as document
>> > language or even "paint" the surroundings of the index inset to
>> > another language.
>> > 
>> > Sure this is supposed to work? Stumped.
>> 
>> Me too, because this is your earlier patch...
> 
> Mysteries, mysteries.
> 
> - Martin

Martin, get a grip! All three are identical.
Angus

Original:
@@ -398,7 +402,10 @@
        lyxerr[Debug::LATEX] << "idx file has been made,"
                " running makeindex on file "
                             <<  f << endl;
-       string tmp = lyxrc.index_command + " ";
+       string tmp = lyxrc.index_command + " ";
+       Buffer * buf = bufferlist.first();
+       string s = (*buf).params().language->babel();
+       tmp = subst(tmp, "$$lang", s);
        tmp += QuoteName(f);
        Systemcall one;
        one.startscript(Systemcall::Wait, tmp);

Version 2:
@@ -398,7 +402,10 @@
        lyxerr[Debug::LATEX] << "idx file has been made,"
                " running makeindex on file "
                             <<  f << endl;
-       string tmp = lyxrc.index_command + " ";
+       string tmp = lyxrc.index_command + " ";
+       Buffer * buf = bufferlist.first();
+       string s = (*buf).params().language->babel();
+       tmp = subst(tmp, "$$lang", s);
        tmp += QuoteName(f);
        Systemcall one;
        one.startscript(Systemcall::Wait, tmp);

Version 3:
@@ -398,7 +402,10 @@
        lyxerr[Debug::LATEX] << "idx file has been made,"
                " running makeindex on file "
                             <<  f << endl;
-       string tmp = lyxrc.index_command + " ";
+       string tmp = lyxrc.index_command + " ";
+       Buffer * buf = bufferlist.first();
+       string s = (*buf).params().language->babel();
+       tmp = subst(tmp, "$$lang", s);
        tmp += QuoteName(f);
        Systemcall one;
        one.startscript(Systemcall::Wait, tmp);


-- 
Angus

Reply via email to