Norbert Preining wrote:

1) The header of the info files is in German:

Dies ist


fixed.

Can you send a patch?

2) Error messages by makeinfo are printed in English, which I noticed by
  running "makeinfo --html" from the lispref directory in the Emacs
  sources.


Hmm, this is strange, very strange. Do you have some experience with
locales? What could be wrong with this function:
char *
getdocumenttext (const char *msgid)
{
  char *save_locale;
  char *s;
  save_locale = setlocale(LC_ALL, NULL);
  setlocale(LC_ALL, interface_language);
  s = gettext(msgid);
  setlocale(LC_ALL, save_locale);
  return(s);
}

The libc info page for setlocale tells you what's wrong with it:

     The string returned by `setlocale' can be overwritten by subsequent
     calls, so you should make a copy of the string (*note Copying and
     Concatenation::) if you want to save it past any further calls to
     `setlocale'.  (The standard library is guaranteed never to call
     `setlocale' itself.)

With that information, it's easy to correct your getdocumenttext
function:

char *
getdocumenttext (const char *msgid)
{
  char *old_locale, *save_locale;
  char *s;
  old_locale = setlocale(LC_ALL, NULL);
  save_locale = strdup (old_locale);
  setlocale(LC_ALL, interface_language);
  s = gettext(msgid);
  setlocale(LC_ALL, save_locale);
  return(s);
}

With that, I got makeinfo's error messages in German. :-)

Best wishes,
            Sven






--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to