diff --git a/source/ubl-settings-update.c b/source/ubl-settings-update.c index b2376bf..6d5ca16 100644 --- a/source/ubl-settings-update.c +++ b/source/ubl-settings-update.c @@ -4,6 +4,88 @@ config main_config; //functions +void yon_save_interface(main_window *widgets){ + if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->AutoUpdateCheck))){ + yon_config_register(AUTOUPDATE,AUTOUPDATE_command,"enable"); + } + int save_mode = gtk_combo_box_get_active(GTK_COMBO_BOX(widgets->UpdateModeCombo)); + switch (save_mode){ + case 0: yon_config_remove_by_key(AUTOUPDATE_mode); + break; + case 1:yon_config_register(AUTOUPDATE_mode,AUTOUPDATE_mode_command,"modsys"); + break; + case 2:yon_config_register(AUTOUPDATE_mode,AUTOUPDATE_mode_command,"modules"); + break; + case 3:yon_config_register(AUTOUPDATE_mode,AUTOUPDATE_mode_command,"system"); + break; + } + + if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->UpdateIntervalDefaultCheck))){ + yon_config_remove_by_key(AUTOUPDATE_interval); + } else { + char *int_str = yon_char_from_long(gtk_spin_button_get_value(GTK_SPIN_BUTTON(widgets->UpdateIntervalSpin))); + char *interval = NULL; + switch(gtk_combo_box_get_active(GTK_COMBO_BOX(widgets->UpdateIntervalCombo))){ + case 0: interval = "boost"; + break; + case 1: interval = yon_char_append(int_str,"min"); + break; + case 2: interval = yon_char_append(int_str,"h"); + break; + case 3: interval = yon_char_append(int_str,"d"); + break; + case 4: interval = yon_char_append(int_str,"M"); + break; + } + yon_config_register(AUTOUPDATE,AUTOUPDATE_command,interval); + + + } + if (gtk_combo_box_get_active(GTK_COMBO_BOX(widgets->UpdateRepoListCombo))){ + yon_config_remove_by_key(AUTOUPDATE_repos); + } else { + char *repos = ""; + GtkTreeIter iter; + for_iter(GTK_TREE_MODEL(widgets->UpdateRepoList),&iter){ + char *target; + int status; + gtk_tree_model_get(GTK_TREE_MODEL(widgets->UpdateRepoList),&iter,0,&status,1,&target,-1); + if (status){ + char *temp = yon_char_unite(repos,!yon_char_is_empty(repos)?",":"",target,NULL); + if (!yon_char_is_empty(repos)) free(repos); + repos = temp; + } + } + yon_config_register(AUTOUPDATE_repos,AUTOUPDATE_repos_command,repos); + } + + if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->RepositoriesRepoListConfigurationCheck))){ + if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->RepositoriesDisableSystemReposCheck))){ + yon_config_register(REPOSITORY_parameter,REPOSITORY_parameter_command,"only"); + } else { + yon_config_register(REPOSITORY_parameter,REPOSITORY_parameter_command,"enable"); + } + } else { + yon_config_register(REPOSITORY_parameter,REPOSITORY_parameter_command,"disable"); + } + if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->PublicationConnectPublicCheck))){ + if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->RecieveDBFromNetCheck))){ + yon_config_register(REPOPUBLIC_NET_parameter,REPOPUBLIC_NET_parameter_command,"db"); + } else { + yon_config_register(REPOPUBLIC_NET_parameter,REPOPUBLIC_NET_parameter_command,"enable"); + } + } else { + yon_config_register(REPOPUBLIC_NET_parameter,REPOPUBLIC_NET_parameter_command,"disable"); + } + if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->MirrorPublicCheck))){ + yon_config_register(REPOPUBLIC_CACHE,REPOPUBLIC_CACHE_command,"enable"); + } else { + yon_config_register(REPOPUBLIC_CACHE,REPOPUBLIC_CACHE_command,"disable"); + + } + +} + void yon_load_proceed(YON_CONFIG_TYPE type){ yon_config_clean(); if (!yon_char_is_empty(config_get_default_command)) @@ -46,193 +128,213 @@ void yon_interface_update(main_window *widgets){ gtk_list_store_clear(widgets->PublicationList); gtk_list_store_clear(widgets->WebPublicationList); int size; - char *repo_config = config(REPOSITORY_parameter); - if (!yon_char_is_empty(repo_config)){ - if (!strcmp(repo_config,"disable")){ - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->RepositoriesRepoListConfigurationCheck),0); - } else if (!strcmp(repo_config,"enable")){ - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->RepositoriesRepoListConfigurationCheck),1); - }else if (!strcmp(repo_config,"only")){ - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->RepositoriesDisableSystemReposCheck),1); - } - } - - config_str repos = yon_config_get_all_by_key(REPOSITORY_search,&size); GtkTreeIter iter; - for (int i=0;iReposList,&iter); - char *temp = yon_char_replace(parsed[0],",","\n"); - free(parsed[0]); - parsed[0] = temp; - gtk_list_store_set(widgets->ReposList,&iter,0,cur_size>3&&!strcmp(parsed[3],"")?1:0,1,key,2,parsed[0],3,cur_size>1?parsed[1]:"",4,cur_size>2?parsed[2]:"",-1); - + { + char *repo_config = config(REPOSITORY_parameter); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->RepositoriesRepoListConfigurationCheck),0); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->RepositoriesDisableSystemReposCheck),0); + if (!yon_char_is_empty(repo_config)){ + if (!strcmp(repo_config,"disable")){ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->RepositoriesRepoListConfigurationCheck),0); + } else if (!strcmp(repo_config,"enable")){ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->RepositoriesRepoListConfigurationCheck),1); + }else if (!strcmp(repo_config,"only")){ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->RepositoriesDisableSystemReposCheck),1); + } } - free(key); - free(current); - yon_char_parsed_free(parsed,cur_size); - } - yon_char_parsed_free(repos,size); - char *publish = config(REPOPUBLIC_NET); - if (publish) { - int cur_size; - config_str parsed = yon_char_parse(publish,&cur_size,","); - if (cur_size){ - if (!strcmp(parsed[0],"disable")||!strcmp(parsed[0],"no")||!strcmp(parsed[0],"none")){ + config_str repos = yon_config_get_all_by_key(REPOSITORY_search,&size); + for (int i=0;iReposList,&iter); + char *temp = yon_char_replace(parsed[0],",","\n"); + free(parsed[0]); + parsed[0] = temp; + gtk_list_store_set(widgets->ReposList,&iter,0,cur_size>3&&!strcmp(parsed[3],"")?1:0,1,key,2,parsed[0],3,cur_size>1?parsed[1]:"",4,cur_size>2?parsed[2]:"",-1); - } else if (!strcmp(parsed[0],"enable")||!strcmp(parsed[0],"yes")){ - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->PublicationConnectPublicCheck),1); - } - if (cur_size>1&&!strcmp(parsed[1],"db")){ - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->RecieveDBFromNetCheck),1); - } - if (cur_size>2){ - for (int i=2;iPublicationList,&iter); - gtk_list_store_set(widgets->PublicationList,&iter,1,parsed[i],-1); - } } + free(key); + free(current); yon_char_parsed_free(parsed,cur_size); } + yon_char_parsed_free(repos,size); } - - char *mirror = config(REPOPUBLIC_CACHE); - if (!yon_char_is_empty(mirror)){ - if (!strcmp(mirror,"enable")||!strcmp(mirror,"yes")){ - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->MirrorPublicCheck),1); - } else if (!strcmp(mirror,"disable")||!strcmp(mirror,"no")||!strcmp(mirror,"none")){ - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->MirrorPublicCheck),0); + { + int repos_size; + config_str publish_repos = yon_config_load(get_publication_list_command,&repos_size); + for (int i=0;iPublicationList,&iter); + gtk_list_store_set(widgets->PublicationList,&iter,0,1,1,publish_repos[i],-1); } - } - - config_str mirror_list = yon_config_get_all_by_key(REPOPUBLIC_CACHE_search,&size); - if (size){ - for (int i=0;iMirrorList,&iter); + char *publish = config(REPOPUBLIC_NET_parameter); + if (publish) { int cur_size; - config_str parsed = yon_char_parse(cur,&cur_size,","); + config_str parsed = yon_char_parse(publish,&cur_size,","); if (cur_size){ - gtk_list_store_set(widgets->MirrorList,&iter,0,key,2,yon_char_parsed_to_string(parsed,cur_size,"\n"),-1); + if (!strcmp(parsed[0],"disable")||!strcmp(parsed[0],"no")||!strcmp(parsed[0],"none")){ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->PublicationConnectPublicCheck),0); + } else if (!strcmp(parsed[0],"enable")||!strcmp(parsed[0],"yes")){ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->PublicationConnectPublicCheck),1); + } + if (cur_size>1&&!strcmp(parsed[1],"db")){ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->RecieveDBFromNetCheck),1); + } else { + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->RecieveDBFromNetCheck),0); + } + if (cur_size>2){ + for (int i=2;iPublicationList,&iter); + gtk_list_store_set(widgets->PublicationList,&iter,1,parsed[i],-1); + } + } + yon_char_parsed_free(parsed,cur_size); } } } - - char *autoupdate_config = config(AUTOUPDATE); - if (!yon_char_is_empty(autoupdate_config)&&!strcmp(autoupdate_config,"enable")){ - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->AutoUpdateCheck),1); - } - - autoupdate_config = config(AUTOUPDATE_mode); - if (!yon_char_is_empty(autoupdate_config)){ - if (!strcmp(autoupdate_config,"modsys")){ - gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateModeCombo),1); - } else if (!strcmp(autoupdate_config,"modules")){ - gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateModeCombo),2); - } else if (!strcmp(autoupdate_config,"system")){ - gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateModeCombo),3); + { + char *mirror = config(REPOPUBLIC_CACHE); + if (!yon_char_is_empty(mirror)){ + if (!strcmp(mirror,"enable")||!strcmp(mirror,"yes")){ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->MirrorPublicCheck),1); + } else if (!strcmp(mirror,"disable")||!strcmp(mirror,"no")||!strcmp(mirror,"none")){ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->MirrorPublicCheck),0); + } } - } - char *autoupdate_repos = config(AUTOUPDATE_repos); - if (!yon_char_is_empty(autoupdate_repos)){ - int parsed_size; - GtkTreeIter iter; - config_str parsed = yon_char_parse(autoupdate_repos,&parsed_size,","); - for (int i=0;iUpdateRepoList),&iter); - gtk_list_store_set(widgets->UpdateRepoList,&iter,1,parsed[i],-1); + config_str mirror_list = yon_config_get_all_by_key(REPOPUBLIC_CACHE_search,&size); + if (size){ + for (int i=0;iMirrorList,&iter); + int cur_size; + config_str parsed = yon_char_parse(cur,&cur_size,","); + if (cur_size){ + gtk_list_store_set(widgets->MirrorList,&iter,0,key,2,yon_char_parsed_to_string(parsed,cur_size,"\n"),-1); + } + } } - yon_char_parsed_free(parsed,parsed_size); } - - autoupdate_config = config(AUTOUPDATE_interval); - if (!yon_char_is_empty(autoupdate_config)){ - if (!strcmp(autoupdate_config,"boot")){ - gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateIntervalCombo),0); + { + char *autoupdate_config = config(AUTOUPDATE); + if (!yon_char_is_empty(autoupdate_config)&&!strcmp(autoupdate_config,"enable")){ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->AutoUpdateCheck),1); } else { - if (strstr(autoupdate_config,"min")){ - gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateIntervalCombo),1); - } else if (autoupdate_config[strlen(autoupdate_config)-1]=='h'){ - gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateIntervalCombo),2); - } else if (autoupdate_config[strlen(autoupdate_config)-1]=='d'){ - gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateIntervalCombo),3); - } else if (autoupdate_config[strlen(autoupdate_config)-1]=='M'){ - gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateIntervalCombo),4); - } - gtk_spin_button_set_value(GTK_SPIN_BUTTON(widgets->UpdateIntervalSpin),atol(autoupdate_config)); - } - } + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->AutoUpdateCheck),0); + } - config_str web_publish = yon_config_get_all_by_key(REPOPUBLIC_WEB_search,&size); - for (int i=0;iWebPublicationList,&iter); - char *cur = yon_char_new(web_publish[i]); - char *key = yon_char_divide_search(cur,"=",-1); - free(yon_char_divide_search(key,"[",-1)); - key[strlen(key)-1]='\0'; - char *path = NULL; - if (!strstr(key,":")){ - path=key; - key=NULL; + autoupdate_config = config(AUTOUPDATE_mode); + if (!yon_char_is_empty(autoupdate_config)){ + if (!strcmp(autoupdate_config,"modsys")){ + gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateModeCombo),1); + } else if (!strcmp(autoupdate_config,"modules")){ + gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateModeCombo),2); + } else if (!strcmp(autoupdate_config,"system")){ + gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateModeCombo),3); + } } else { - path = yon_char_divide_search(key,":",-1); + gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateModeCombo),0); } - int repos_size; - config_str repos = yon_char_parse(key,&repos_size,","); - - gtk_list_store_set(widgets->WebPublicationList,&iter,1,path,2,yon_char_parsed_to_string(repos,repos_size,"\n"),-1); - int cur_size; - config_str parsed = yon_char_parse(cur,&cur_size,":"); - if (cur_size){ - if (!strcmp(parsed[0],"enable")||!strcmp(parsed[0],"yes")){ - gtk_list_store_set(widgets->WebPublicationList,&iter,0,1,-1); - } else if (!strcmp(parsed[0],"disable")||!strcmp(parsed[0],"no")||!strcmp(parsed[0],"none")) { - gtk_list_store_set(widgets->WebPublicationList,&iter,0,0,-1); - } - if (cur_size>1&&!strcmp(parsed[1],"listing")){ + int repos_size; + config_str overall_repos = yon_config_load(get_publication_list_command,&repos_size); + char *autoupdate_repos = config(AUTOUPDATE_repos); + if (repos_size){ + int parsed_size; + GtkTreeIter iter; + config_str parsed = yon_char_parse(autoupdate_repos,&parsed_size,","); + for (int i=0;iUpdateRepoList),&iter); + gtk_list_store_set(widgets->UpdateRepoList,&iter,1,overall_repos[i],0,!parsed_size||(parsed_size&&yon_char_parsed_check_exist(overall_repos,repos_size,overall_repos[i])>-1)?1:0,-1); } - if (cur_size>2&&!yon_char_is_empty(parsed[2])){ - gtk_list_store_set(widgets->WebPublicationList,&iter,4,parsed[2],-1); + yon_char_parsed_free(parsed,parsed_size); + } + autoupdate_config = config(AUTOUPDATE_interval); + if (!yon_char_is_empty(autoupdate_config)){ + if (!strcmp(autoupdate_config,"boot")){ + gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateIntervalCombo),0); + } else { + if (strstr(autoupdate_config,"min")){ + gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateIntervalCombo),1); + } else if (autoupdate_config[strlen(autoupdate_config)-1]=='h'){ + gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateIntervalCombo),2); + } else if (autoupdate_config[strlen(autoupdate_config)-1]=='d'){ + gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateIntervalCombo),3); + } else if (autoupdate_config[strlen(autoupdate_config)-1]=='M'){ + gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateIntervalCombo),4); + } + gtk_spin_button_set_value(GTK_SPIN_BUTTON(widgets->UpdateIntervalSpin),atol(autoupdate_config)); } - if (cur_size>3&&!yon_char_is_empty(parsed[3])){ - gtk_list_store_set(widgets->WebPublicationList,&iter,5,parsed[3],-1); + } + + char *timestamp = config("AUTOUPDATE[timestamp]"); + if (!yon_char_is_empty(timestamp)){ + gtk_label_set_text(GTK_LABEL(widgets->HeadLabel),timestamp); + } + } + + { + config_str web_publish = yon_config_get_all_by_key(REPOPUBLIC_WEB_search,&size); + for (int i=0;iWebPublicationList,&iter); + char *cur = yon_char_new(web_publish[i]); + char *key = yon_char_divide_search(cur,"=",-1); + free(yon_char_divide_search(key,"[",-1)); + key[strlen(key)-1]='\0'; + char *path = NULL; + if (!strstr(key,":")){ + path=key; + key=NULL; + } else { + path = yon_char_divide_search(key,":",-1); } - if (cur_size>4&&!yon_char_is_empty(parsed[4])){ - if (!strcmp(parsed[4],"sha256")||!strcmp(parsed[4],"sha512")){ - gtk_list_store_set(widgets->WebPublicationList,&iter,7,parsed[5],-1); - gtk_list_store_set(widgets->WebPublicationList,&iter,6,parsed[4],-1); - } else { - gtk_list_store_set(widgets->WebPublicationList,&iter,6,parsed[4],-1); - if (cur_size>5&&!yon_char_is_empty(parsed[5])){ + int repos_size; + config_str repos = yon_char_parse(key,&repos_size,","); + + gtk_list_store_set(widgets->WebPublicationList,&iter,1,path,2,yon_char_parsed_to_string(repos,repos_size,"\n"),-1); + int cur_size; + config_str parsed = yon_char_parse(cur,&cur_size,":"); + if (cur_size){ + if (!strcmp(parsed[0],"enable")||!strcmp(parsed[0],"yes")){ + gtk_list_store_set(widgets->WebPublicationList,&iter,0,1,-1); + } else if (!strcmp(parsed[0],"disable")||!strcmp(parsed[0],"no")||!strcmp(parsed[0],"none")) { + gtk_list_store_set(widgets->WebPublicationList,&iter,0,0,-1); + } + if (cur_size>1&&!strcmp(parsed[1],"listing")){ + + } + if (cur_size>2&&!yon_char_is_empty(parsed[2])){ + gtk_list_store_set(widgets->WebPublicationList,&iter,4,parsed[2],-1); + } + if (cur_size>3&&!yon_char_is_empty(parsed[3])){ + gtk_list_store_set(widgets->WebPublicationList,&iter,5,parsed[3],-1); + } + if (cur_size>4&&!yon_char_is_empty(parsed[4])){ + if (!strcmp(parsed[4],"sha256")||!strcmp(parsed[4],"sha512")){ gtk_list_store_set(widgets->WebPublicationList,&iter,7,parsed[5],-1); + gtk_list_store_set(widgets->WebPublicationList,&iter,6,parsed[4],-1); + } else { + gtk_list_store_set(widgets->WebPublicationList,&iter,6,parsed[4],-1); + if (cur_size>5&&!yon_char_is_empty(parsed[5])){ + gtk_list_store_set(widgets->WebPublicationList,&iter,7,parsed[5],-1); + } } } } } } - { - config_str parsed = yon_config_load(get_publication_list_command,&size); - for (int i=0;iPublicationList,&iter); - gtk_list_store_set(widgets->PublicationList,&iter,1,parsed[i],-1); - } - yon_char_parsed_free(parsed,size); - } } // standard functions diff --git a/source/ubl-settings-update.h b/source/ubl-settings-update.h index f8185b1..8f4ab7f 100644 --- a/source/ubl-settings-update.h +++ b/source/ubl-settings-update.h @@ -51,21 +51,27 @@ #define REPOSITORY(target) yon_char_unite("REPOSITORY[",target,"]",NULL) #define REPOSITORY_parameter "REPOSITORY" #define REOSITORY_command(target) yon_char_unite("ubconfig --source global get [update] REPOSITORY[",target,"]",NULL) +#define REPOSITORY_parameter_command yon_char_unite("ubconfig --source global get [update] REPOSITORY",NULL) #define REPOSITORY_search "REPOSITORY[" -#define REPOPUBLIC_NET "REPOPUBLIC_NET" +#define REPOPUBLIC_NET_parameter "REPOPUBLIC_NET" +#define REPOPUBLIC_NET_parameter_command "ubconfig --source global get [update] REPOPUBLIC_NET" #define REPOPUBLIC_WEB "REPOPUBLIC_WEB" #define REPOPUBLIC_WEB_search "REPOPUBLIC_WEB[" #define REPOPUBLIC_WEB_full(target) yon_char_unite("REPOPUBLIC_WEB[",target,"]",NULL) #define REPOPUBLIC_WEB_command(target) yon_char_unite("ubconfig --source global get [update] REPOPUBLIC_WEB[",target,"]",NULL) #define REPOPUBLIC_CACHE "REPOPUBLIC_CACHE" +#define REPOPUBLIC_CACHE_command "ubconfig --source global get [update] REPOPUBLIC_CACHE" #define REPOPUBLIC_CACHE_search "REPOPUBLIC_CACHE[" #define REPOPUBLIC_CACHE_full(target) yon_char_unite("REPOPUBLIC_CACHE[",target,"]",NULL) #define REPOPUBLIC_CACHE_full_command(target) yon_char_unite("ubconfig --source global get [update] REPOPUBLIC_CACHE[",target,"]",NULL) #define AUTOUPDATE "AUTOUPDATE" +#define AUTOUPDATE_command "ubconfig --source global get [update] AUTOUPDATE" #define AUTOUPDATE_mode "AUTOUPDATE[mode]" +#define AUTOUPDATE_mode_command "ubconfig --source global get [update] AUTOUPDATE[mode]" #define AUTOUPDATE_interval "AUTOUPDATE[interval]" #define AUTOUPDATE_repos "AUTOUPDATE[repos]" +#define AUTOUPDATE_repos_command "bconfig --source global get [update] AUTOUPDATE[repos]" #define AUTOUPDATE_timestamp "AUTOUPDATE[timestamp]" typedef char* string; @@ -225,6 +231,7 @@ typedef struct { GtkWidget *AcceptButton; } documentation_confirmation_window; +void yon_save_interface(main_window *widgets); void yon_load_proceed(YON_CONFIG_TYPE type); void config_init(); diff --git a/source/ubl-strings.h b/source/ubl-strings.h index e4890d0..d94571e 100644 --- a/source/ubl-strings.h +++ b/source/ubl-strings.h @@ -9,4 +9,100 @@ #define REMOVE_REPO_WARNING_LABEL _("Are you sure want to remove repository?") #define NO_SHARED_REPOS_LABEL _("No repositories were chosen to share") + // #define _LABEL _("Update") + // #define _LABEL _("Repositories") + // #define _LABEL _("Publication") + // #define _LABEL _("WEB-publication") + // #define _LABEL _("Mirror publication") + // #define _LABEL _("Date of last automatic update: ") + // #define _LABEL _("Automatic update") + // #define _LABEL _("First update all modules and then the system") + // #define _LABEL _("Update only modules") + // #define _LABEL _("Update everything in the order of the specified repositories") + // #define _LABEL _("Update mode:") + // #define _LABEL _("Update interval:") + // #define _LABEL _("Boot") + // #define _LABEL _("Minutes") + // #define _LABEL _("Hours") + // #define _LABEL _("Days") + // #define _LABEL _("Months") + // #define _LABEL _("Repositories from which the update will occur") + // #define _LABEL _("Repositories list:") + // #define _LABEL _("Default") + // #define _LABEL _("Choose") + // #define _LABEL _("Chosen") + // #define _LABEL _("Repository") + // #define _LABEL _("Manage repository list") + // #define _LABEL _("Disable system repositories") + // #define _LABEL _("Update") + // #define _LABEL _("Move up") + // #define _LABEL _("Move down") + // #define _LABEL _("Add") + // #define _LABEL _("Edit") + // #define _LABEL _("Remove") + // #define _LABEL _("Enabled") + // #define _LABEL _("Source") + // #define _LABEL _("Signature level") + // #define _LABEL _("Usage level") + // #define _LABEL _("Repository connection configuration") + // #define _LABEL _("Repository connection configuration") + // #define _LABEL _("Connect and publish") + // #define _LABEL _("Recieve DB packages from shared network") + // #define _LABEL _("Repositories for publishing") + // #define _LABEL _("Repositories list:") + // #define _LABEL _("All repositories") + // #define _LABEL _("Choose") + // #define _LABEL _("Repository name") + // #define _LABEL _("Repository connection configuration") + // #define _LABEL _("Authorization parameters") + // #define _LABEL _("Storage") + // #define _LABEL _("Chosen repositories") + // #define _LABEL _("Reviewer") + // #define _LABEL _("Port") + // #define _LABEL _("Name") + // #define _LABEL _("Password/Hash type") + // #define _LABEL _("Password/Password hash") + // #define _LABEL _("Repository connection configuration") + // #define _LABEL _("Publish lazy mirror") + // #define _LABEL _("Type") + // #define _LABEL _("Resource URL") + // #define _LABEL _("Configure") + // #define _LABEL _("Mirror publish configuration") + // #define _LABEL _("Service port:") + // #define _LABEL _("Cache directory:") + // #define _LABEL _("Duration of inactivity (in seconds):") + // #define _LABEL _("Timeout (in seconds) for loading internel cache:") + // #define _LABEL _("Work through proxy:") + // #define _LABEL _("User agent:") + // #define _LABEL _("Standard expression for cron:") + // #define _LABEL _("The number of consecutie days that systems on the network have not been updated:") + // #define _LABEL _("The number of consecutive days wthout an update requested:") + // #define _LABEL _("Add mirror") + // #define _LABEL _("Repository name:") + // #define _LABEL _("Repository type:") + // #define _LABEL _("WEB link") + // #define _LABEL _("Proxy server") + // #define _LABEL _("Mirrors file") + // #define _LABEL _("Source:") + // #define _LABEL _("Configuration") + // #define _LABEL _("Sign level:") + // #define _LABEL _("Enable repository update") + // #define _LABEL _("Enable repository search") + // #define _LABEL _("Enable installation of packages from this repository during --sync operation") + // #define _LABEL _("Allow this repository to be a valid source of packages when running --sysupgrade") + // #define _LABEL _("Add repository for publication") + // #define _LABEL _("Enable publishing of local repository as WEB resource") + // #define _LABEL _("Path to publication directory:") + // #define _LABEL _("Port:") + // #define _LABEL _("Publishing parameters") + // #define _LABEL _("Enable WEB file browser") + // #define _LABEL _("Authorization parameters") + // #define _LABEL _("Set") + // #define _LABEL _("Username:") + // #define _LABEL _("User password:") + // #define _LABEL _("Not encrypted") + // #define _LABEL _("Encrypted with SHA256") + // #define _LABEL _("Encrypted with SHA512") + // #define _LABEL _("System") + #endif \ No newline at end of file diff --git a/ubl-settings-update-mirror-add.glade b/ubl-settings-update-mirror-add.glade index bdc2cf4..03bda0b 100644 --- a/ubl-settings-update-mirror-add.glade +++ b/ubl-settings-update-mirror-add.glade @@ -302,7 +302,7 @@ True False - Add repository + Add mirror diff --git a/ubl-settings-update-mirror-configure.glade b/ubl-settings-update-mirror-configure.glade index 93d1f33..9b972e9 100644 --- a/ubl-settings-update-mirror-configure.glade +++ b/ubl-settings-update-mirror-configure.glade @@ -547,7 +547,7 @@ True False - Add repository + Mirror publish configuration diff --git a/ubl-settings-update-web-publication-add.glade b/ubl-settings-update-web-publication-add.glade index 3c13554..800b6d3 100644 --- a/ubl-settings-update-web-publication-add.glade +++ b/ubl-settings-update-web-publication-add.glade @@ -409,7 +409,7 @@ True False - Add repository + Add repository for publication diff --git a/ubl-settings-update.glade b/ubl-settings-update.glade index 116f5fc..21dce95 100644 --- a/ubl-settings-update.glade +++ b/ubl-settings-update.glade @@ -57,7 +57,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - + + + + + + + + @@ -156,6 +163,98 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. document-edit-symbolic + + True + False + False + + + True + False + Load from global configuration + + + + + + True + False + Load from local configuration + + + + + + True + False + False + False + + + True + False + Documentation + True + + + + + + True + False + About + + + + + + True + False + False + + + True + False + Save to global and local documentation + + + + + + True + False + Save to global configuration + + + + + + True + False + Save to local configuration + + + + + + True + False + True False @@ -181,6 +280,66 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 5 vertical 5 + + + True + False + end + 5 + + + True + False + Date of last automatic update: + + + False + True + 0 + + + + + True + False + + + False + True + 1 + + + + + True + True + False + True + menu4 + + + True + False + com.ublinux.libublsettingsui-gtk3.funnel-symbolic + + + + + + False + True + 2 + + + + + False + True + 0 + + Automatic update @@ -193,7 +352,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. False True - 0 + 1 @@ -236,7 +395,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. False True - 1 + 2 @@ -302,14 +461,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - False + True True 2 - False + True True 1 @@ -318,7 +477,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. False True - 2 + 3 @@ -350,7 +509,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. True False - Repository list: + Repositories list: False @@ -401,6 +560,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Chosen + + 0 + @@ -411,6 +573,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. end + + 1 + @@ -438,7 +603,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. True True - 3 + 4 @@ -540,6 +705,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. True True True + Update image1 - - - False - True - 0 - - - - - False - True - 0 - - - - - True - True - in + 5 + 5 + 5 - + True - True - PublicationList - - - + False + vertical + 5 - - True - fixed - Chosen + + True + False + 5 - - - 0 - + + True + False + Repositories list: + + + False + True + 0 + + + + + True + False + 0 + + All repositories + Choose + + + + True + True + 1 + + + False + True + 0 + - - Repository name + + True + False + 3 + 5 - - end + + True + False + vertical + + + True + True + True + Update + image2 + + + + False + True + 0 + + - - 1 - + + False + True + 0 + + + + + True + True + in + + + True + True + PublicationList + + + True + fixed + Chosen + + + + 0 + + + + + + + Repository name + + + end + + + 1 + + + + + + + + + True + True + 1 + + + True + True + 1 + - - True - True - 1 - + + + + True + False + Repositories for publishing + @@ -996,6 +1242,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. True True True + Update image3 - - - - - True - False - Load from local configuration - - - - - - True - False - False - False - - - True - False - Documentation - True - - - - - - True - False - About - - - - - - True - False - False - - - True - False - Save to global and local documentation - - - - - - True - False - Save to global configuration - - - - - - True - False - Save to local configuration - - - - diff --git a/ubl-settings-update.pot b/ubl-settings-update.pot index d5ca432..8b4f675 100644 --- a/ubl-settings-update.pot +++ b/ubl-settings-update.pot @@ -17,233 +17,388 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: source/ubl-settings-update-strings.h:1 -msgid "Version:" +#: source/ubl-strings.h:4 +msgid "System update" msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "ubl-settings-update version:" +#: source/ubl-strings.h:5 +msgid "System update settings management" msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "update settings" +#: source/ubl-strings.h:6 +msgid "Nothing were chosen" msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Usage:" +#: source/ubl-strings.h:7 +msgid "Empty important field!" msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "[OPTIONS]" +#: source/ubl-strings.h:8 +msgid "Add repository" msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Options:" +#: source/ubl-strings.h:9 +msgid "Are you sure want to remove repository?" msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Show this help" +#: source/ubl-strings.h:10 +msgid "No repositories were chosen to share" msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Show package version" +#: source/ubl-strings.h:12 source/ubl-strings.h:37 +msgid "Update" msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Lock this help menu" +#: source/ubl-strings.h:13 +msgid "Repositories" msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Lock configuration saving" +#: source/ubl-strings.h:14 +msgid "Publication" msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Lock local configration saving" +#: source/ubl-strings.h:15 +msgid "WEB-publication" msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Lock global configration saving" +#: source/ubl-strings.h:16 +msgid "Mirror publication" msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Lock global configration loading" +#: source/ubl-strings.h:17 +msgid "Date of last automatic update: " msgstr "" -#: source/ubl-settings-update-strings.h:3 -msgid "System update" +#: source/ubl-strings.h:18 +msgid "Automatic update" msgstr "" -#: source/ubl-settings-update-strings.h:4 -msgid "System update settings management" +#: source/ubl-strings.h:19 +msgid "First update all modules and then the system" +msgstr "" + +#: source/ubl-strings.h:20 +msgid "Update only modules" +msgstr "" + +#: source/ubl-strings.h:21 +msgid "Update everything in the order of the specified repositories" +msgstr "" + +#: source/ubl-strings.h:22 +msgid "Update mode:" +msgstr "" + +#: source/ubl-strings.h:23 +msgid "Update interval:" msgstr "" -#: source/ubl-settings-update-strings.h:5 -msgid "Check for updates" +#: source/ubl-strings.h:24 +msgid "Boot" msgstr "" -#: source/ubl-settings-update-strings.h:6 -msgid "About" +#: source/ubl-strings.h:25 +msgid "Minutes" msgstr "" -#: source/ubl-settings-update-strings.h:7 -msgid "Documentation" +#: source/ubl-strings.h:26 +msgid "Hours" msgstr "" -#: source/ubl-settings-update-strings.h:8 -msgid "Save to local configuration" +#: source/ubl-strings.h:27 +msgid "Days" msgstr "" -#: source/ubl-settings-update-strings.h:9 -msgid "Save to global configuration" +#: source/ubl-strings.h:28 +msgid "Months" msgstr "" -#: source/ubl-settings-update-strings.h:10 -msgid "Save configuration" +#: source/ubl-strings.h:29 +msgid "Repositories from which the update will occur" msgstr "" -#: source/ubl-settings-update-strings.h:11 -#: source/ubl-settings-update-strings.h:36 -msgid "Save" +#: source/ubl-strings.h:30 source/ubl-strings.h:52 +msgid "Repositories list:" msgstr "" -#: source/ubl-settings-update-strings.h:12 -msgid "Load local configuration" +#: source/ubl-strings.h:31 +msgid "Default" msgstr "" -#: source/ubl-settings-update-strings.h:13 -msgid "Load global configuration" +#: source/ubl-strings.h:32 source/ubl-strings.h:54 +msgid "Choose" msgstr "" -#: source/ubl-settings-update-strings.h:14 -msgid "load" +#: source/ubl-strings.h:33 +msgid "Chosen" msgstr "" -#: source/ubl-settings-update-strings.h:15 -msgid "Launch package manager" +#: source/ubl-strings.h:34 +msgid "Repository" msgstr "" -#: source/ubl-settings-update-strings.h:16 -msgid "Cache clean command: " +#: source/ubl-strings.h:35 +msgid "Manage repository list" msgstr "" -#: source/ubl-settings-update-strings.h:17 -msgid "Update command: " +#: source/ubl-strings.h:36 +msgid "Disable system repositories" msgstr "" -#: source/ubl-settings-update-strings.h:18 -msgid "Package manager: " +#: source/ubl-strings.h:38 +msgid "Move up" msgstr "" -#: source/ubl-settings-update-strings.h:19 -msgid "URI" +#: source/ubl-strings.h:39 +msgid "Move down" msgstr "" -#: source/ubl-settings-update-strings.h:20 +#: source/ubl-strings.h:40 +msgid "Add" +msgstr "" + +#: source/ubl-strings.h:41 +msgid "Edit" +msgstr "" + +#: source/ubl-strings.h:42 +msgid "Remove" +msgstr "" + +#: source/ubl-strings.h:43 msgid "Enabled" msgstr "" -#: source/ubl-settings-update-strings.h:21 -msgid "Distribution" +#: source/ubl-strings.h:44 +msgid "Source" msgstr "" -#: source/ubl-settings-update-strings.h:22 -msgid "Activate UBUR" +#: source/ubl-strings.h:45 +msgid "Signature level" msgstr "" -#: source/ubl-settings-update-strings.h:23 -msgid "Activate AUR" +#: source/ubl-strings.h:46 +msgid "Usage level" msgstr "" -#: source/ubl-settings-update-strings.h:24 -msgid "Every 3 hours" +#: source/ubl-strings.h:47 source/ubl-strings.h:48 source/ubl-strings.h:56 +#: source/ubl-strings.h:65 +msgid "Repository connection configuration" msgstr "" -#: source/ubl-settings-update-strings.h:25 -msgid "Every 2 hours" +#: source/ubl-strings.h:49 +msgid "Connect and publish" msgstr "" -#: source/ubl-settings-update-strings.h:26 -msgid "Every 1 hour" +#: source/ubl-strings.h:50 +msgid "Recieve DB packages from shared network" msgstr "" -#: source/ubl-settings-update-strings.h:27 -msgid "Download updates automatically" +#: source/ubl-strings.h:51 +msgid "Repositories for publishing" msgstr "" -#: source/ubl-settings-update-strings.h:28 -msgid "Hide icon of no updates found" +#: source/ubl-strings.h:53 +msgid "All repositories" msgstr "" -#: source/ubl-settings-update-strings.h:29 -msgid "Update checking frequency" +#: source/ubl-strings.h:55 +msgid "Repository name" msgstr "" -#: source/ubl-settings-update-strings.h:30 -msgid "Extra" +#: source/ubl-strings.h:57 source/ubl-strings.h:99 +msgid "Authorization parameters" msgstr "" -#: source/ubl-settings-update-strings.h:31 -msgid "Repositories" +#: source/ubl-strings.h:58 +msgid "Storage" +msgstr "" + +#: source/ubl-strings.h:59 +msgid "Chosen repositories" +msgstr "" + +#: source/ubl-strings.h:60 +msgid "Reviewer" +msgstr "" + +#: source/ubl-strings.h:61 +msgid "Port" +msgstr "" + +#: source/ubl-strings.h:62 +msgid "Name" +msgstr "" + +#: source/ubl-strings.h:63 +msgid "Password/Hash type" +msgstr "" + +#: source/ubl-strings.h:64 +msgid "Password/Password hash" +msgstr "" + +#: source/ubl-strings.h:66 +msgid "Publish lazy mirror" +msgstr "" + +#: source/ubl-strings.h:67 +msgid "Type" +msgstr "" + +#: source/ubl-strings.h:68 +msgid "Resource URL" +msgstr "" + +#: source/ubl-strings.h:69 +msgid "Configure" +msgstr "" + +#: source/ubl-strings.h:70 +msgid "Mirror publish configuration" msgstr "" -#: source/ubl-settings-update-strings.h:32 -msgid "General" +#: source/ubl-strings.h:71 +msgid "Service port:" msgstr "" -#: source/ubl-settings-update-strings.h:33 -msgid "Adress: " +#: source/ubl-strings.h:72 +msgid "Cache directory:" msgstr "" -#: source/ubl-settings-update-strings.h:34 -msgid "Distribution: " +#: source/ubl-strings.h:73 +msgid "Duration of inactivity (in seconds):" msgstr "" -#: source/ubl-settings-update-strings.h:35 -msgid "Cancel" +#: source/ubl-strings.h:74 +msgid "Timeout (in seconds) for loading internel cache:" msgstr "" -#: source/ubl-settings-update-strings.h:37 -msgid "Would you like to read documentation in the Web?" +#: source/ubl-strings.h:75 +msgid "Work through proxy:" msgstr "" -#: source/ubl-settings-update-strings.h:38 +#: source/ubl-strings.h:76 +msgid "User agent:" +msgstr "" + +#: source/ubl-strings.h:77 +msgid "Standard expression for cron:" +msgstr "" + +#: source/ubl-strings.h:78 msgid "" -"You will be redirected to documentation website where documentation is\n" -"translated and supported by community." +"The number of consecutie days that systems on the network have not been " +"updated:" msgstr "" -#: source/ubl-settings-update-strings.h:39 -msgid "Always redirect to online documentation" +#: source/ubl-strings.h:79 +msgid "The number of consecutive days wthout an update requested:" msgstr "" -#: source/ubl-settings-update-strings.h:40 -msgid "Open documentation" +#: source/ubl-strings.h:80 +msgid "Add mirror" msgstr "" -#: source/ubl-settings-update-strings.h:41 -msgid "Project Home Page" +#: source/ubl-strings.h:81 +msgid "Repository name:" msgstr "" -#: source/ubl-settings-update-strings.h:42 -msgid "Nothing were chosen" +#: source/ubl-strings.h:82 +msgid "Repository type:" +msgstr "" + +#: source/ubl-strings.h:83 +msgid "WEB link" +msgstr "" + +#: source/ubl-strings.h:84 +msgid "Proxy server" +msgstr "" + +#: source/ubl-strings.h:85 +msgid "Mirrors file" +msgstr "" + +#: source/ubl-strings.h:86 +msgid "Source:" +msgstr "" + +#: source/ubl-strings.h:87 +msgid "Configuration" +msgstr "" + +#: source/ubl-strings.h:88 +msgid "Sign level:" +msgstr "" + +#: source/ubl-strings.h:89 +msgid "Enable repository update" +msgstr "" + +#: source/ubl-strings.h:90 +msgid "Enable repository search" +msgstr "" + +#: source/ubl-strings.h:91 +msgid "" +"Enable installation of packages from this repository during --sync operation" +msgstr "" + +#: source/ubl-strings.h:92 +msgid "" +"Allow this repository to be a valid source of packages when running --" +"sysupgrade" +msgstr "" + +#: source/ubl-strings.h:93 +msgid "Add repository for publication" +msgstr "" + +#: source/ubl-strings.h:94 +msgid "Enable publishing of local repository as WEB resource" +msgstr "" + +#: source/ubl-strings.h:95 +msgid "Path to publication directory:" +msgstr "" + +#: source/ubl-strings.h:96 +msgid "Port:" +msgstr "" + +#: source/ubl-strings.h:97 +msgid "Publishing parameters" +msgstr "" + +#: source/ubl-strings.h:98 +msgid "Enable WEB file browser" +msgstr "" + +#: source/ubl-strings.h:100 +msgid "Set" +msgstr "" + +#: source/ubl-strings.h:101 +msgid "Username:" msgstr "" -#: source/ubl-settings-update-strings.h:44 -msgid "Global configuration loading succseeded." +#: source/ubl-strings.h:102 +msgid "User password:" msgstr "" -#: source/ubl-settings-update-strings.h:45 -msgid "Local configuration loading succseeded." +#: source/ubl-strings.h:103 +msgid "Not encrypted" msgstr "" -#: source/ubl-settings-update-strings.h:47 -msgid "Local and global configuration saving succseeded." +#: source/ubl-strings.h:104 +msgid "Encrypted with SHA256" msgstr "" -#: source/ubl-settings-update-strings.h:48 -msgid "Global configuration saving succseeded." +#: source/ubl-strings.h:105 +msgid "Encrypted with SHA512" msgstr "" -#: source/ubl-settings-update-strings.h:49 -msgid "Local configuration saving succseeded." +#: source/ubl-strings.h:106 +msgid "System" msgstr "" diff --git a/ubl-settings-update_ru.po b/ubl-settings-update_ru.po index 655c950..36003fd 100644 --- a/ubl-settings-update_ru.po +++ b/ubl-settings-update_ru.po @@ -17,236 +17,406 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: source/ubl-settings-update-strings.h:1 -msgid "Version:" -msgstr "Версия:" +#: source/ubl-strings.h:4 +msgid "System update" +msgstr "Обновление системы" -#: source/ubl-settings-update-strings.h:2 -msgid "ubl-settings-update version:" -msgstr "Версия ubl-settings-update: " +#: source/ubl-strings.h:5 +msgid "System update settings management" +msgstr "Настройка параметров обновления системы" -#: source/ubl-settings-update-strings.h:2 -msgid "update settings" -msgstr "Настройки обновлений" +#: source/ubl-strings.h:6 +msgid "Nothing were chosen" +msgstr "Ничего не выбрано" -#: source/ubl-settings-update-strings.h:2 -msgid "Usage:" -msgstr "Использование:" +#: source/ubl-strings.h:7 +msgid "Empty important field!" +msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "[OPTIONS]" -msgstr "[АРГУМЕНТЫ]" +#: source/ubl-strings.h:8 +#, fuzzy +msgid "Add repository" +msgstr "Репозитории" -#: source/ubl-settings-update-strings.h:2 -msgid "Options:" -msgstr "Аргументы:" +#: source/ubl-strings.h:9 +msgid "Are you sure want to remove repository?" +msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Show this help" -msgstr "Показать параметры справки" +#: source/ubl-strings.h:10 +msgid "No repositories were chosen to share" +msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Show package version" -msgstr "Показать текущую версию" +#: source/ubl-strings.h:12 source/ubl-strings.h:37 +msgid "Update" +msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Lock this help menu" -msgstr "Блокировка вызова справки" +#: source/ubl-strings.h:13 +msgid "Repositories" +msgstr "Репозитории" -#: source/ubl-settings-update-strings.h:2 -msgid "Lock configuration saving" -msgstr "Блокировка сохранения локальной и глобальной конфигурации" +#: source/ubl-strings.h:14 +msgid "Publication" +msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Lock local configration saving" -msgstr "Блокировка сохранения локальной конфигурации" +#: source/ubl-strings.h:15 +msgid "WEB-publication" +msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Lock global configration saving" -msgstr "Блокировка сохранения глобальной конфигурации" +#: source/ubl-strings.h:16 +msgid "Mirror publication" +msgstr "" -#: source/ubl-settings-update-strings.h:2 -msgid "Lock global configration loading" -msgstr "Блокировка загрузки глобальной конфигурации" +#: source/ubl-strings.h:17 +msgid "Date of last automatic update: " +msgstr "" -#: source/ubl-settings-update-strings.h:3 -msgid "System update" +#: source/ubl-strings.h:18 +#, fuzzy +msgid "Automatic update" msgstr "Обновление системы" -#: source/ubl-settings-update-strings.h:4 -msgid "System update settings management" -msgstr "Настройка параметров обновления системы" +#: source/ubl-strings.h:19 +msgid "First update all modules and then the system" +msgstr "" -#: source/ubl-settings-update-strings.h:5 -msgid "Check for updates" -msgstr "Проверить обновления" +#: source/ubl-strings.h:20 +msgid "Update only modules" +msgstr "" -#: source/ubl-settings-update-strings.h:6 -msgid "About" -msgstr "О программе" +#: source/ubl-strings.h:21 +msgid "Update everything in the order of the specified repositories" +msgstr "" -#: source/ubl-settings-update-strings.h:7 -msgid "Documentation" -msgstr "Справка" +#: source/ubl-strings.h:22 +#, fuzzy +msgid "Update mode:" +msgstr "Команда обновления: " -#: source/ubl-settings-update-strings.h:8 -msgid "Save to local configuration" -msgstr "Сохранить в локальную конфигурацию" +#: source/ubl-strings.h:23 +msgid "Update interval:" +msgstr "" -#: source/ubl-settings-update-strings.h:9 -msgid "Save to global configuration" -msgstr "Сохранить в глобальную конфигурацию" +#: source/ubl-strings.h:24 +msgid "Boot" +msgstr "" -#: source/ubl-settings-update-strings.h:10 -msgid "Save configuration" -msgstr "Сохранить в конфигурацию" +#: source/ubl-strings.h:25 +msgid "Minutes" +msgstr "" -#: source/ubl-settings-update-strings.h:11 -#: source/ubl-settings-update-strings.h:36 -msgid "Save" -msgstr "Сохранить" +#: source/ubl-strings.h:26 +msgid "Hours" +msgstr "" -#: source/ubl-settings-update-strings.h:12 -msgid "Load local configuration" -msgstr "Загрузить локальную конфигурацию" +#: source/ubl-strings.h:27 +msgid "Days" +msgstr "" -#: source/ubl-settings-update-strings.h:13 -msgid "Load global configuration" -msgstr "Загрузить глобальную конфигурацию" +#: source/ubl-strings.h:28 +msgid "Months" +msgstr "" -#: source/ubl-settings-update-strings.h:14 -msgid "load" -msgstr "Загрузить" +#: source/ubl-strings.h:29 +msgid "Repositories from which the update will occur" +msgstr "" -#: source/ubl-settings-update-strings.h:15 -msgid "Launch package manager" -msgstr "Запустить менеджер пакетов" +#: source/ubl-strings.h:30 source/ubl-strings.h:52 +#, fuzzy +msgid "Repositories list:" +msgstr "Репозитории" -#: source/ubl-settings-update-strings.h:16 -msgid "Cache clean command: " -msgstr "Команда очистки кеша пакетов: " +#: source/ubl-strings.h:31 +msgid "Default" +msgstr "" -#: source/ubl-settings-update-strings.h:17 -msgid "Update command: " -msgstr "Команда обновления: " +#: source/ubl-strings.h:32 source/ubl-strings.h:54 +msgid "Choose" +msgstr "" + +#: source/ubl-strings.h:33 +msgid "Chosen" +msgstr "" + +#: source/ubl-strings.h:34 +#, fuzzy +msgid "Repository" +msgstr "Репозитории" + +#: source/ubl-strings.h:35 +msgid "Manage repository list" +msgstr "" + +#: source/ubl-strings.h:36 +msgid "Disable system repositories" +msgstr "" -#: source/ubl-settings-update-strings.h:18 -msgid "Package manager: " -msgstr "Менеджер пакетов: " +#: source/ubl-strings.h:38 +msgid "Move up" +msgstr "" + +#: source/ubl-strings.h:39 +msgid "Move down" +msgstr "" + +#: source/ubl-strings.h:40 +msgid "Add" +msgstr "" -#: source/ubl-settings-update-strings.h:19 -msgid "URI" -msgstr "URI" +#: source/ubl-strings.h:41 +msgid "Edit" +msgstr "" + +#: source/ubl-strings.h:42 +msgid "Remove" +msgstr "" -#: source/ubl-settings-update-strings.h:20 +#: source/ubl-strings.h:43 msgid "Enabled" msgstr "Включен" -#: source/ubl-settings-update-strings.h:21 -msgid "Distribution" -msgstr "Дистрибутив" +#: source/ubl-strings.h:44 +msgid "Source" +msgstr "" + +#: source/ubl-strings.h:45 +msgid "Signature level" +msgstr "" -#: source/ubl-settings-update-strings.h:22 -msgid "Activate UBUR" -msgstr "Активировать UBUR" +#: source/ubl-strings.h:46 +msgid "Usage level" +msgstr "" -#: source/ubl-settings-update-strings.h:23 -msgid "Activate AUR" -msgstr "Активировать AUR" +#: source/ubl-strings.h:47 source/ubl-strings.h:48 source/ubl-strings.h:56 +#: source/ubl-strings.h:65 +#, fuzzy +msgid "Repository connection configuration" +msgstr "Сохранить в локальную конфигурацию" -#: source/ubl-settings-update-strings.h:24 -msgid "Every 3 hours" -msgstr "Каждые 3 часа" +#: source/ubl-strings.h:49 +msgid "Connect and publish" +msgstr "" -#: source/ubl-settings-update-strings.h:25 -msgid "Every 2 hours" -msgstr "Каждые 2 часа" +#: source/ubl-strings.h:50 +msgid "Recieve DB packages from shared network" +msgstr "" -#: source/ubl-settings-update-strings.h:26 -msgid "Every 1 hour" -msgstr "Каждый час" +#: source/ubl-strings.h:51 +#, fuzzy +msgid "Repositories for publishing" +msgstr "Репозитории" -#: source/ubl-settings-update-strings.h:27 -msgid "Download updates automatically" -msgstr "Автоматически скачивать обновления" +#: source/ubl-strings.h:53 +#, fuzzy +msgid "All repositories" +msgstr "Репозитории" -#: source/ubl-settings-update-strings.h:28 -msgid "Hide icon of no updates found" -msgstr "Скрыть значок в трее при отсутствии обновлений" +#: source/ubl-strings.h:55 +#, fuzzy +msgid "Repository name" +msgstr "Репозитории" -#: source/ubl-settings-update-strings.h:29 -msgid "Update checking frequency" -msgstr "Частота проверки обновлений" +#: source/ubl-strings.h:57 source/ubl-strings.h:99 +msgid "Authorization parameters" +msgstr "" -#: source/ubl-settings-update-strings.h:30 -msgid "Extra" -msgstr "Дополнительно" +#: source/ubl-strings.h:58 +msgid "Storage" +msgstr "" -#: source/ubl-settings-update-strings.h:31 -msgid "Repositories" +#: source/ubl-strings.h:59 +#, fuzzy +msgid "Chosen repositories" msgstr "Репозитории" -#: source/ubl-settings-update-strings.h:32 -msgid "General" -msgstr "Общие настройки" +#: source/ubl-strings.h:60 +msgid "Reviewer" +msgstr "" -#: source/ubl-settings-update-strings.h:33 -msgid "Adress: " -msgstr "Адрес: " +#: source/ubl-strings.h:61 +msgid "Port" +msgstr "" -#: source/ubl-settings-update-strings.h:34 -msgid "Distribution: " -msgstr "Дистрибутив: " +#: source/ubl-strings.h:62 +msgid "Name" +msgstr "" -#: source/ubl-settings-update-strings.h:35 -msgid "Cancel" -msgstr "Отмена" +#: source/ubl-strings.h:63 +msgid "Password/Hash type" +msgstr "" + +#: source/ubl-strings.h:64 +msgid "Password/Password hash" +msgstr "" + +#: source/ubl-strings.h:66 +msgid "Publish lazy mirror" +msgstr "" + +#: source/ubl-strings.h:67 +msgid "Type" +msgstr "" + +#: source/ubl-strings.h:68 +msgid "Resource URL" +msgstr "" + +#: source/ubl-strings.h:69 +msgid "Configure" +msgstr "" -#: source/ubl-settings-update-strings.h:37 -msgid "Would you like to read documentation in the Web?" -msgstr "Вы хотите прочитать справку в Сети?" +#: source/ubl-strings.h:70 +#, fuzzy +msgid "Mirror publish configuration" +msgstr "Загрузить глобальную конфигурацию" + +#: source/ubl-strings.h:71 +msgid "Service port:" +msgstr "" + +#: source/ubl-strings.h:72 +msgid "Cache directory:" +msgstr "" + +#: source/ubl-strings.h:73 +msgid "Duration of inactivity (in seconds):" +msgstr "" + +#: source/ubl-strings.h:74 +msgid "Timeout (in seconds) for loading internel cache:" +msgstr "" -#: source/ubl-settings-update-strings.h:38 +#: source/ubl-strings.h:75 +msgid "Work through proxy:" +msgstr "" + +#: source/ubl-strings.h:76 +msgid "User agent:" +msgstr "" + +#: source/ubl-strings.h:77 +msgid "Standard expression for cron:" +msgstr "" + +#: source/ubl-strings.h:78 msgid "" -"You will be redirected to documentation website where documentation is\n" -"translated and supported by community." +"The number of consecutie days that systems on the network have not been " +"updated:" msgstr "" -"Вы будете перенаправлены на сайт с документацией где страницы помощи\n" -"переводятся и поддерживаются сообществом." -#: source/ubl-settings-update-strings.h:39 -msgid "Always redirect to online documentation" -msgstr "Всегда перенаправлять" +#: source/ubl-strings.h:79 +msgid "The number of consecutive days wthout an update requested:" +msgstr "" -#: source/ubl-settings-update-strings.h:40 -msgid "Open documentation" -msgstr "Справка" +#: source/ubl-strings.h:80 +msgid "Add mirror" +msgstr "" -#: source/ubl-settings-update-strings.h:41 -msgid "Project Home Page" -msgstr "Домашняя страница проекта" +#: source/ubl-strings.h:81 +#, fuzzy +msgid "Repository name:" +msgstr "Репозитории" -#: source/ubl-settings-update-strings.h:42 -msgid "Nothing were chosen" -msgstr "Ничего не выбрано" +#: source/ubl-strings.h:82 +#, fuzzy +msgid "Repository type:" +msgstr "Репозитории" -#: source/ubl-settings-update-strings.h:44 -msgid "Global configuration loading succseeded." -msgstr "Успешно загружена глобальная конфигурация" +#: source/ubl-strings.h:83 +msgid "WEB link" +msgstr "" -#: source/ubl-settings-update-strings.h:45 -msgid "Local configuration loading succseeded." -msgstr "Успешно загружена локальная конфигурация" +#: source/ubl-strings.h:84 +msgid "Proxy server" +msgstr "" -#: source/ubl-settings-update-strings.h:47 -msgid "Local and global configuration saving succseeded." -msgstr "Успешно записаны локальная и глобальная конфигурация" +#: source/ubl-strings.h:85 +msgid "Mirrors file" +msgstr "" -#: source/ubl-settings-update-strings.h:48 -msgid "Global configuration saving succseeded." -msgstr "Успешно записана глобальная конфигурация" +#: source/ubl-strings.h:86 +msgid "Source:" +msgstr "" -#: source/ubl-settings-update-strings.h:49 -msgid "Local configuration saving succseeded." -msgstr "Успешно записана локальная конфигурация" +#: source/ubl-strings.h:87 +#, fuzzy +msgid "Configuration" +msgstr "Сохранить в конфигурацию" +#: source/ubl-strings.h:88 +msgid "Sign level:" +msgstr "" + +#: source/ubl-strings.h:89 +msgid "Enable repository update" +msgstr "" + +#: source/ubl-strings.h:90 +msgid "Enable repository search" +msgstr "" + +#: source/ubl-strings.h:91 +msgid "" +"Enable installation of packages from this repository during --sync operation" +msgstr "" + +#: source/ubl-strings.h:92 +msgid "" +"Allow this repository to be a valid source of packages when running --" +"sysupgrade" +msgstr "" + +#: source/ubl-strings.h:93 +msgid "Add repository for publication" +msgstr "" + +#: source/ubl-strings.h:94 +msgid "Enable publishing of local repository as WEB resource" +msgstr "" + +#: source/ubl-strings.h:95 +msgid "Path to publication directory:" +msgstr "" + +#: source/ubl-strings.h:96 +msgid "Port:" +msgstr "" + +#: source/ubl-strings.h:97 +msgid "Publishing parameters" +msgstr "" + +#: source/ubl-strings.h:98 +msgid "Enable WEB file browser" +msgstr "" + +#: source/ubl-strings.h:100 +msgid "Set" +msgstr "" + +#: source/ubl-strings.h:101 +msgid "Username:" +msgstr "" + +#: source/ubl-strings.h:102 +msgid "User password:" +msgstr "" + +#: source/ubl-strings.h:103 +msgid "Not encrypted" +msgstr "" + +#: source/ubl-strings.h:104 +msgid "Encrypted with SHA256" +msgstr "" + +#: source/ubl-strings.h:105 +msgid "Encrypted with SHA512" +msgstr "" + +#: source/ubl-strings.h:106 +#, fuzzy +msgid "System" +msgstr "Обновление системы" + +msgid "Cancel" +msgstr "Отмена" \ No newline at end of file