From 77c43468e7d8573011a86b997bf9c72a71d6a8cf Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Thu, 29 Jan 2026 10:38:41 +0600 Subject: [PATCH] Fixed loading translation --- source/ubinstall-gtk-ui-lang.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/ubinstall-gtk-ui-lang.c b/source/ubinstall-gtk-ui-lang.c index ff5332a..ed1df33 100644 --- a/source/ubinstall-gtk-ui-lang.c +++ b/source/ubinstall-gtk-ui-lang.c @@ -196,7 +196,10 @@ void yon_set_locales_list(main_window *widgets){ if (!yon_char_is_empty(config_code)){ char *temp = strstr(config_code,"."); if (temp) temp[0]='\0'; - if (!strcmp(config_code,compare_target)){ + char *compare_lang_ab =yon_locale_get_parameter(compare_target,YON_LOCALE_LANG_AB); + temp = strstr(config_code,"_"); + if (temp) temp[0]='\0'; + if (!strcmp(config_code,compare_lang_ab)){ gtk_widget_realize(widgets->LanguagesTree); GtkTreePath *path = gtk_tree_model_get_path(GTK_TREE_MODEL(widgets->InstallerLanguageList),&iter); gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(widgets->LanguagesTree),path,0,0,0,0);