Translate strings for multichoice options.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12174 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2005-12-23 05:33:48 +00:00
parent 2e9bb02691
commit 2a8834a775
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-12-23 David Hampton <hampton@employees.org>
* src/gnome-utils/dialog-options.c: Translate strings for
multichoice options.
2005-12-22 Christian Stimming <stimming@tuhh.de>
* macros/g-wrap.m4: Copy macro file from gwrap-1.3.4 package

View File

@ -543,8 +543,12 @@ gnc_option_create_multichoice_widget(GNCOption *option)
widget = gtk_combo_box_new_text();
for (i = 0; i < num_values; i++) {
string = gnc_option_permissible_value_name(option, i);
gtk_combo_box_append_text(GTK_COMBO_BOX(widget), string);
g_free(string);
if (string) {
gtk_combo_box_append_text(GTK_COMBO_BOX(widget), _(string));
g_free(string);
} else {
gtk_combo_box_append_text(GTK_COMBO_BOX(widget), "");
}
}
g_signal_connect(G_OBJECT(widget), "changed",
G_CALLBACK(gnc_option_multichoice_cb), option);