Bug 220210 - Bookmarks root is always English "Bookmarks" if using one

profile named "default".
r=p_ch@verizon.net, sr=jag@tty.nl


git-svn-id: svn://10.0.0.236/trunk@235857 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pkw%us.ibm.com
2007-09-12 17:51:02 +00:00
parent cf034407c7
commit eec20661f6

View File

@@ -1803,8 +1803,13 @@ nsBookmarksService::Init()
}
}
if (NS_FAILED(useProfile)) {
mBookmarksRootName.Assign(NS_LITERAL_STRING("Bookmarks"));
if (NS_FAILED(useProfile))
{
rv = mBundle->GetStringFromName(NS_LITERAL_STRING("bookmarks_default_root").get(),
getter_Copies(mBookmarksRootName));
if (NS_FAILED(rv) || mBookmarksRootName.IsEmpty()) {
mBookmarksRootName.Assign(NS_LITERAL_STRING("Bookmarks"));
}
}
// Register as an observer of profile changes