Commit 80a03315 authored by Jean Bréfort's avatar Jean Bréfort

Translate directions in preferences dialog.

parent 8574c3d9
2011-04-22 Jean Brefort <jean.brefort@normalesup.org>
* configure.in: requires libgoffice >= 0.8.15.
2011-04-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/stf.c (stf_warning): new
......
......@@ -146,7 +146,7 @@ PKG_PROG_PKG_CONFIG(0.18)
dnl *****************************
libspreadsheet_reqs="
libgoffice-${GOFFICE_API_VER} >= 0.8.10
libgoffice-${GOFFICE_API_VER} >= 0.8.15
libgsf-1 >= 1.14.18
libxml-2.0 >= 2.4.12
"
......
2011-04-22 Jean Brefort <jean.brefort@normalesup.org>
* dialog-preferences.c (enum_pref_create_widget),
(pref_tool_page_initializer): translate GODirection nicks.
2011-04-13 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* dialog-autofilter.c (cb_top10_count_changed): use the true count
......
......@@ -274,7 +274,8 @@ enum_pref_create_widget (GOConfNode *node, GtkWidget *table,
gint row, GType enum_type,
enum_conf_setter_t setter,
enum_conf_getter_t getter,
gchar const *default_label)
gchar const *default_label,
char const *(*label_getter)(int))
{
unsigned int i;
GtkTreeIter iter;
......@@ -289,7 +290,7 @@ enum_pref_create_widget (GOConfNode *node, GtkWidget *table,
for (i = 0; i < enum_class->n_values ; i++) {
gtk_list_store_append (model, &iter);
gtk_list_store_set (model, &iter,
0, enum_class->values[i].value_nick,
0, label_getter ((int) enum_class->values[i].value),
1, enum_class->values + i,
-1);
if (enum_class->values[i].value == current)
......@@ -1017,7 +1018,7 @@ pref_tool_page_initializer (PrefState *state,
GO_TYPE_DIRECTION,
(enum_conf_setter_t)gnm_conf_set_core_gui_editing_enter_moves_dir,
(enum_conf_getter_t)gnm_conf_get_core_gui_editing_enter_moves_dir,
_("Enter _Moves Selection"));
_("Enter _Moves Selection"), (char const *(*) (int)) go_direction_get_name);
bool_pref_create_widget (gnm_conf_get_core_gui_editing_transitionkeys_node (),
page, row++,
gnm_conf_set_core_gui_editing_transitionkeys,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment