From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Masterson Newsgroups: gmane.emacs.help Subject: Re: dir(Top) is in French ?!? Date: Mon, 28 Apr 2014 11:29:05 -0700 Organization: Aioe.org NNTP Server Message-ID: <8661lt71fy.fsf@gmail.com> References: <86vbtup2ko.fsf@gmail.com> <867g695pi3.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398709833 10247 80.91.229.3 (28 Apr 2014 18:30:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2014 18:30:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 28 20:30:26 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WeqJr-0000oc-FN for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Apr 2014 20:30:23 +0200 Original-Received: from localhost ([::1]:45388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeqJr-00009t-39 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Apr 2014 14:30:23 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 46 Original-NNTP-Posting-Host: FBbxX6uxje+SXmxpIOXVag.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (cygwin) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:QsjCEmdC4NHuUSSk61hMga/IvJs= Original-Xref: usenet.stanford.edu gnu.emacs.help:205163 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97429 Archived-At: Eli Zaretskii writes: >> From: David Masterson >> Date: Mon, 28 Apr 2014 10:32:20 -0700 >> >> Eli Zaretskii writes: >> >> > This is not an Emacs problem. This is how the install-info.exe >> > program (part of the Texinfo package) works: it localizes these >> > introductory instructions to the Info system when it installs Info >> > files. >> >> I don't have the source code installed, but I don't believe that is >> true. > >>>From install-info.c: > > desc = open (dirfile, O_RDONLY); > if (desc < 0 && errno == ENOENT) > { > FILE *f; > char *readerr = strerror (errno); > close (desc); > f = fopen (dirfile, "w"); > if (f) > { > fprintf (f, _("This is the file .../info/dir, which contains the\n\ > topmost node of the Info hierarchy, called (dir)Top.\n\ > The first time you invoke Info you start off looking at this node.\n\ > %c\n\ > %s\tThis is the top of the INFO tree\n\ > \n\ > [...] > > As you probably know, text that is in _() will be replaced by gettext > with its localized translation. But this only applies if there is *no* dir file. My problem is that, when there are dir files, the header information is pulled from the first dir file in Info-directory-list. If it is wrong (as in this case), then the result is wrong. The resulting dir file is not localized. -- David Masterson Programmer At Large