Le 23/01/2014 10:19, Jean-Pierre Chrétien a écrit :
In footnote #2, section 4.1.1, a translator (Adrien or Siegfried, I
guess, I didn't add added it myself) a warning about Emacs edition of po
files, as Emacs does not know (up to my knowledge) to handle files
encoded in Unicode, something like "Emacs contains a `mode' for editing
po files, as well, but beware, po files are Unicode-encoded."

According to
http://www.gnu.org/software/gettext/manual/html_node/Installation.html#Installation
the right thing to add in .emacs for recent emacsen is

(autoload 'po-mode "po-mode"
          "Major mode for translators to edit PO files" t)
(setq auto-mode-alist (cons '("\\.po\\'\\|\\.po\\." . po-mode)
                             auto-mode-alist))
(autoload 'po-find-file-coding-system "po-compat")
(modify-coding-system-alist 'file "\\.po\\'\\|\\.po\\."
                            'po-find-file-coding-system)

JMarc

Reply via email to