[recipes] Match against translated name and description
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Match against translated name and description
- Date: Sun, 1 Jan 2017 16:06:52 +0000 (UTC)
commit fc05aa3b00e22896a73c57714c21fb51e67e1870
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 31 17:29:45 2016 -0500
Match against translated name and description
This makes the search entry behave as expected when running
in other languages.
src/gr-recipe.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-recipe.c b/src/gr-recipe.c
index 73e57df..e5279ee 100644
--- a/src/gr-recipe.c
+++ b/src/gr-recipe.c
@@ -288,8 +288,8 @@ gr_recipe_set_property (GObject *object,
g_free (self->name);
g_free (self->cf_name);
self->name = g_value_dup_string (value);
- self->cf_name = g_utf8_casefold (self->name, -1);
self->translated_name = translate_string (self->name);
+ self->cf_name = g_utf8_casefold (self->translated_name, -1);
update_mtime (self);
break;
@@ -297,8 +297,8 @@ gr_recipe_set_property (GObject *object,
g_free (self->description);
g_free (self->cf_description);
self->description = g_value_dup_string (value);
- self->cf_description = g_utf8_casefold (self->description, -1);
self->translated_description = translate_string (self->description);
+ self->cf_description = g_utf8_casefold (self->translated_description, -1);
update_mtime (self);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]