From 058b9c400cd5c354cdf2d453384ce0a83721fc4d Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Mon, 26 Jan 2026 11:52:47 +0600 Subject: [PATCH] Fixed localisation --- source/libublsettingsui-gtk3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/libublsettingsui-gtk3.c b/source/libublsettingsui-gtk3.c index a334b85..bbecadb 100644 --- a/source/libublsettingsui-gtk3.c +++ b/source/libublsettingsui-gtk3.c @@ -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);