Fixed localisation

pull/73/head
parent d305e4e81f
commit 058b9c400c

@ -9,9 +9,9 @@ static char *__yon_config_mode=NULL;
void __yon_config_init();
char *yon_char_get_localised_from_lib(char *string){
bind_textdomain_codeset(template_ui_LocaleName,"UTF-8");
textdomain(template_ui_LocaleName);
char *ret = _(string);
bind_textdomain_codeset(template_app_information.app_locale,"UTF-8");
textdomain(template_app_information.app_locale);
return ret;
}
@ -582,7 +582,7 @@ void __yon_config_init(){
template_main_window *yon_ubl_window_setup(){
textdomain (template_ui_LocaleName);
setlocale(LC_ALL,"");
// setlocale(LC_ALL,"");
template_main_window *widgets = setup_window();
yon_ubl_header_setup_resource(widgets->HeadOverlay,widgets->HeadBox,widgets->HeadImage,ui_banner_path);
textdomain(template_ui_LocaleName);

Loading…
Cancel
Save