зеркало из https://github.com/mozilla/pjs.git
Bug 220210 - Bookmarks root is always English "Bookmarks" if using one
profile named "default". r=p_ch@verizon.net, sr=jag@tty.nl
This commit is contained in:
Родитель
ad24d52e13
Коммит
1690dbf05d
|
@ -63,6 +63,7 @@ search_results_title = Search Results
|
|||
|
||||
file_in = File in "%S"
|
||||
|
||||
bookmarks_default_root = Bookmarks
|
||||
bookmarks_root = Bookmarks for %S
|
||||
bookmarks_title = Bookmark Manager
|
||||
status_foldercount = %S object(s)
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче