From 5997bb592a91bef4eb789376a3cd7fde0cceecff Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Tue, 24 Dec 2024 15:08:04 +0600 Subject: [PATCH] Fixed localisation at saving window --- source/libublsettingsui-gtk3-save.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libublsettingsui-gtk3-save.c b/source/libublsettingsui-gtk3-save.c index 4674f4d..2b27eb0 100644 --- a/source/libublsettingsui-gtk3-save.c +++ b/source/libublsettingsui-gtk3-save.c @@ -446,6 +446,7 @@ gboolean yon_save_window_destroy_if_empty(template_saving_window *window){ } void yon_save_window_set_status(template_saving_window *window,char *path,YON_CONFIG_TYPE type){ + textdomain(template_ui_LocaleName); window->type=type; window->custom_save_path=path; if (type==YON_CONFIG_BOTH){ @@ -458,6 +459,7 @@ void yon_save_window_set_status(template_saving_window *window,char *path,YON_CO } else if (type==YON_CONFIG_CUSTOM){ yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(window->StatusBox),"savingTarget",SAVING_CUSTOM_STATE_LABEL(path),BACKGROUND_IMAGE_INFO_TYPE); } + textdomain(template_app_information.app_locale); } template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){ @@ -523,7 +525,5 @@ template_saving_window *yon_saving_window_new(){ g_signal_connect(G_OBJECT(window->CancelButton),"clicked",G_CALLBACK(on_subwindow_close),NULL); g_signal_connect(G_OBJECT(window->SaveButton),"clicked", G_CALLBACK(on_save_parameters),window); g_signal_connect(G_OBJECT(window->ToggleCell),"toggled", G_CALLBACK(on_save_window_parameter_switched),window); - textdomain(template_ui_LocaleName); - textdomain(template_app_information.app_locale); return window; } \ No newline at end of file