WIP language save fixes

pull/196/head
parent b03c8811dd
commit 2fde35ed32

@ -1754,3 +1754,27 @@ msgstr ""
msgid "Selecting software modules to install from the repository. Internet access is required" msgid "Selecting software modules to install from the repository. Internet access is required"
msgstr "" msgstr ""
msgid "Autorun of application"
msgstr ""
msgid "Configuring autorun application"
msgstr ""
msgid "Application:"
msgstr ""
msgid "Group:"
msgstr ""
msgid "Application"
msgstr ""
msgid "Group"
msgstr ""

@ -3650,3 +3650,21 @@ msgstr ""
msgid "Selecting software modules to install from the repository. Internet access is required" msgid "Selecting software modules to install from the repository. Internet access is required"
msgstr "Выбор модулей программного обеспечения для установки из репозитория. Требуется доступ в Интернет" msgstr "Выбор модулей программного обеспечения для установки из репозитория. Требуется доступ в Интернет"
msgid "Autorun of application"
msgstr "Автозапуск приложений"
msgid "Configuring autorun application"
msgstr "Настройка автозапуска приложений"
msgid "Application:"
msgstr "Приложение:"
msgid "Group:"
msgstr "Группа:"
msgid "Application"
msgstr "Приложение"
msgid "Group"
msgstr "Группа"

@ -67,10 +67,20 @@ void on_locale_accept(GtkWidget *self, language_window *window){
return; return;
} }
char *locale_str = config(locale_parameter); char *locale_str = config(locale_parameter);
GtkTreeIter iter; GtkTreeIter iter,itar;
int size; int size;
config_str parsed = yon_char_parse(final,&size,","); config_str parsed = yon_char_parse(final,&size,",");
for (int i=0;i<size;i++){ for (int i=0;i<size;i++){
int found = 0;
for_iter(GTK_TREE_MODEL(widgets->LanguageList),&itar){
char *checktarget;
gtk_tree_model_get(GTK_TREE_MODEL(widgets->LanguageList),&itar,3,&checktarget,-1);
if (!strcmp(checktarget,parsed[i])){
found = 1;
break;
}
}
if (found) continue;
char *locale_str = g_hash_table_lookup(main_config.languages,parsed[i]); char *locale_str = g_hash_table_lookup(main_config.languages,parsed[i]);
if (yon_char_is_empty(locale_str)) continue; if (yon_char_is_empty(locale_str)) continue;
int parameter_size; int parameter_size;

@ -134,6 +134,7 @@ void yon_navigation_buttons_set_sensetiveness(main_window *widgets){
case YON_PAGE_COMPLETION: case YON_PAGE_COMPLETION:
gtk_button_set_label(GTK_BUTTON(widgets->NextButton),RESTART_LABEL); gtk_button_set_label(GTK_BUTTON(widgets->NextButton),RESTART_LABEL);
gtk_widget_set_sensitive(widgets->BackButton,0); gtk_widget_set_sensitive(widgets->BackButton,0);
gtk_widget_set_sensitive(widgets->CancelInstallButton,0);
gtk_widget_set_sensitive(widgets->NextButton,1); gtk_widget_set_sensitive(widgets->NextButton,1);
break; break;
case YON_PAGE_SECTIONS: case YON_PAGE_SECTIONS:
@ -155,6 +156,7 @@ void yon_navigation_buttons_set_sensetiveness(main_window *widgets){
case YON_PAGE_KEYBOARD: case YON_PAGE_KEYBOARD:
case YON_PAGE_USERS: case YON_PAGE_USERS:
case YON_PAGE_STARTUP: case YON_PAGE_STARTUP:
case YON_PAGE_APP_STARTUP:
case YON_PAGE_LANGUAGE: case YON_PAGE_LANGUAGE:
case YON_PAGE_BOOTLOADER: case YON_PAGE_BOOTLOADER:
case YON_PAGE_PACKAGES: case YON_PAGE_PACKAGES:

Loading…
Cancel
Save