Localisation update

pull/129/head
Ivan Yartsev 6 months ago
parent 7fcb96bb7c
commit b8a7f4b951

@ -105,6 +105,9 @@ int yon_load_proceed(YON_CONFIG_TYPE type){
if (type==YON_CONFIG_GLOBAL){
yon_debug_output("%s\n",yon_char_unite(config_get_command("global"),NULL));
yon_config_load_config(type,config_get_command("global"),NULL);
textdomain(template_ui_LocaleName);
yon_ubl_status_box_render(GLOBAL_LOAD_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
textdomain(LocaleName);
update_loaded_logrotate();
return 1;
}
@ -112,6 +115,9 @@ int yon_load_proceed(YON_CONFIG_TYPE type){
yon_config_load_config(type,config_get_command("system"),NULL);
yon_config_load_config(YON_CONFIG_GLOBAL,config_get_global_only_parameters,NULL);
// int size;
textdomain(template_ui_LocaleName);
yon_ubl_status_box_render(LOCAL_LOAD_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
textdomain(LocaleName);
update_loaded_logrotate();
return 1;
}
@ -135,6 +141,9 @@ int yon_load_proceed(YON_CONFIG_TYPE type){
}
yon_config_clean();
yon_config_load_config(type,config_get_command(path),NULL);
textdomain(template_ui_LocaleName);
yon_ubl_status_box_render(LOCAL_LOAD_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
textdomain(LocaleName);
gtk_widget_destroy(dialog);
} else {
gtk_widget_destroy(dialog);
@ -148,23 +157,18 @@ int yon_load_proceed(YON_CONFIG_TYPE type){
void on_load_global(){
yon_load_proceed(YON_CONFIG_GLOBAL);
main_config.load_mode=0;
yon_ubl_status_box_render(GLOBAL_LOAD_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
update_loaded_logrotate();
}
void on_load_local(){
yon_load_proceed(YON_CONFIG_LOCAL);
main_config.load_mode=1;
yon_ubl_status_box_render(LOCAL_LOAD_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
update_loaded_logrotate();
}
void on_config_custom_load(GtkWidget *,main_window *){
yon_load_proceed(YON_CONFIG_CUSTOM);
textdomain(template_ui_LocaleName);
yon_ubl_status_box_render(GLOBAL_LOAD_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
textdomain(LocaleName);
main_config.load_mode=3;
// yon_interface_update(widgets);
}
@ -664,6 +668,7 @@ void on_logrotate_configuration_path_filechooser_open(GtkWidget *self, logrotate
yon_window_config_custom_window_set(GTK_WINDOW(dialog->FileChooser),"FileDialog");
gtk_window_set_transient_for(GTK_WINDOW(dialog->FileChooser),GTK_WINDOW(window->MainWindow));
GtkFileFilter *filter = gtk_file_filter_new();
gtk_file_filter_set_name(filter,"*log*");
gtk_file_filter_add_pattern(filter,"*log*");
gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dialog->FileChooser),filter);

@ -197,6 +197,10 @@ msgstr ""
msgid "Journal/log files were not found"
msgstr ""
#: source/ubl-strings.h:194
msgid "Configuration file"
msgstr ""
#: source/ubl-strings.h:45
msgid "Log/Journal"
msgstr ""

@ -189,6 +189,10 @@ msgstr "Принять"
msgid "Choose directory instead of file"
msgstr "Выбрать папку вместо файла"
#: source/ubl-strings.h:194
msgid "Configuration file"
msgstr "Файл конфигурации"
#: source/ubl-strings.h:43
msgid "Journals"
msgstr "Журналы"

Loading…
Cancel
Save