edelib/Nls.h

00001 /*
00002  * $Id: Nls.h 2937 2009-11-13 11:47:30Z karijes $
00003  *
00004  * Locale functions
00005  * Copyright (c) 2005-2007 edelib authors
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public License
00018  * along with this library. If not, see <http://www.gnu.org/licenses/>.
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

Generated on Wed Dec 16 14:31:52 2009 for edelib by  doxygen 1.5.2