I tried M-x po-mode
, but it is not installed. I have tried to find a gettext
or po-mode
package under M-x list-packages
as well as M-x package-install
, but I couldn't find either. I have gettext and relevant libraries, as shown here:
[my-pc]/home/lucas$ whereis gettext
gettext: /usr/bin/gettext /usr/bin/gettext.sh /usr/lib/gettext /usr/share/gettext /usr/share/man/man1/gettext.1.gz /usr/share/man/man3/gettext.3.gz /usr/share/info/gettext.info.gz
[my-pc]/home/lucas$ whereis poedit
poedit: /usr/bin/poedit /usr/lib/poedit /usr/share/poedit /usr/share/man/man1/poedit.1.gz
I have reviewed the emacs PO mode docs and relevant install instructions, but I still cannot find a way to install po-mode on emacs. Any suggestions?
Here is more system info, if interested:
[my-pc]/home/lucas$ uname -a
Linux my-pc 4.2.2-1-ARCH #1 SMP PREEMPT Tue Sep 29 22:21:33 CEST 2015 x86_64 GNU/Linux
'M-x version'
GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.6) of 2015-09-09 on foutrelis
Update
It looks like the elisp files should be installed with the gettext package on my OS, but I don't think my installation includes them. I searched /usr/share/gettext
but did not find anything:
[my-pc]/home/lucas$ tree /usr/share/gettext/ | grep emacs
├── po-emacs-x.css
├── po-emacs-xterm16.css
├── po-emacs-xterm256.css
├── po-emacs-xterm.css
[my-pc]/home/lucas$ tree /usr/share/gettext/
├── ABOUT-NLS
├── archive.dir.tar.xz
├── config.rpath
├── gettext.h
├── intl
│ ├── bindtextdom.c
│ ├── config.charset
│ ├── COPYING.LIB
│ ├── dcgettext.c
│ ├── dcigettext.c
│ ├── dcngettext.c
│ ├── dgettext.c
│ ├── dngettext.c
│ ├── eval-plural.h
│ ├── explodename.c
│ ├── export.h
│ ├── finddomain.c
│ ├── gettext.c
│ ├── gettextP.h
│ ├── gmo.h
│ ├── hash-string.c
│ ├── hash-string.h
│ ├── intl-compat.c
│ ├── intl-exports.c
│ ├── l10nflist.c
│ ├── langprefs.c
│ ├── libgnuintl.in.h
│ ├── libintl.rc
│ ├── loadinfo.h
│ ├── loadmsgcat.c
│ ├── localcharset.c
│ ├── localcharset.h
│ ├── locale.alias
│ ├── localealias.c
│ ├── localename.c
│ ├── lock.c
│ ├── lock.h
│ ├── log.c
│ ├── Makefile.in
│ ├── ngettext.c
│ ├── os2compat.c
│ ├── os2compat.h
│ ├── osdep.c
│ ├── plural.c
│ ├── plural-exp.c
│ ├── plural-exp.h
│ ├── plural.y
│ ├── printf-args.c
│ ├── printf-args.h
│ ├── printf.c
│ ├── printf-parse.c
│ ├── printf-parse.h
│ ├── ref-add.sin
│ ├── ref-del.sin
│ ├── relocatable.c
│ ├── relocatable.h
│ ├── setlocale.c
│ ├── textdomain.c
│ ├── threadlib.c
│ ├── tsearch.c
│ ├── tsearch.h
│ ├── vasnprintf.c
│ ├── vasnprintf.h
│ ├── vasnwprintf.h
│ ├── verify.h
│ ├── VERSION
│ ├── version.c
│ ├── wprintf-parse.h
│ ├── xsize.c
│ └── xsize.h
├── javaversion.class
├── msgunfmt.tcl
├── po
│ ├── boldquot.sed
│ ├── en@boldquot.header
│ ├── en@quot.header
│ ├── insert-header.sin
│ ├── Makefile.in.in
│ ├── Makevars.template
│ ├── quot.sed
│ ├── remove-potcdate.sin
│ └── Rules-quot
├── projects
│ ├── GNOME
│ │ ├── team-address
│ │ ├── teams.html
│ │ ├── teams.url
│ │ └── trigger
│ ├── index
│ ├── KDE
│ │ ├── team-address
│ │ ├── teams.html
│ │ ├── teams.url
│ │ └── trigger
│ ├── team-address
│ └── TP
│ ├── team-address
│ ├── teams.html
│ ├── teams.url
│ └── trigger
└── styles
├── po-default.css
├── po-emacs-x.css
├── po-emacs-xterm16.css
├── po-emacs-xterm256.css
├── po-emacs-xterm.css
└── po-vim.css
7 directories, 100 files
It also seems like the archlinux gettext package does not include any elisp files, shown here: https://www.archlinux.org/packages/core/x86_64/gettext/ (file list is at the bottom)
For the meantime, I may just manually install the source elsewhere.