Use proper NLS macros and detection (so the message translation works again).

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@145 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
Milan Broz
2009-11-16 20:10:20 +00:00
parent 6c900eea72
commit df389199d0
4 changed files with 35 additions and 23 deletions

View File

@@ -5,26 +5,7 @@
# include <config.h>
#endif
#if HAVE_LOCALE_H
# include <locale.h>
#endif
#if !HAVE_SETLOCALE
# define setlocale(Category, Locale) do { } while (0)
#endif
#ifdef ENABLE_NLS
# include <libintl.h>
# define _(Text) gettext (Text)
#else
# undef bindtextdomain
# define bindtextdomain(Domain, Directory) do { } while (0)
# undef textdomain
# define textdomain(Domain) do { } while (0)
# undef dcgettext
# define dcgettext(Domainname, Text, Category) Text
# define _(Text) Text
#endif
#define N_(Text) (Text)
#include "lib/nls.h"
#define DEFAULT_CIPHER "aes"
#define DEFAULT_LUKS_CIPHER "aes-cbc-essiv:sha256"