File: i18n.txt

package info (click to toggle)
nco 4.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 24,252 kB
  • ctags: 6,921
  • sloc: ansic: 48,409; cpp: 22,351; xml: 16,783; sh: 12,408; perl: 5,453; makefile: 1,940; lex: 1,136; yacc: 605; python: 116; csh: 40
file content (24 lines) | stat: -rw-r--r-- 877 bytes parent folder | download
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