[gnumeric] Expression Entry: lookup the right function.



commit dfaed93c1921fa9a13c2b93bf1fe867d4caafa4f
Author: Morten Welinder <terra gnome org>
Date:   Thu Jan 10 18:30:50 2013 -0500

    Expression Entry: lookup the right function.
    
    We were unconditionally looking of untranslated function name for the
    purpose of displaying help texts.

 src/widgets/ChangeLog             |    5 +++++
 src/widgets/gnumeric-expr-entry.c |    4 +++-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/widgets/ChangeLog b/src/widgets/ChangeLog
index 9e4e0df..c7448f1 100644
--- a/src/widgets/ChangeLog
+++ b/src/widgets/ChangeLog
@@ -1,3 +1,8 @@
+2013-01-10  Morten Welinder  <terra gnome org>
+
+	* gnumeric-expr-entry.c (gee_check_tooltip): Look up translated
+	function name for help texts when appropriate.
+
 2013-01-01  Morten Welinder  <terra gnome org>
 
 	* gnumeric-expr-entry.c (cb_icon_clicked): Avoid deprecated GValueArray.
diff --git a/src/widgets/gnumeric-expr-entry.c b/src/widgets/gnumeric-expr-entry.c
index c28d171..35535ab 100644
--- a/src/widgets/gnumeric-expr-entry.c
+++ b/src/widgets/gnumeric-expr-entry.c
@@ -1207,7 +1207,9 @@ gee_check_tooltip (GnmExprEntry *gee)
 				gint end_t = (gli - 1)->end;
 				char *name = g_strndup (str + start_t,
 							end_t - start_t);
-				GnmFunc	*fd = gnm_func_lookup (name, NULL);
+				GnmFunc	*fd = gee_convs (gee)->localized_function_names
+					? gnm_func_lookup_localized (name, NULL)
+					: gnm_func_lookup (name, NULL);
 				g_free (name);
 				if (fd != NULL) {
 					gee_set_tooltip (gee, fd, args, stuff);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]