1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
# $Header: /cvsroot/nco/nco/doc/i18n.txt,v 1.4 2012/09/11 22:28:22 zender Exp $
# Purpose: NCO Internationalization (i18n)
# Instructions/examples at
# Linux Journal 200211 p. 57--59
# http://www.linuxjournal.com/article/6176
# http://www.debian.org/doc/manuals/intro-i18n/ch-library.en.html
# Generate *.po file for all NCO operators:
cd ~/nco/src/nco
xgettext --default-domain=nco --extract-all --output=nco.po nc*.c
# Search source for translatable strings:
cd ~/nco/src/nco
etags *.[chly]
# Open .po file in Emacs
# Hit `,' (po-tags-search) to start searching through candidates
# `M-,' Marks last string with _()
# `M-.' Marks last string with preferred keyword, e.g., gettext()
# Compile PO (portable object) file to MO (message object or machine object) file:
msgfmt --output-file=${HOME}/share/locale/es/LC_MESSAGES/nco.mo --statistics ${HOME}/nco/src/nco/nco.po
|