system default language in wizard now shows language name, patch by thanatermesis

ticket #2125


SVN revision: 82407
This commit is contained in:
Mike Blumenkrantz 2013-01-08 11:23:20 +00:00
parent 8be5b05675
commit 61c21f3629
3 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2013-01-08 Thanatermesis
* "System Default" language in wizard now displays which language it is and no longer removes language from list
2013-01-08 Mike Blumenkrantz
* Fixed bug where keyboard resizing of windows would not be possible if timeout was set to zero

1
NEWS
View File

@ -43,6 +43,7 @@ Improvements:
* No backlight dimming when in presentation mode.
* Backlight fade time only applies to dimming - undimming is fixed 0.5 .
* Added elm win trap callback for base size setting, calling this causes ICCCM hints to be applied
* "System Default" language in wizard now displays which language it is and no longer removes language from list
Fixes:
* Force check changed upon confirmation dialog closure for engine settings.

View File

@ -180,12 +180,23 @@ wizard_page_show(E_Wizard_Page *pg)
}
else
ic = NULL;
e_widget_ilist_append(ob, ic, _(pair->locale_translation),
NULL, NULL, pair->locale_key);
if (e_intl_language_get())
{
if (!strcmp(pair->locale_key, e_intl_language_get())) sel = i;
if (!strcmp(pair->locale_key, e_intl_language_get()))
{
snprintf(buf, sizeof(buf), "System Default [%s]", pair->locale_translation);
e_widget_ilist_nth_label_set(ob, 0, _(buf));
e_widget_ilist_nth_icon_set(ob, 0, ic);
sel = 0;
}
else
e_widget_ilist_append(ob, ic, _(pair->locale_translation),
NULL, NULL, pair->locale_key);
}
else
e_widget_ilist_append(ob, ic, _(pair->locale_translation),
NULL, NULL, pair->locale_key);
}
e_widget_ilist_go(ob);
e_widget_ilist_thaw(ob);