00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __EDELIB_NLS_H__
00022 #define __EDELIB_NLS_H__
00023
00024 #include "edelib-global.h"
00025
00026 #ifdef USE_NLS
00027 #include <libintl.h>
00028 #define _(s) gettext(s)
00029 #else
00030 #define textdomain(domain) ((const char*)domain)
00031 #define bindtextdomain(domain, dir) ((const char*)dir)
00032 #define bind_textdomain_codeset(domain, codeset) ((const char*)codeset)
00033 #define _(s) (s)
00034 #endif
00035
00036 #define N_(s) (s)
00037
00038 EDELIB_NS_BEGIN
00039
00058 EDELIB_API char* nls_locale_to_c(void);
00059
00064 EDELIB_API void nls_locale_from_c(char* old);
00065
00086 EDELIB_API void nls_support_init(const char* appname, const char* dir);
00087
00088 EDELIB_NS_END
00089 #endif