[recipes] Translate chef descriptions for display
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Translate chef descriptions for display
- Date: Sun, 1 Jan 2017 16:07:47 +0000 (UTC)
commit 6709a9c84f7b9c37bdf42d65725e02c3379357b6
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jan 1 10:59:13 2017 -0500
Translate chef descriptions for display
src/gr-list-page.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-list-page.c b/src/gr-list-page.c
index a8ac46c..76de79b 100644
--- a/src/gr-list-page.c
+++ b/src/gr-list-page.c
@@ -290,6 +290,7 @@ gr_list_page_populate_from_chef (GrListPage *self,
const char *id;
char *tmp;
const char *image_path;
+ const char *description;
GtkStyleContext *context;
g_autofree char *css = NULL;
g_autoptr(GtkCssProvider) provider = NULL;
@@ -304,7 +305,10 @@ gr_list_page_populate_from_chef (GrListPage *self,
gtk_widget_hide (self->diet_description);
gtk_label_set_label (GTK_LABEL (self->chef_fullname), gr_chef_get_fullname (chef));
- gtk_label_set_markup (GTK_LABEL (self->chef_description), gr_chef_get_description (chef));
+ description = gr_chef_get_description (chef);
+ if (description[0] != '\0')
+ description = _(description);
+ gtk_label_set_markup (GTK_LABEL (self->chef_description), description);
image_path = gr_chef_get_image (chef);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]