[yelp] Mark two strings for translation, also remove unnecessary markup. Fixes: https://bugzilla.gnome.org/
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] Mark two strings for translation, also remove unnecessary markup. Fixes: https://bugzilla.gnome.org/
- Date: Tue, 5 Jul 2011 14:30:12 +0000 (UTC)
commit 209e73d8a2c6fbe8f0061858f88bce9b386a1940
Author: Gabor Kelemen <kelemeng gnome hu>
Date: Tue Jul 5 15:53:42 2011 +0200
Mark two strings for translation, also remove unnecessary markup. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=654008
libyelp/yelp-document.c | 6 ++++--
src/yelp-window.c | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libyelp/yelp-document.c b/libyelp/yelp-document.c
index ef7af96..3fcedd1 100644
--- a/libyelp/yelp-document.c
+++ b/libyelp/yelp-document.c
@@ -882,7 +882,7 @@ document_read_contents (YelpDocument *document,
g_mutex_lock (document->priv->mutex);
if (page_id != NULL && g_str_has_prefix (page_id, "search=")) {
- gchar *tmp, *txt;
+ gchar *tmp, *tmp2, *txt;
GVariant *value;
GVariantIter *iter;
gchar *url, *title, *desc, *icon; /* do not free */
@@ -953,8 +953,10 @@ document_read_contents (YelpDocument *document,
}
txt = g_uri_unescape_string (page_id + 7, NULL);
- tmp = g_markup_printf_escaped ("<h1>Search results for â%sâ</h1>", txt);
+ tmp2 = g_strdup_printf (_("Search results for â%sâ"), txt);
+ tmp = g_markup_printf_escaped ("<h1>%s</h1>", tmp2);
g_string_append (ret, tmp);
+ g_free (tmp2);
g_free (tmp);
value = yelp_storage_search (yelp_storage_get_default (),
diff --git a/src/yelp-window.c b/src/yelp-window.c
index 477c6aa..e5c037e 100644
--- a/src/yelp-window.c
+++ b/src/yelp-window.c
@@ -523,7 +523,7 @@ window_construct (YelpWindow *window)
"margin-right", 16,
NULL);
- label = gtk_label_new ("Find:");
+ label = gtk_label_new (_("Find:"));
gtk_box_pack_start (GTK_BOX (priv->find_bar), label, FALSE, FALSE, 6);
priv->find_entry = gtk_entry_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]