summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@gnome.hu>2011-07-05 15:53:42 +0200
committerShaun McCance <shaunm@gnome.org>2011-07-05 10:34:19 -0400
commit209e73d8a2c6fbe8f0061858f88bce9b386a1940 (patch)
tree297b7bb193b211af6154692f64da74f8554f9c1b
parent7af18960eb297a8b12fb783f6d4a865adcfc5af1 (diff)
downloadyelp-209e73d8a2c6fbe8f0061858f88bce9b386a1940.tar.gz
Mark two strings for translation, also remove unnecessary markup. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=654008
-rw-r--r--libyelp/yelp-document.c6
-rw-r--r--src/yelp-window.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/libyelp/yelp-document.c b/libyelp/yelp-document.c
index ef7af967..3fcedd1f 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 477c6aa0..e5c037e9 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 ();