libvirt/src/storage
Eric Blake 981d2cdab4 maint: improve i18n on non-Linux
Per the gettext developer:
http://lists.gnu.org/archive/html/bug-gnu-utils/2010-10/msg00019.html
http://lists.gnu.org/archive/html/bug-gnu-utils/2010-10/msg00021.html

gettext() doesn't work correctly on all platforms unless you have
called setlocale().  Furthermore, gnulib's gettext.h has provisions
for setting up a default locale, which is the preferred method for
libraries to use gettext without having to call textdomain() and
override the main program's default domain (virInitialize already
calls bindtextdomain(), but this is insufficient without the
setlocale() added in this patch; and a redundant bindtextdomain()
in this patch doesn't hurt, but serves as a good example for other
packages that need to bind a second translation domain).

This patch is needed to silence a new gnulib 'make syntax-check'
rule in the next patch.

* daemon/libvirtd.c (main): Setup locale and gettext.
* src/lxc/lxc_controller.c (main): Likewise.
* src/security/virt-aa-helper.c (main): Likewise.
* src/storage/parthelper.c (main): Likewise.
* tools/virsh.c (main): Fix exit status.
* src/internal.h (DEFAULT_TEXT_DOMAIN): Define, for gettext.h.
(_): Simplify definition accordingly.
* po/POTFILES.in: Add src/storage/parthelper.c.
2010-11-17 10:12:57 -07:00
..
parthelper.c maint: improve i18n on non-Linux 2010-11-17 10:12:57 -07:00
storage_backend_disk.c maint: use gnulib configmake rather than open-coding things 2010-11-17 08:58:58 -07:00
storage_backend_disk.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_fs.c deprecate fclose() and introduce VIR_{FORCE_}FCLOSE() 2010-11-16 21:13:29 -05:00
storage_backend_fs.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_iscsi.c deprecate fclose() and introduce VIR_{FORCE_}FCLOSE() 2010-11-16 21:13:29 -05:00
storage_backend_iscsi.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_logical.c eliminate possibility of a double-closed file descriptor 2010-10-28 11:43:16 -04:00
storage_backend_logical.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_mpath.c bye to close(), welcome to VIR_(FORCE_)CLOSE() 2010-11-09 15:48:48 -05:00
storage_backend_mpath.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_scsi.c deprecate fclose() and introduce VIR_{FORCE_}FCLOSE() 2010-11-16 21:13:29 -05:00
storage_backend_scsi.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend.c deprecate fclose() and introduce VIR_{FORCE_}FCLOSE() 2010-11-16 21:13:29 -05:00
storage_backend.h build: make cpp indentation conform 2010-05-29 09:45:21 +02:00
storage_driver.c maint: use gnulib configmake rather than open-coding things 2010-11-17 08:58:58 -07:00
storage_driver.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00