00001 /* 00002 * This file is part of settings. 00003 * 00004 * settings is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * settings is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00031 #ifndef languages_h 00032 #define languages_h 00033 00034 00035 #ifdef __cplusplus 00036 extern "C" { 00037 #endif /* __cplusplus */ 00038 00039 #include "config.h" 00040 #include "gettext.h" 00041 00042 #define _(String) gettext (String) 00043 00044 #define DEFAULT_LOCALE "en_US" 00045 #define LOCALE_LIB_DIR "/usr/lib/locale" 00046 00047 // Definition of an iLiad locale 00048 typedef struct 00049 { 00050 const gchar *code; // Language code, e.g. "nl_NL" 00051 const gchar *name; // Name in the local language, e.g. "Nederlands" 00052 const gchar *long_name; // e.g. "Set English as the language for your iLiad" 00053 } iLiad_locale_t; 00054 00055 guint find_installed_locales(iLiad_locale_t** locale_installed_tbl); 00056 void free_installed_locales(iLiad_locale_t** locale_installed_tbl, gint locale_installed_num); 00057 00065 void languagesInit(); 00066 00067 #ifdef __cplusplus 00068 } 00069 #endif /* __cplusplus */ 00070 00071 00072 #endif //languages_h
1.5.6