gitksensors.c

Go to the documentation of this file.
00001 
00017 #define GITK_LIB_C
00018 #define GITK_SENSORS_C
00019 
00020 #include "gitkincludes.h"
00021 
00030 void gitk_sensor_locale(void) {
00031   gchar *locale;
00032 
00033 #ifdef ENABLE_NLS
00034   //-- at programm startup locale will be set to "C", this initialises it from the env-var in the order LC_ALL, LC_*, LANG 
00035   locale=setlocale(LC_ALL, "");
00036   if(!locale) {
00037     gitk_log1("error initializing locale : %d",errno);
00038     locale="C";
00039   }
00040 #else
00041   locale="C";
00042 #endif
00043   gitk_profile_set_property("locale",locale);
00044 }

Generated on Thu Oct 28 10:59:14 2004 for gitk by doxygen 1.3.6