gettext-sys

Raw FFI bindings for gettext. Please see documentation for details.

Licensing

On platforms that don't have a native gettext implementation, this crate compiles GNU gettext, which is licensed under LGPL. This means you have to abide by LGPL. If you don't want or can't do that, there are two ways out:

  1. in a GNU environment, enable gettext-system feature (see below);
  2. dynamically link to GNU gettext library you obtained by some other means, like a package manager. See environment variables below.

Features

Environment variables

For target-specific configuration, each of these environment variables can be prefixed by an upper-cased target, for example, X86_64_UNKNOWN_LINUX_GNU_GETTEXT_DIR. This can be useful in cross compilation contexts.

This doesn't work on AppVeyor ATM. Use SET GETTEXT_SYSTEM=true instead.