Исправил локализацию

pull/24/head
Igor Belitskiy 2 years ago
parent 17c7f12923
commit 09536d0a32

@ -494,7 +494,6 @@ void set_edit_gui_data_base(config_all* all_config, int index) {
gtk_entry_set_text(GTK_ENTRY(temp_widgets->entryProjectName), actors); gtk_entry_set_text(GTK_ENTRY(temp_widgets->entryProjectName), actors);
} }
gtk_label_set_label(GTK_LABEL(temp_widgets->lblSetNameDevice), model_find_path_to_disk(&all_config->v_disk_status, _config->UNIX_file)); gtk_label_set_label(GTK_LABEL(temp_widgets->lblSetNameDevice), model_find_path_to_disk(&all_config->v_disk_status, _config->UNIX_file));
} }
} }
else { else {
@ -626,7 +625,7 @@ int check_save_project() {
char* project_id = (char*)gtk_entry_get_text(GTK_ENTRY(temp_widgets->entryProjectId)); char* project_id = (char*)gtk_entry_get_text(GTK_ENTRY(temp_widgets->entryProjectId));
if (!strlen(file_dir) || (!strlen(project_id) && !active1) || !strlen(project_name)) { if (!strlen(file_dir) || (!strlen(project_id) && !active1) || !strlen(project_name)) {
if (!strlen(project_id) && !active1) { if (!strlen(project_id) && !active1) {
show_warning_no_fill(_("Project Id mandatory field")); show_warning_no_fill(_("Project ID mandatory field"));
} }
else if (!strlen(file_dir)) { else if (!strlen(file_dir)) {
show_warning_no_fill(_("The path does not match the specified disk")); show_warning_no_fill(_("The path does not match the specified disk"));
@ -795,21 +794,22 @@ void set_widget_config(GtkWidget* check, GtkWidget* spin, GtkWidget* combo, size
} }
} }
void check_generate_id() { void check_generate_id() {
g_signal_handlers_block_by_func(G_OBJECT(temp_widgets->entryProjectId), G_CALLBACK(check_generate_id), NULL); if (strstr(flag_temp_u_g_p,"prjquota")) {
int active = gtk_widget_get_sensitive(temp_widgets->entryProjectId); g_signal_handlers_block_by_func(G_OBJECT(temp_widgets->entryProjectId), G_CALLBACK(check_generate_id), NULL);
if (active) { int active = gtk_widget_get_sensitive(temp_widgets->entryProjectId);
char* text = (char*)gtk_entry_get_text(GTK_ENTRY(temp_widgets->entryProjectId)); if (active) {
if (strlen(text)) { char* text = (char*)gtk_entry_get_text(GTK_ENTRY(temp_widgets->entryProjectId));
int id = atoi(text); if (strlen(text)) {
if (check_generate(vec_temp, id)) { int id = atoi(text);
id = generate_id(vec_temp, id); if (check_generate(vec_temp, id)) {
gtk_entry_set_text(GTK_ENTRY(temp_widgets->entryProjectId), yon_char_from_int(id)); id = generate_id(vec_temp, id);
gtk_entry_set_text(GTK_ENTRY(temp_widgets->entryProjectId), yon_char_from_int(id));
}
} }
} }
g_signal_handlers_unblock_by_func(G_OBJECT(temp_widgets->entryProjectId), G_CALLBACK(check_generate_id), NULL);
} }
g_signal_handlers_unblock_by_func(G_OBJECT(temp_widgets->entryProjectId), G_CALLBACK(check_generate_id), NULL);
} }
void wrapper_generate_id() { void wrapper_generate_id() {
int id = generate_id(vec_temp, -1); int id = generate_id(vec_temp, -1);

@ -1133,6 +1133,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<object class="GtkComboBoxText" id="UserDeviceCombo"> <object class="GtkComboBoxText" id="UserDeviceCombo">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">5</property>
<property name="margin-bottom">5</property>
</object> </object>
<packing> <packing>
<property name="expand">True</property> <property name="expand">True</property>
@ -1145,7 +1151,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="margin-left">5</property> <property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property> <property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">5</property>
<property name="margin-bottom">5</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
<packing> <packing>
@ -1183,7 +1193,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="margin-left">5</property> <property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property> <property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">5</property> <property name="margin-top">5</property>
<property name="margin-bottom">5</property> <property name="margin-bottom">5</property>
<property name="label" translatable="yes">Quota use status:</property> <property name="label" translatable="yes">Quota use status:</property>
@ -1203,6 +1215,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<property name="margin-right">5</property> <property name="margin-right">5</property>
<property name="margin-start">5</property> <property name="margin-start">5</property>
<property name="margin-end">5</property> <property name="margin-end">5</property>
<property name="margin-top">5</property>
<property name="margin-bottom">5</property>
<property name="xalign">0</property> <property name="xalign">0</property>
</object> </object>
<packing> <packing>

@ -422,7 +422,7 @@ msgstr ""
msgid "Project name required field" msgid "Project name required field"
msgstr "" msgstr ""
msgid "Project Id mandatory field" msgid "Project ID mandatory field"
msgstr "" msgstr ""
msgid "The volume and files fields must have at least one value" msgid "The volume and files fields must have at least one value"

@ -430,8 +430,8 @@ msgstr "Список пользователей пуст"
msgid "Project name required field" msgid "Project name required field"
msgstr "Имя проекта обязательное поле" msgstr "Имя проекта обязательное поле"
msgid "Project Id mandatory field" msgid "Project ID mandatory field"
msgstr "Id проекта обязательное поле" msgstr "ID проекта обязательное поле"
msgid "The volume and files fields must have at least one value" msgid "The volume and files fields must have at least one value"
msgstr "Поля объем и файлы должно быть указано хотя бы одно значение" msgstr "Поля объем и файлы должно быть указано хотя бы одно значение"

Loading…
Cancel
Save