From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/8744 Path: main.gmane.org!not-for-mail From: Ulrich Drepper Newsgroups: gmane.emacs.gnus.general Subject: Re: Internationalization Date: 12 Nov 1996 02:57:23 +0100 Message-ID: References: Reply-To: drepper@ipd.info.uni-karlsruhe.de (Ulrich Drepper) NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.93) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035148870 14122 80.91.224.250 (20 Oct 2002 21:21:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:21:10 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , ding@ifi.uio.no, Ulrich Drepper Return-Path: Original-Received: (qmail 32094 invoked from smtpd); 12 Nov 1996 02:22:36 -0000 Original-Received: from ifi.uio.no (0@129.240.64.2) by deanna.miranova.com with SMTP; 12 Nov 1996 02:22:35 -0000 Original-Received: from nz11.rz.uni-karlsruhe.de (nz11.rz.uni-karlsruhe.de [129.13.64.7]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id ; Tue, 12 Nov 1996 02:59:59 +0100 Original-Received: from ipd.info.uni-karlsruhe.de (actually i44ms.info.uni-karlsruhe.de) by nz11.rz.uni-karlsruhe.de with SMTP (PP); Tue, 12 Nov 1996 02:57:43 +0100 Original-Received: from sl-kb05.rz.uni-karlsruhe.de (drepper@pool11.ilk.de [194.121.104.140]) by ipd.info.uni-karlsruhe.de (8.6.4/8.6.4) with ESMTP id CAA24988; Tue, 12 Nov 1996 02:57:37 +0100 Original-Received: (from drepper@localhost) by sl-kb05.rz.uni-karlsruhe.de (8.8.2/8.7.5/ud-960406) id CAA31608; Tue, 12 Nov 1996 02:57:24 +0100 Original-To: pinard@iro.umontreal.ca X-fingerprint: BE 3B 21 04 BC 77 AC F0 61 92 E4 CB AC DD B9 5A In-Reply-To: pinard@progiciels-bpi.ca's message of 11 Nov 1996 16:35:44 -0500 Original-Lines: 47 X-Mailer: Red Gnus v0.60/XEmacs 19.14 X-MIME-Autoconverted: from 8bit to quoted-printable by sl-kb05.rz.uni-karlsruhe.de id CAA31608 Xref: main.gmane.org gmane.emacs.gnus.general:8744 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:8744 pinard@progiciels-bpi.ca (Fran=E7ois Pinard) writes: > * Step 5. Recreate a better gnus.pot file through the following comman= d: >=20 > xgettext -drgnus -k_ -kN_ -kmessage *.el >=20 > and send it to me (or to gnu-translation@gnu.ai.mit.edu, it's the same > address) the resulting gnus.pot file under a name like rgnus-0.63.pot. > I'll then submit it to all translation teams for getting the translatio= n > of all messages done. When I get translated PO files, I check them for > formal correctness and, if OK, you semi-automatically get a copy. >=20 > Oops! This is not right. xgettext has not been changed yet to handle > Emacs LISP sources. OK, for now, just stick to the rgnus.po file which > was generated while you were marking strings in step 3. I'll push so > xgettext gets adapted sooner, or I'll do it myself if it slows us down. I'm still not sure how we should solve the problem of parsing ELisp code. For bash and gawk it is/will be solved by having the programs themselves having the possibility to dump the strings: bash --dump-strings --po-format sh-script will produce a well-formed PO file which can be read by xgettext. So xgettext will simply call bash and read the result in a pipe. The same will hopefully happen with gawk. But what is about Emacs? Is it reasonable to call Emacs this way and if yes will RMS agree to do these changes? Of course the LISP syntax isn't really difficult to parse but exceptions like doc strings complicate things again. Is the scanner/parser code separateble? > Nevertheless, an Emacs LISP implementation of gettext would be very use= ful > as an interim measure, even if partial, before it gets integrated in Em= acs > for real. If you do so, please keep in close contact with me, as it wo= uld > be a wonderful thing for the GNU translation project. Let me know before you start this, too. It shouldn't be too difficult to write the function is ELisp (at least if there is the possibility to access the .mo files which are binary files). In any case I should tell something about the upper-level things, how to find the catalog file, the string itself etc. -- Uli --------------. drepper@cygnus.com ,-. Rubensstrasse 5 Ulrich Drepper \ ,--------------------' \ 76149 Karlsruhe/Germany Cygnus Support `--' drepper@gnu.ai.mit.edu `------------------------