/* XLyrics by xiaosuo * Homepage gentux.blogchina.com * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef _INTERNAL_H #define _INTERNAL_H #ifdef HAVE_CONFIG_H # include #endif #include #ifdef ENABLE_NLS # include # define _(x) gettext(x) # ifdef gettext_noop # define N_(String) gettext_noop (String) # else # define N_(String) (String) # endif #else # define N_(String) String # define _(x) (x) # define ngettext(Singular, Plural, Number) ((Number == 1) ? (Singular) : (Plural)) #endif /* check the code and convert locale code to utf8 */ extern gchar* locale2utf8(const gchar* data); extern gchar* gb23122utf8(const gchar* data); extern gchar* locale2gb2312(const gchar *data); extern gchar* utf82locale(const gchar* data); #endif