diff options
author | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-31 17:10:01 +0000 |
---|---|---|
committer | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-31 17:10:01 +0000 |
commit | 3d329b1ab8d84570bf50fe2e2ba6c8361f4dc3ba (patch) | |
tree | f9d66e0598c97f932bb4e387885d10efc1c93ec9 | |
parent | 2b2a175e89b4f7caa54962f02e9ad0c79f52c74a (diff) | |
download | chromium_src-3d329b1ab8d84570bf50fe2e2ba6c8361f4dc3ba.zip chromium_src-3d329b1ab8d84570bf50fe2e2ba6c8361f4dc3ba.tar.gz chromium_src-3d329b1ab8d84570bf50fe2e2ba6c8361f4dc3ba.tar.bz2 |
Display "No suggestions found" for misspelled words with no suggestions.
Issue=1677
Review URL: http://codereview.chromium.org/8408
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4289 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/render_view_context_menu.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/render_view_context_menu.cc b/chrome/browser/render_view_context_menu.cc index 105d6d8..81cf1ad 100644 --- a/chrome/browser/render_view_context_menu.cc +++ b/chrome/browser/render_view_context_menu.cc @@ -8,6 +8,7 @@ #include "chrome/app/chrome_dll_resource.h" #include "chrome/browser/profile.h" #include "chrome/browser/template_url_model.h" +#include "chrome/common/l10n_util.h" #include "webkit/glue/context_node_types.h" #include "generated_resources.h" @@ -126,6 +127,10 @@ void RenderViewContextMenu::AppendEditableItems() { // If word is misspelled, give option for "Add to dictionary" if (!misspelled_word_.empty()) { + if (misspelled_word_suggestions_.size() == 0) { + AppendMenuItemWithLabel(0, + l10n_util::GetString(IDS_CONTENT_CONTEXT_NO_SPELLING_SUGGESTIONS)); + } AppendDelegateMenuItem(IDS_CONTENT_CONTEXT_ADD_TO_DICTIONARY); AppendSeparator(); } |