Go to the first, previous, next, last section, table of contents.


Completing GNU gettext Installation

Once you have received, unpacked, configured and compiled the GNU gettext distribution, the `make install' command puts in place the programs xgettext, msgfmt, gettext, and msgmerge, as well as their available message catalogs. To top off a comfortable installation, you might also want to make the PO mode available to your GNU Emacs users.

During the installation of the PO mode, you might want modify your file `.emacs', once and for all, so it contains a few lines looking like:

(setq auto-mode-alist
      (cons '("\\.po[tx]?\\'\\|\\.po\\." . po-mode) auto-mode-alist))
(autoload 'po-mode "po-mode")

Later, whenever you edit some `.po', `.pot' or `.pox' file, or any file having the string `.po.' within its name, Emacs loads `po-mode.elc' (or `po-mode.el') as needed, and automatically activates PO mode commands for the associated buffer. The string PO appears in the mode line for any buffer for which PO mode is active. Many PO files may be active at once in a single Emacs session.

If you are using Emacs version 20 or better, and have already installed the appropriate international fonts on your system, you may also manage for the these fonts to be automatically loaded and used for displaying the translations on your Emacs screen, whenever necessary. For this to happen, you might want to add the lines:

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

to your `.emacs' file.


Go to the first, previous, next, last section, table of contents.