[gnumeric] Translate directions in preferences dialog.
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Translate directions in preferences dialog.
- Date: Fri, 22 Apr 2011 08:41:55 +0000 (UTC)
commit 80a033152eaa5d8e1c3a461a7e78524cabffa748
Author: Jean Brefort <jean brefort normalesup org>
Date: Fri Apr 22 10:42:02 2011 +0200
Translate directions in preferences dialog.
ChangeLog | 4 ++++
configure.in | 2 +-
src/dialogs/ChangeLog | 5 +++++
src/dialogs/dialog-preferences.c | 7 ++++---
4 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4bd9a34..ebd4452 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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
diff --git a/configure.in b/configure.in
index fa6b48f..7d7916b 100644
--- a/configure.in
+++ b/configure.in
@@ -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
"
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 3750e88..bf1efee 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,8 @@
+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
diff --git a/src/dialogs/dialog-preferences.c b/src/dialogs/dialog-preferences.c
index b64c347..73a7ca0 100644
--- a/src/dialogs/dialog-preferences.c
+++ b/src/dialogs/dialog-preferences.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]