summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorPaweł Forysiuk <tuxator@o2.pl>2013-05-31 01:16:20 +0200
committerPaweł Forysiuk <tuxator@o2.pl>2013-05-31 01:16:20 +0200
commit9a2a577f039b1851f8162ca4182d30cca623725c (patch)
tree375eaa86990445b8a9e12f8345c097e6c855dc7f /extensions
parent51881dff1faba912c5d6697feb10223e220f2469 (diff)
downloadmidori-9a2a577f039b1851f8162ca4182d30cca623725c.tar.gz
Add some usage info to html template, make it translatable
Diffstat (limited to 'extensions')
-rw-r--r--extensions/tabs2one.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/extensions/tabs2one.c b/extensions/tabs2one.c
index 6e09ba9d..28f496a2 100644
--- a/extensions/tabs2one.c
+++ b/extensions/tabs2one.c
@@ -235,13 +235,15 @@ tabs2one_apply_cb (GtkWidget* menuitem,
if (!tabs2one_cache_exist ())
{
- const gchar* tpl = "<html>\n"
- " <title>Tabs to One</title>\n"
- " <head><meta charset=\"utf-8\"></head>\n"
- " <body></body>\n"
- "</html>\n";
+ GString* tpl = g_string_new ("<html>\n<title>");
- g_file_set_contents(tabs2one_cache_get_filename (), tpl, -1, NULL);
+ g_string_append_printf (tpl, "%s", _("Tabs to One"));
+ g_string_append (tpl, "</title>\n<head><meta charset=\"utf-8\"></head><body>\n");
+ g_string_append_printf (tpl, "<h2>%s</h2>\n", _("Tabs you collected so far"));
+ g_string_append_printf (tpl, "<div><span>%s</span></div>\n", _("Clicking an item removes tab from the list."));
+ g_string_append (tpl, "</body>\n</html>\n");
+
+ g_file_set_contents(tabs2one_cache_get_filename (), g_string_free (tpl, FALSE), -1, NULL);
}
tab = midori_browser_add_uri (browser, tabs2one_cache_get_uri ());