Test standard values

pull/34/head
parent 1265c5c9e3
commit 5800caf82e

@ -367,22 +367,19 @@ void yon_interface_update(main_window *widgets){
if (!yon_char_is_empty(region)){ if (!yon_char_is_empty(region)){
gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->RegionCombo),region); gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->RegionCombo),region);
} else { } else {
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->RegionCombo),0); gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->RegionCombo),"Europe");
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->RegionSensitiveCheck),0); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->RegionSensitiveCheck),0);
} }
if (!yon_char_is_empty(zone)){ if (!yon_char_is_empty(zone)){
gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->ZoneCombo),zone); gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->ZoneCombo),zone);
} else { } else {
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->ZoneCombo),0); gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->ZoneCombo),"Moscow");
} }
char *language = config(lang_parameter); char *language = config(lang_parameter);
if (!yon_char_is_empty(language)){ if (!yon_char_is_empty(language)){
int feasf = gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->LanguageCombo),language); gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->LanguageCombo),language);
if (feasf){
printf("fsa\n");
};
} else { } else {
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->LanguageCombo),0); gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->LanguageCombo),0);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->MainLanguageSensitiveCheck),0); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->MainLanguageSensitiveCheck),0);
@ -421,7 +418,13 @@ void yon_interface_update(main_window *widgets){
} }
} else { } else {
for_iter(widgets->LayoutList,&iter){ for_iter(widgets->LayoutList,&iter){
char *id;
gtk_tree_model_get(GTK_TREE_MODEL(widgets->LayoutList),&iter,0,&id,-1);
if (!strcmp(id,"ru")||!strcmp(id,"us")){
gtk_tree_store_set(widgets->LayoutList,&iter,3,1,-1);
} else {
gtk_tree_store_set((widgets->LayoutList),&iter,3,0,-1); gtk_tree_store_set((widgets->LayoutList),&iter,3,0,-1);
}
} }
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->LayoutSensitiveCheck),0); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->LayoutSensitiveCheck),0);
} }
@ -746,7 +749,7 @@ void on_language_window_accept(GtkWidget *,dictionary *dict){
if (status) if (status)
yon_char_parsed_add_or_create_if_exists(parsed,&size,current); yon_char_parsed_add_or_create_if_exists(parsed,&size,current);
} }
char *final = yon_char_parsed_to_string(parsed,size,", "); char *final = yon_char_parsed_to_string(parsed,size,"; ");
gtk_entry_set_text(GTK_ENTRY(widgets->AvailableLanguagesEntry),final); gtk_entry_set_text(GTK_ENTRY(widgets->AvailableLanguagesEntry),final);
free(final); free(final);
yon_char_parsed_free(parsed,size); yon_char_parsed_free(parsed,size);

@ -164,4 +164,5 @@
#define CONFIGURATION_SAVE_LABEL _("You can safely exit configurator or return and create new configuration file.") #define CONFIGURATION_SAVE_LABEL _("You can safely exit configurator or return and create new configuration file.")
#define SCROLL_TO_END_LABEL _("Scroll to the end") #define SCROLL_TO_END_LABEL _("Scroll to the end")
#define ADMINISTRATOR_LABEL _("Administrator") #define ADMINISTRATOR_LABEL _("Administrator")
#define DEFAULT_LOCALES_LABEL _("English, U.S.A.; Russian, Russia")

@ -1630,7 +1630,6 @@ and help you install UBLinux on your computer</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property> <property name="sensitive">False</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<signal name="changed" handler="on_toggle_button_switch_on" object="RegionSensitiveCheck" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@ -1668,7 +1667,6 @@ and help you install UBLinux on your computer</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property> <property name="sensitive">False</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<signal name="changed" handler="on_toggle_button_switch_on" object="RegionSensitiveCheck" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@ -1740,6 +1738,7 @@ and help you install UBLinux on your computer</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property> <property name="sensitive">False</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="placeholder-text" translatable="yes">English, U.S.A.; Russian, Russia</property>
<signal name="changed" handler="on_toggle_button_switch_on" object="LanguagesSensitiveCheck" swapped="no"/> <signal name="changed" handler="on_toggle_button_switch_on" object="LanguagesSensitiveCheck" swapped="no"/>
</object> </object>
<packing> <packing>

@ -604,6 +604,9 @@ msgstr ""
msgid "Administrator" msgid "Administrator"
msgstr "" msgstr ""
msgid "English, U.S.A.; Russian, Russia"
msgstr ""
msgid "Afrikaans" msgid "Afrikaans"
msgstr "" msgstr ""

@ -629,6 +629,9 @@ msgstr "Настройки"
msgid "Administrator" msgid "Administrator"
msgstr "Администратор" msgstr "Администратор"
msgid "English, U.S.A.; Russian, Russia"
msgstr "Английский, США; Русский, Россия"
msgid "Afrikaans" msgid "Afrikaans"
msgstr "Африканский" msgstr "Африканский"

Loading…
Cancel
Save