From d7b5119cb8ddb4ad08bfb827f7ebba49552c0610 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 24 Feb 2006 19:50:39 +0000 Subject: Distinguish different firefox profiles when showing the list to choose 2006-02-24 Christian Persch * src/bookmarks/ephy-bookmarks-editor.c: (add_bookmarks_source): Distinguish different firefox profiles when showing the list to choose which one to import. --- src/bookmarks/ephy-bookmarks-editor.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index 3158953d1..badf962b8 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -628,7 +628,23 @@ add_bookmarks_source (const char *file, if (strcmp (p, "firefox") == 0) { - description = g_strdup (_("Firefox")); + const char *profile = NULL, *dot; + + if (path[i+1] != NULL) + { + dot = strchr (path[i+1], '.'); + profile = dot ? dot + 1 : path[i+1]; + } + + if (profile != NULL && strcmp (profile, "default") != 0) + { + /* FIXME: proper i18n after freeze */ + description = g_strdup_printf ("%s ā€œ%sā€", _("Firefox"), profile); + } + else + { + description = g_strdup (_("Firefox")); + } } else if (strcmp (p, ".firefox") == 0) { -- cgit v1.2.3