00001 /* 00002 * This file is part of browser. 00003 * 00004 * browser 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 * browser 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 00018 // 00019 // Description: internationalistation 00020 // 00021 // Author: ann <ann@localhost>, (C) 2005 00022 // 00023 // Copyright: See COPYING file that comes with this distribution 00024 // 00025 // 00026 #include <stdio.h> 00027 #include <glib.h> 00028 #include <locale.h> 00029 #include <libintl.h> 00030 #include "languages.h" 00031 #include "browserLog.h" 00032 00033 void languagesInit() 00034 { 00035 // look at setup application for howto integrate the 00036 // language support with automake 00037 /* 00038 char* result; 00039 00040 // " " => the local names will be set from the values of the environment variables with 00041 // the same name as the categories or from "LANG" 00042 //setlocale(LC_ALL,""); 00043 00044 // tryout 00045 setlocale(LC_ALL,"nl_NL"); 00046 00047 BR_LOGPRINTF("LCALL: %s",setlocale(LC_ALL,NULL)); 00048 00049 result = bindtextdomain("browser","../data/"); 00050 00051 BR_LOGPRINTF("bindtextdomain: %s",result); 00052 00053 //bind_textdomain_codeset ("messages", "UTF-8"); 00054 textdomain("browser"); 00055 */ 00056 }
1.5.6