daemon: Internationalize guix-daemon.
authorLudovic Courtès <ludo@gnu.org>
Wed, 10 Jun 2015 15:48:16 +0000 (17:48 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 10 Jun 2015 19:58:16 +0000 (21:58 +0200)
commit7887bcbf56f8ef154ba987e67e457c8695254fa5
tree138845ef178a846e452174811dde755cb21b9423
parent3dbb0e5f8b9e8445818ca31861488666b948ce50
daemon: Internationalize guix-daemon.

* nix/nix-daemon/guix-daemon.cc (n_, _): New macros.
  (guix_textdomain): New variable.
  (doc): Use 'n_'.
  (options): Likewise, and lowercase messages.
  (argp): Add initializer for 'argp_domain' field.
  (parse_opt): Use '_' for messages.
  (main): Likewise, and add calls to 'setlocale', 'bindtextdomain', and
  'textdomain'.
* daemon.am (guix_daemon_CPPFLAGS): Add -DLOCALEDIR.
* po/guix/Makevars (XGETTEXT_OPTIONS): Remove '--language' option.  Add
  '--keyword=n_'.
* po/guix/POTFILES.in: Add guix-daemon.cc.
daemon.am
nix/nix-daemon/guix-daemon.cc
po/guix/Makevars
po/guix/POTFILES.in