gettext: Installation

1 
1 8.3.1 Completing GNU ‘gettext’ Installation
1 -------------------------------------------
1 
1    Once you have received, unpacked, configured and compiled the GNU
1 ‘gettext’ distribution, the ‘make install’ command puts in place the
1 programs ‘xgettext’, ‘msgfmt’, ‘gettext’, and ‘msgmerge’, as well as
1 their available message catalogs.  To top off a comfortable
1 installation, you might also want to make the PO mode available to your
1 Emacs users.
1 
1    During the installation of the PO mode, you might want to modify your
1 file ‘.emacs’, once and for all, so it contains a few lines looking
1 like:
1 
1      (setq auto-mode-alist
1            (cons '("\\.po\\'\\|\\.po\\." . po-mode) auto-mode-alist))
1      (autoload 'po-mode "po-mode" "Major mode for translators to edit PO files" t)
1 
1    Later, whenever you edit some ‘.po’ file, or any file having the
1 string ‘.po.’ within its name, Emacs loads ‘po-mode.elc’ (or
1 ‘po-mode.el’) as needed, and automatically activates PO mode commands
1 for the associated buffer.  The string _PO_ appears in the mode line for
1 any buffer for which PO mode is active.  Many PO files may be active at
1 once in a single Emacs session.
1 
1    If you are using Emacs version 20 or newer, and have already
1 installed the appropriate international fonts on your system, you may
1 also tell Emacs how to determine automatically the coding system of
1 every PO file.  This will often (but not always) cause the necessary
1 fonts to be loaded and used for displaying the translations on your
1 Emacs screen.  For this to happen, add the lines:
1 
1      (modify-coding-system-alist 'file "\\.po\\'\\|\\.po\\."
1                                  'po-find-file-coding-system)
1      (autoload 'po-find-file-coding-system "po-mode")
1 
1 to your ‘.emacs’ file.  If, with this, you still see boxes instead of
1 international characters, try a different font set (via Shift Mouse
1 button 1).
1