[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PO files and Emacs

From: Karl Eichwalder
Subject: PO files and Emacs
Date: Tue, 12 Mar 2002 09:44:12 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.2.50 (i686-pc-linux-gnu)

> Yes (although it might take a few days until I get to it).


> However, I'm confused: should it be called po.el or po-mode.el?  Are we
> talking about 2 different files here?

I think we should start with something small (po.el as send in my last
mail); in po-mode.el is much too much compatibility code.

For more info, please read this message again (it is also available as
a part of:

-=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=-
Date: Thu, 24 May 2001 01:04:34 +0200 (CEST)
From: Bruno Haible <address@hidden>
To: address@hidden, Karl Eichwalder <address@hidden>,  
        Eli Zaretskii <address@hidden>, address@hidden,
        Bruno Haible <address@hidden>,
        Pablo Saratxaga <address@hidden>,
        Primoz Peterlin <address@hidden>,
        =?iso-8859-1?q?Fran=E7ois?= Pinard <address@hidden>
Subject: Re: PO files and Emacs (coding:)   
Message-ID: <address@hidden>

Dear Emacs maintainers,

To make Karl Eichwalder's proposition more concrete.

PO file support consists of two parts:

  1) Make sure that Emacs displays the file in the right encoding.
     All PO files contains multilingual text; the right choice of
     coding-system is essential for them.

  2) A special editing mode for use by translators (po-mode.el by
     Francois Pinard et al.)

I would like to push part 1) into Emacs. Part 2) is probably best
maintained as part of gettext.

There are probably fewer users who need 2) than 1) - it is perfectly
well possible (though tedious) to edit PO files in text-mode.

The support consists of three parts.
1) A new file, attached to this mail.

2001-05-23  Bruno Haible  <address@hidden>

        * lisp/textmodes/po.el: New file, extracted from GNU gettext's

2) Make sure that loaddefs.el scans that new file for autoloads.

I don't know how to do this.

3) Put the following form into startup.el or any other files that is
included by startup.el in all cases:

(modify-coding-system-alist 'file "\\.po[tx]?\\'\\|\\.po\\."

-=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=-

Linux frechet 2.4.16-4GB #1 Wed Dec 12 13:42:58 GMT 2001 i686 unknown
  9:37am  up 40 days, 23:01, 16 users,  load average: 0.07, 0.39, 0.73
                                             work    :      address@hidden
Karl Eichwalder                              home    : address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]