Changeset 18554 in webkit


Ignore:
Timestamp:
Jan 3, 2007 3:38:28 PM (17 years ago)
Author:
bdakin
Message:

WebCore:

Reviewed by John.

Call into WebKit to get localized strings for all of the context
menu item titles.

WebKit:

Reviewed by John.

Make localized strings for all of the context menu item titles that
are accessible to WebCore.

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r18553 r18554  
     12007-01-03  Beth Dakin  <bdakin@apple.com>
     2
     3        Reviewed by John.
     4
     5        Call into WebKit to get localized strings for all of the context
     6        menu item titles.
     7
     8        * page/mac/WebCoreViewFactory.h:
     9        * platform/ContextMenu.cpp:
     10        (WebCore::createAndAppendFontSubMenu):
     11        (WebCore::createAndAppendSpellingAndGrammarSubMenu):
     12        (WebCore::createAndAppendSpellingSubMenu):
     13        (WebCore::createAndAppendSpeechSubMenu):
     14        (WebCore::createAndAppendWritingDirectionSubMenu):
     15        (WebCore::ContextMenu::populate):
     16        (WebCore::ContextMenu::checkOrEnableIfNeeded):
     17        * platform/LocalizedStrings.h:
     18        * platform/mac/LocalizedStringsMac.mm:
     19        (WebCore::contextMenuItemTagOpenLinkInNewWindow):
     20        (WebCore::contextMenuItemTagDownloadLinkToDisk):
     21        (WebCore::contextMenuItemTagCopyLinkToClipboard):
     22        (WebCore::contextMenuItemTagOpenImageInNewWindow):
     23        (WebCore::contextMenuItemTagDownloadImageToDisk):
     24        (WebCore::contextMenuItemTagCopyImageToClipboard):
     25        (WebCore::contextMenuItemTagOpenFrameInNewWindow):
     26        (WebCore::contextMenuItemTagCopy):
     27        (WebCore::contextMenuItemTagGoBack):
     28        (WebCore::contextMenuItemTagGoForward):
     29        (WebCore::contextMenuItemTagStop):
     30        (WebCore::contextMenuItemTagReload):
     31        (WebCore::contextMenuItemTagCut):
     32        (WebCore::contextMenuItemTagPaste):
     33        (WebCore::contextMenuItemTagNoGuessesFound):
     34        (WebCore::contextMenuItemTagIgnoreSpelling):
     35        (WebCore::contextMenuItemTagLearnSpelling):
     36        (WebCore::contextMenuItemTagSearchInSpotlight):
     37        (WebCore::contextMenuItemTagSearchWeb):
     38        (WebCore::contextMenuItemTagLookUpInDictionary):
     39        (WebCore::contextMenuItemTagOpenLink):
     40        (WebCore::contextMenuItemTagIgnoreGrammar):
     41        (WebCore::contextMenuItemTagSpellingMenu):
     42        (WebCore::contextMenuItemTagShowSpellingPanel):
     43        (WebCore::contextMenuItemTagCheckSpelling):
     44        (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
     45        (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
     46        (WebCore::contextMenuItemTagFontMenu):
     47        (WebCore::contextMenuItemTagShowFonts):
     48        (WebCore::contextMenuItemTagBold):
     49        (WebCore::contextMenuItemTagItalic):
     50        (WebCore::contextMenuItemTagUnderline):
     51        (WebCore::contextMenuItemTagOutline):
     52        (WebCore::contextMenuItemTagStyles):
     53        (WebCore::contextMenuItemTagShowColors):
     54        (WebCore::contextMenuItemTagSpeechMenu):
     55        (WebCore::contextMenuItemTagStartSpeaking):
     56        (WebCore::contextMenuItemTagStopSpeaking):
     57        (WebCore::contextMenuItemTagWritingDirectionMenu):
     58        (WebCore::contextMenuItemTagDefaultDirection):
     59        (WebCore::contextMenuItemTagLeftToRight):
     60        (WebCore::contextMenuItemTagRightToLeft):
     61
    1622007-01-03  Brady Eidson  <beidson@apple.com>
    263
  • trunk/WebCore/page/mac/WebCoreViewFactory.h

    r18169 r18554  
    4646- (NSString *)fileButtonNoFileSelectedLabel;
    4747
     48// Context menu item titles
     49- (NSString *)contextMenuItemTagOpenLinkInNewWindow;
     50- (NSString *)contextMenuItemTagDownloadLinkToDisk;
     51- (NSString *)contextMenuItemTagCopyLinkToClipboard;
     52- (NSString *)contextMenuItemTagOpenImageInNewWindow;
     53- (NSString *)contextMenuItemTagDownloadImageToDisk;
     54- (NSString *)contextMenuItemTagCopyImageToClipboard;
     55- (NSString *)contextMenuItemTagOpenFrameInNewWindow;
     56- (NSString *)contextMenuItemTagCopy;
     57- (NSString *)contextMenuItemTagGoBack;
     58- (NSString *)contextMenuItemTagGoForward;
     59- (NSString *)contextMenuItemTagStop;
     60- (NSString *)contextMenuItemTagReload;
     61- (NSString *)contextMenuItemTagCut;
     62- (NSString *)contextMenuItemTagPaste;
     63- (NSString *)contextMenuItemTagNoGuessesFound;
     64- (NSString *)contextMenuItemTagIgnoreSpelling;
     65- (NSString *)contextMenuItemTagLearnSpelling;
     66- (NSString *)contextMenuItemTagSearchInSpotlight;
     67- (NSString *)contextMenuItemTagSearchWeb;
     68- (NSString *)contextMenuItemTagLookUpInDictionary;
     69- (NSString *)contextMenuItemTagOpenLink;
     70- (NSString *)contextMenuItemTagIgnoreGrammar;
     71- (NSString *)contextMenuItemTagSpellingMenu;
     72- (NSString *)contextMenuItemTagShowSpellingPanel:(bool)show;
     73- (NSString *)contextMenuItemTagCheckSpelling;
     74- (NSString *)contextMenuItemTagCheckSpellingWhileTyping;
     75- (NSString *)contextMenuItemTagCheckGrammarWithSpelling;
     76- (NSString *)contextMenuItemTagFontMenu;
     77- (NSString *)contextMenuItemTagShowFonts;
     78- (NSString *)contextMenuItemTagBold;
     79- (NSString *)contextMenuItemTagItalic;
     80- (NSString *)contextMenuItemTagUnderline;
     81- (NSString *)contextMenuItemTagOutline;
     82- (NSString *)contextMenuItemTagStyles;
     83- (NSString *)contextMenuItemTagShowColors;
     84- (NSString *)contextMenuItemTagSpeechMenu;
     85- (NSString *)contextMenuItemTagStartSpeaking;
     86- (NSString *)contextMenuItemTagStopSpeaking;
     87- (NSString *)contextMenuItemTagWritingDirectionMenu;
     88- (NSString *)contextMenuItemTagDefaultDirection;
     89- (NSString *)contextMenuItemTagLeftToRight;
     90- (NSString *)contextMenuItemTagRightToLeft;
     91
    4892- (NSMenu *)cellMenuForSearchField;
    4993
  • trunk/WebCore/platform/ContextMenu.cpp

    r18530 r18554  
    3636#include "FrameLoader.h"
    3737#include "KURL.h"
     38#include "LocalizedStrings.h"
    3839#include "Node.h"
    3940#include "Page.h"
     
    6263    ContextMenu* fontMenu = new ContextMenu(result);
    6364#if PLATFORM(MAC)
    64     ContextMenuItem showFonts(ActionType, ContextMenuItemTagShowFonts, "Show Fonts");
    65 #endif
    66     ContextMenuItem bold(ActionType, ContextMenuItemTagBold, "Bold");
    67     ContextMenuItem italic(ActionType, ContextMenuItemTagItalic, "Italic");
    68     ContextMenuItem underline(ActionType, ContextMenuItemTagUnderline, "Underline");
    69     ContextMenuItem outline(ActionType, ContextMenuItemTagOutline, "Outline");
    70 #if PLATFORM(MAC)
    71     ContextMenuItem styles(ActionType, ContextMenuItemTagStyles, "Styles...");
    72     ContextMenuItem showColors(ActionType, ContextMenuItemTagShowColors, "Show Colors");
     65    ContextMenuItem showFonts(ActionType, ContextMenuItemTagShowFonts, contextMenuItemTagShowFonts());
     66#endif
     67    ContextMenuItem bold(ActionType, ContextMenuItemTagBold, contextMenuItemTagBold());
     68    ContextMenuItem italic(ActionType, ContextMenuItemTagItalic, contextMenuItemTagItalic());
     69    ContextMenuItem underline(ActionType, ContextMenuItemTagUnderline, contextMenuItemTagUnderline());
     70    ContextMenuItem outline(ActionType, ContextMenuItemTagOutline, contextMenuItemTagOutline());
     71#if PLATFORM(MAC)
     72    ContextMenuItem styles(ActionType, ContextMenuItemTagStyles, contextMenuItemTagStyles());
     73    ContextMenuItem showColors(ActionType, ContextMenuItemTagShowColors, contextMenuItemTagShowColors());
    7374#endif
    7475
     
    9394{
    9495    ContextMenu* spellingAndGrammarMenu = new ContextMenu(result);
    95     ContextMenuItem showSpellingPanel(ActionType, ContextMenuItemTagShowSpellingPanel, "Show Spelling and Grammar");
    96     ContextMenuItem checkSpelling(ActionType, ContextMenuItemTagCheckSpelling, "Check Document Now");
    97     ContextMenuItem checkAsYouType(ActionType, ContextMenuItemTagCheckSpellingWhileTyping, "Check Spelling While Typing");
    98     ContextMenuItem grammarWithSpelling(ActionType, ContextMenuItemTagCheckGrammarWithSpelling, "Check Grammar With Spelling");
     96    ContextMenuItem showSpellingPanel(ActionType, ContextMenuItemTagShowSpellingPanel,
     97        contextMenuItemTagShowSpellingPanel(true));
     98    ContextMenuItem checkSpelling(ActionType, ContextMenuItemTagCheckSpelling,
     99        contextMenuItemTagCheckSpelling());
     100    ContextMenuItem checkAsYouType(ActionType, ContextMenuItemTagCheckSpellingWhileTyping,
     101        contextMenuItemTagCheckSpellingWhileTyping());
     102    ContextMenuItem grammarWithSpelling(ActionType, ContextMenuItemTagCheckGrammarWithSpelling,
     103        contextMenuItemTagCheckGrammarWithSpelling());
    99104
    100105    spellingAndGrammarMenu->appendItem(showSpellingPanel);
     
    110115{
    111116    ContextMenu* spellingMenu = new ContextMenu(result);
    112     ContextMenuItem showSpellingPanel(ActionType, ContextMenuItemTagShowSpellingPanel, "Spelling...");
    113     ContextMenuItem checkSpelling(ActionType, ContextMenuItemTagCheckSpelling, "Check Spelling");
    114     ContextMenuItem checkAsYouType(ActionType, ContextMenuItemTagCheckSpellingWhileTyping, "Check Spelling as You Type");
     117    ContextMenuItem showSpellingPanel(ActionType, ContextMenuItemTagShowSpellingPanel,
     118        contextMenuItemTagShowSpellingPanel(true));
     119    ContextMenuItem checkSpelling(ActionType, ContextMenuItemTagCheckSpelling,
     120        contextMenuItemTagCheckSpelling());
     121    ContextMenuItem checkAsYouType(ActionType, ContextMenuItemTagCheckSpellingWhileTyping,
     122        contextMenuItemTagCheckSpellingWhileTyping());
    115123
    116124    spellingMenu->appendItem(showSpellingPanel);
     
    125133{
    126134    ContextMenu* speechMenu = new ContextMenu(result);
    127     ContextMenuItem start(ActionType, ContextMenuItemTagStartSpeaking, "Start Speaking");
    128     ContextMenuItem stop(ActionType, ContextMenuItemTagStartSpeaking, "Stop Speaking");
     135    ContextMenuItem start(ActionType, ContextMenuItemTagStartSpeaking, contextMenuItemTagStartSpeaking());
     136    ContextMenuItem stop(ActionType, ContextMenuItemTagStartSpeaking, contextMenuItemTagStartSpeaking());
    129137
    130138    speechMenu->appendItem(start);
     
    137145{
    138146    ContextMenu* writingDirectionMenu = new ContextMenu(result);
    139     ContextMenuItem defaultItem(ActionType, ContextMenuItemTagDefaultDirection, "Default");
    140     ContextMenuItem ltr(ActionType, ContextMenuItemTagLeftToRight, "Left to Right");
    141     ContextMenuItem rtl(ActionType, ContextMenuItemTagRightToLeft, "Right to Left");
     147    ContextMenuItem defaultItem(ActionType, ContextMenuItemTagDefaultDirection,
     148        contextMenuItemTagDefaultDirection());
     149    ContextMenuItem ltr(ActionType, ContextMenuItemTagLeftToRight, contextMenuItemTagLeftToRight());
     150    ContextMenuItem rtl(ActionType, ContextMenuItemTagRightToLeft, contextMenuItemTagRightToLeft());
    142151
    143152    writingDirectionMenu->appendItem(defaultItem);
     
    150159void ContextMenu::populate()
    151160{
    152     ContextMenuItem OpenLinkItem(ActionType, ContextMenuItemTagOpenLink, "Open Link");
    153     ContextMenuItem OpenLinkInNewWindowItem(ActionType, ContextMenuItemTagOpenLinkInNewWindow, "Open Link in New Window");
    154     ContextMenuItem DownloadFileItem(ActionType, ContextMenuItemTagDownloadLinkToDisk, "Download Linked File");
    155     ContextMenuItem CopyLinkItem(ActionType, ContextMenuItemTagCopyLinkToClipboard, "Copy Link");
    156     ContextMenuItem OpenImageInNewWindowItem(ActionType, ContextMenuItemTagOpenImageInNewWindow, "Open Image in New Window");
    157     ContextMenuItem DownloadImageItem(ActionType, ContextMenuItemTagDownloadImageToDisk, "Download Image");
    158     ContextMenuItem CopyImageItem(ActionType, ContextMenuItemTagCopyImageToClipboard, "Copy Image");
    159 #if PLATFORM(MAC)
    160     ContextMenuItem SearchSpotlightItem(ActionType, ContextMenuItemTagSearchInSpotlight, "Search in Spotlight");
    161 #endif
    162     ContextMenuItem SearchWebItem(ActionType, ContextMenuItemTagSearchWeb, "Search in Google");
    163     ContextMenuItem LookInDictionaryItem(ActionType, ContextMenuItemTagLookUpInDictionary, "Look Up in Dictionary");
    164     ContextMenuItem CopyItem(ActionType, ContextMenuItemTagCopy, "Copy");
    165     ContextMenuItem BackItem(ActionType, ContextMenuItemTagGoBack, "Back");
    166     ContextMenuItem ForwardItem(ActionType, ContextMenuItemTagGoForward,  "Forward");
    167     ContextMenuItem StopItem(ActionType, ContextMenuItemTagStop, "Stop");
    168     ContextMenuItem ReloadItem(ActionType, ContextMenuItemTagReload, "Reload");
    169     ContextMenuItem OpenFrameItem(ActionType, ContextMenuItemTagOpenFrameInNewWindow, "Open Frame in New Window");
    170     ContextMenuItem NowGuessesItem(ActionType, ContextMenuItemTagNoGuessesFound, "No Guesses Found");
    171     ContextMenuItem IgnoreSpellingItem(ActionType, ContextMenuItemTagIgnoreSpelling, "Ignore Spelling");
    172     ContextMenuItem LearnSpellingItem(ActionType, ContextMenuItemTagLearnSpelling, "Learn Spelling");
    173     ContextMenuItem IgnoreGrammarItem(ActionType, ContextMenuItemTagIgnoreGrammar, "Ignore Grammar");
    174     ContextMenuItem CutItem(ActionType, ContextMenuItemTagCut, "Cut");
    175     ContextMenuItem PasteItem(ActionType, ContextMenuItemTagPaste, "Paste");
     161    ContextMenuItem OpenLinkItem(ActionType, ContextMenuItemTagOpenLink, contextMenuItemTagOpenLink());
     162    ContextMenuItem OpenLinkInNewWindowItem(ActionType, ContextMenuItemTagOpenLinkInNewWindow,
     163        contextMenuItemTagOpenLinkInNewWindow());
     164    ContextMenuItem DownloadFileItem(ActionType, ContextMenuItemTagDownloadLinkToDisk,
     165        contextMenuItemTagDownloadLinkToDisk());
     166    ContextMenuItem CopyLinkItem(ActionType, ContextMenuItemTagCopyLinkToClipboard,
     167        contextMenuItemTagCopyLinkToClipboard());
     168    ContextMenuItem OpenImageInNewWindowItem(ActionType, ContextMenuItemTagOpenImageInNewWindow,
     169        contextMenuItemTagOpenImageInNewWindow());
     170    ContextMenuItem DownloadImageItem(ActionType, ContextMenuItemTagDownloadImageToDisk,
     171        contextMenuItemTagDownloadImageToDisk());
     172    ContextMenuItem CopyImageItem(ActionType, ContextMenuItemTagCopyImageToClipboard,
     173        contextMenuItemTagCopyImageToClipboard());
     174#if PLATFORM(MAC)
     175    ContextMenuItem SearchSpotlightItem(ActionType, ContextMenuItemTagSearchInSpotlight,
     176        contextMenuItemTagSearchInSpotlight());
     177#endif
     178    ContextMenuItem SearchWebItem(ActionType, ContextMenuItemTagSearchWeb, contextMenuItemTagSearchWeb());
     179    ContextMenuItem LookInDictionaryItem(ActionType, ContextMenuItemTagLookUpInDictionary,
     180        contextMenuItemTagLookUpInDictionary());
     181    ContextMenuItem CopyItem(ActionType, ContextMenuItemTagCopy, contextMenuItemTagCopy());
     182    ContextMenuItem BackItem(ActionType, ContextMenuItemTagGoBack, contextMenuItemTagGoBack());
     183    ContextMenuItem ForwardItem(ActionType, ContextMenuItemTagGoForward,  contextMenuItemTagGoForward());
     184    ContextMenuItem StopItem(ActionType, ContextMenuItemTagStop, contextMenuItemTagStop());
     185    ContextMenuItem ReloadItem(ActionType, ContextMenuItemTagReload, contextMenuItemTagReload());
     186    ContextMenuItem OpenFrameItem(ActionType, ContextMenuItemTagOpenFrameInNewWindow,
     187        contextMenuItemTagOpenFrameInNewWindow());
     188    ContextMenuItem NowGuessesItem(ActionType, ContextMenuItemTagNoGuessesFound,
     189        contextMenuItemTagNoGuessesFound());
     190    ContextMenuItem IgnoreSpellingItem(ActionType, ContextMenuItemTagIgnoreSpelling,
     191        contextMenuItemTagIgnoreSpelling());
     192    ContextMenuItem LearnSpellingItem(ActionType, ContextMenuItemTagLearnSpelling,
     193        contextMenuItemTagLearnSpelling());
     194    ContextMenuItem IgnoreGrammarItem(ActionType, ContextMenuItemTagIgnoreGrammar,
     195        contextMenuItemTagIgnoreGrammar());
     196    ContextMenuItem CutItem(ActionType, ContextMenuItemTagCut, contextMenuItemTagCut());
     197    ContextMenuItem PasteItem(ActionType, ContextMenuItemTagPaste, contextMenuItemTagPaste());
    176198   
    177199    HitTestResult result = hitTestResult();
     
    292314            appendItem(*separatorItem());
    293315#ifndef BUILDING_ON_TIGER
    294             ContextMenuItem SpellingAndGrammarMenuItem(SubmenuType, ContextMenuItemTagSpellingMenu, "Spelling and Grammar");
     316            ContextMenuItem SpellingAndGrammarMenuItem(SubmenuType, ContextMenuItemTagSpellingMenu,
     317                contextMenuItemTagSpellingMenu());
    295318            createAndAppendSpellingAndGrammarSubMenu(m_hitTestResult, SpellingAndGrammarMenuItem);
    296319            appendItem(SpellingAndGrammarMenuItem);
    297320#else
    298             ContextMenuItem SpellingMenuItem(SubmenuType, ContextMenuItemTagSpellingMenu, "Spelling");
     321            ContextMenuItem SpellingMenuItem(SubmenuType, ContextMenuItemTagSpellingMenu,
     322                contextMenuItemTagSpellingMenu());
    299323            createAndAppendSpellingSubMenu(m_hitTestResult, SpellingMenuItem);
    300324            appendItem(SpellingMenuItem);
    301325#endif
    302             ContextMenuItem  FontMenuItem(SubmenuType, ContextMenuItemTagFontMenu, "Font");
     326            ContextMenuItem  FontMenuItem(SubmenuType, ContextMenuItemTagFontMenu,
     327                contextMenuItemTagFontMenu());
    303328            createAndAppendFontSubMenu(m_hitTestResult, FontMenuItem);
    304329            appendItem(FontMenuItem);
    305330#if PLATFORM(MAC)
    306             ContextMenuItem SpeechMenuItem(SubmenuType, ContextMenuItemTagSpeechMenu, "Speech");
     331            ContextMenuItem SpeechMenuItem(SubmenuType, ContextMenuItemTagSpeechMenu,
     332                contextMenuItemTagSpeechMenu());
    307333            createAndAppendSpeechSubMenu(m_hitTestResult, SpeechMenuItem);
    308334            appendItem(SpeechMenuItem);
    309335#endif
    310             ContextMenuItem WritingDirectionMenuItem(SubmenuType, ContextMenuItemTagWritingDirectionMenu, "Writing Direction");
     336            ContextMenuItem WritingDirectionMenuItem(SubmenuType, ContextMenuItemTagWritingDirectionMenu,
     337                contextMenuItemTagWritingDirectionMenu());
    311338            createAndAppendWritingDirectionSubMenu(m_hitTestResult, WritingDirectionMenuItem);
    312339            appendItem(WritingDirectionMenuItem);
     
    409436#ifndef BUILDING_ON_TIGER
    410437            if (frame->editor()->spellingPanelIsShowing())
    411                 item.setTitle(String("Hide Spelling and Grammar")); // With UI_STRING this also sends "menu item title" as a parameter
     438                item.setTitle(contextMenuItemTagWritingDirectionMenu(false));
    412439            else
    413                 item.setTitle(String("Show Spelling and Grammar")); // With UI_STRING this also sends "menu item title" as a parameter
     440                item.setTitle(contextMenuItemTagWritingDirectionMenu(true));
    414441#endif
    415442            shouldEnable = frame->editor()->canEdit();
  • trunk/WebCore/platform/LocalizedStrings.h

    r16323 r18554  
    3737    String fileButtonChooseFileLabel();
    3838    String fileButtonNoFileSelectedLabel();
     39    String contextMenuItemTagOpenLinkInNewWindow();
     40    String contextMenuItemTagDownloadLinkToDisk();
     41    String contextMenuItemTagCopyLinkToClipboard();
     42    String contextMenuItemTagOpenImageInNewWindow();
     43    String contextMenuItemTagDownloadImageToDisk();
     44    String contextMenuItemTagCopyImageToClipboard();
     45    String contextMenuItemTagOpenFrameInNewWindow();
     46    String contextMenuItemTagCopy();
     47    String contextMenuItemTagGoBack();
     48    String contextMenuItemTagGoForward();
     49    String contextMenuItemTagStop();
     50    String contextMenuItemTagReload();
     51    String contextMenuItemTagCut();
     52    String contextMenuItemTagPaste();
     53    String contextMenuItemTagNoGuessesFound();
     54    String contextMenuItemTagIgnoreSpelling();
     55    String contextMenuItemTagLearnSpelling();
     56    String contextMenuItemTagSearchWeb();
     57    String contextMenuItemTagLookUpInDictionary();
     58    String contextMenuItemTagOpenLink();
     59    String contextMenuItemTagIgnoreGrammar();
     60    String contextMenuItemTagSpellingMenu();
     61    String contextMenuItemTagShowSpellingPanel(bool show);
     62    String contextMenuItemTagCheckSpelling();
     63    String contextMenuItemTagCheckSpellingWhileTyping();
     64    String contextMenuItemTagCheckGrammarWithSpelling();
     65    String contextMenuItemTagFontMenu();
     66    String contextMenuItemTagBold();
     67    String contextMenuItemTagItalic();
     68    String contextMenuItemTagUnderline();
     69    String contextMenuItemTagOutline();
     70    String contextMenuItemTagWritingDirectionMenu();
     71    String contextMenuItemTagDefaultDirection();
     72    String contextMenuItemTagLeftToRight();
     73    String contextMenuItemTagRightToLeft();
     74#if PLATFORM(MAC)
     75    String contextMenuItemTagSearchInSpotlight();
     76    String contextMenuItemTagShowFonts();
     77    String contextMenuItemTagStyles();
     78    String contextMenuItemTagShowColors();
     79    String contextMenuItemTagSpeechMenu();
     80    String contextMenuItemTagStartSpeaking();
     81    String contextMenuItemTagStopSpeaking();
     82#endif
    3983
    4084}
  • trunk/WebCore/platform/mac/LocalizedStringsMac.mm

    r16323 r18554  
    8181}
    8282
    83 }
     83String contextMenuItemTagOpenLinkInNewWindow()
     84{
     85    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     86    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagOpenLinkInNewWindow];
     87    END_BLOCK_OBJC_EXCEPTIONS;
     88    return String();
     89}
     90
     91String contextMenuItemTagDownloadLinkToDisk()
     92{
     93    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     94    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagDownloadLinkToDisk];
     95    END_BLOCK_OBJC_EXCEPTIONS;
     96    return String();
     97}
     98
     99String contextMenuItemTagCopyLinkToClipboard()
     100{
     101    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     102    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagCopyLinkToClipboard];
     103    END_BLOCK_OBJC_EXCEPTIONS;
     104    return String();
     105}
     106
     107String contextMenuItemTagOpenImageInNewWindow()
     108{
     109    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     110    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagOpenImageInNewWindow];
     111    END_BLOCK_OBJC_EXCEPTIONS;
     112    return String();
     113}
     114
     115String contextMenuItemTagDownloadImageToDisk()
     116{
     117    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     118    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagDownloadImageToDisk];
     119    END_BLOCK_OBJC_EXCEPTIONS;
     120    return String();
     121}
     122
     123String contextMenuItemTagCopyImageToClipboard()
     124{
     125    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     126    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagCopyImageToClipboard];
     127    END_BLOCK_OBJC_EXCEPTIONS;
     128    return String();
     129}
     130
     131String contextMenuItemTagOpenFrameInNewWindow()
     132{
     133    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     134    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagOpenFrameInNewWindow];
     135    END_BLOCK_OBJC_EXCEPTIONS;
     136    return String();
     137}
     138
     139String contextMenuItemTagCopy()
     140{
     141    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     142    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagCopy];
     143    END_BLOCK_OBJC_EXCEPTIONS;
     144    return String();
     145}
     146
     147String contextMenuItemTagGoBack()
     148{
     149    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     150    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagGoBack];
     151    END_BLOCK_OBJC_EXCEPTIONS;
     152    return String();
     153}
     154
     155String contextMenuItemTagGoForward()
     156{
     157    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     158    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagGoForward];
     159    END_BLOCK_OBJC_EXCEPTIONS;
     160    return String();
     161}
     162
     163String contextMenuItemTagStop()
     164{
     165    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     166    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagStop];
     167    END_BLOCK_OBJC_EXCEPTIONS;
     168    return String();
     169}
     170
     171String contextMenuItemTagReload()
     172{
     173    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     174    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagReload];
     175    END_BLOCK_OBJC_EXCEPTIONS;
     176    return String();
     177}
     178
     179String contextMenuItemTagCut()
     180{
     181    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     182    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagCut];
     183    END_BLOCK_OBJC_EXCEPTIONS;
     184    return String();
     185}
     186
     187String contextMenuItemTagPaste()
     188{
     189    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     190    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagPaste];
     191    END_BLOCK_OBJC_EXCEPTIONS;
     192    return String();
     193}
     194
     195String contextMenuItemTagNoGuessesFound()
     196{
     197    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     198    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagNoGuessesFound];
     199    END_BLOCK_OBJC_EXCEPTIONS;
     200    return String();
     201}
     202
     203String contextMenuItemTagIgnoreSpelling()
     204{
     205    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     206    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagIgnoreSpelling];
     207    END_BLOCK_OBJC_EXCEPTIONS;
     208    return String();
     209}
     210
     211String contextMenuItemTagLearnSpelling()
     212{
     213    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     214    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagLearnSpelling];
     215    END_BLOCK_OBJC_EXCEPTIONS;
     216    return String();
     217}
     218
     219String contextMenuItemTagSearchInSpotlight()
     220{
     221    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     222    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagSearchInSpotlight];
     223    END_BLOCK_OBJC_EXCEPTIONS;
     224    return String();
     225}
     226
     227String contextMenuItemTagSearchWeb()
     228{
     229    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     230    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagSearchWeb];
     231    END_BLOCK_OBJC_EXCEPTIONS;
     232    return String();
     233}
     234
     235String contextMenuItemTagLookUpInDictionary()
     236{
     237    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     238    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagLookUpInDictionary];
     239    END_BLOCK_OBJC_EXCEPTIONS;
     240    return String();
     241}
     242
     243String contextMenuItemTagOpenLink()
     244{
     245    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     246    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagOpenLink];
     247    END_BLOCK_OBJC_EXCEPTIONS;
     248    return String();
     249}
     250
     251String contextMenuItemTagIgnoreGrammar()
     252{
     253    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     254    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagIgnoreGrammar];
     255    END_BLOCK_OBJC_EXCEPTIONS;
     256    return String();
     257}
     258
     259String contextMenuItemTagSpellingMenu()
     260{
     261    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     262    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagSpellingMenu];
     263    END_BLOCK_OBJC_EXCEPTIONS;
     264    return String();
     265}
     266
     267String contextMenuItemTagShowSpellingPanel(bool show)
     268{
     269    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     270    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagShowSpellingPanel:show];
     271    END_BLOCK_OBJC_EXCEPTIONS;
     272    return String();
     273}
     274
     275String contextMenuItemTagCheckSpelling()
     276{
     277    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     278    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagCheckSpelling];
     279    END_BLOCK_OBJC_EXCEPTIONS;
     280    return String();
     281}
     282
     283String contextMenuItemTagCheckSpellingWhileTyping()
     284{
     285    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     286    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagCheckSpellingWhileTyping];
     287    END_BLOCK_OBJC_EXCEPTIONS;
     288    return String();
     289}
     290
     291String contextMenuItemTagCheckGrammarWithSpelling()
     292{
     293    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     294    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagCheckGrammarWithSpelling];
     295    END_BLOCK_OBJC_EXCEPTIONS;
     296    return String();
     297}
     298
     299String contextMenuItemTagFontMenu()
     300{
     301    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     302    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagFontMenu];
     303    END_BLOCK_OBJC_EXCEPTIONS;
     304    return String();
     305}
     306
     307String contextMenuItemTagShowFonts()
     308{
     309    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     310    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagShowFonts];
     311    END_BLOCK_OBJC_EXCEPTIONS;
     312    return String();
     313}
     314
     315String contextMenuItemTagBold()
     316{
     317    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     318    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagBold];
     319    END_BLOCK_OBJC_EXCEPTIONS;
     320    return String();
     321}
     322
     323String contextMenuItemTagItalic()
     324{
     325    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     326    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagItalic];
     327    END_BLOCK_OBJC_EXCEPTIONS;
     328    return String();
     329}
     330
     331String contextMenuItemTagUnderline()
     332{
     333    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     334    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagUnderline];
     335    END_BLOCK_OBJC_EXCEPTIONS;
     336    return String();
     337}
     338
     339String contextMenuItemTagOutline()
     340{
     341    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     342    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagOutline];
     343    END_BLOCK_OBJC_EXCEPTIONS;
     344    return String();
     345}
     346
     347String contextMenuItemTagStyles()
     348{
     349    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     350    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagStyles];
     351    END_BLOCK_OBJC_EXCEPTIONS;
     352    return String();
     353}
     354
     355String contextMenuItemTagShowColors()
     356{
     357    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     358    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagShowColors];
     359    END_BLOCK_OBJC_EXCEPTIONS;
     360    return String();
     361}
     362
     363String contextMenuItemTagSpeechMenu()
     364{
     365    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     366    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagSpeechMenu];
     367    END_BLOCK_OBJC_EXCEPTIONS;
     368    return String();
     369}
     370
     371String contextMenuItemTagStartSpeaking()
     372{
     373    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     374    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagStartSpeaking];
     375    END_BLOCK_OBJC_EXCEPTIONS;
     376    return String();
     377}
     378
     379String contextMenuItemTagStopSpeaking()
     380{
     381    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     382    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagStopSpeaking];
     383    END_BLOCK_OBJC_EXCEPTIONS;
     384    return String();
     385}
     386
     387String contextMenuItemTagWritingDirectionMenu()
     388{
     389    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     390    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagWritingDirectionMenu];
     391    END_BLOCK_OBJC_EXCEPTIONS;
     392    return String();
     393}
     394
     395String contextMenuItemTagDefaultDirection()
     396{
     397    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     398    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagDefaultDirection];
     399    END_BLOCK_OBJC_EXCEPTIONS;
     400    return String();
     401}
     402
     403String contextMenuItemTagLeftToRight()
     404{
     405    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     406    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagLeftToRight];
     407    END_BLOCK_OBJC_EXCEPTIONS;
     408    return String();
     409}
     410
     411String contextMenuItemTagRightToLeft()
     412{
     413    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     414    return [[WebCoreViewFactory sharedFactory] contextMenuItemTagRightToLeft];
     415    END_BLOCK_OBJC_EXCEPTIONS;
     416    return String();
     417}
     418
     419}
  • trunk/WebKit/ChangeLog

    r18551 r18554  
     12007-01-03  Beth Dakin  <bdakin@apple.com>
     2
     3        Reviewed by John.
     4
     5        Make localized strings for all of the context menu item titles that
     6        are accessible to WebCore.
     7
     8        * English.lproj/Localizable.strings:
     9        * WebCoreSupport/WebViewFactory.m:
     10        (-[WebViewFactory contextMenuItemTagOpenLinkInNewWindow]):
     11        (-[WebViewFactory contextMenuItemTagDownloadLinkToDisk]):
     12        (-[WebViewFactory contextMenuItemTagCopyLinkToClipboard]):
     13        (-[WebViewFactory contextMenuItemTagOpenImageInNewWindow]):
     14        (-[WebViewFactory contextMenuItemTagDownloadImageToDisk]):
     15        (-[WebViewFactory contextMenuItemTagCopyImageToClipboard]):
     16        (-[WebViewFactory contextMenuItemTagOpenFrameInNewWindow]):
     17        (-[WebViewFactory contextMenuItemTagCopy]):
     18        (-[WebViewFactory contextMenuItemTagGoBack]):
     19        (-[WebViewFactory contextMenuItemTagGoForward]):
     20        (-[WebViewFactory contextMenuItemTagStop]):
     21        (-[WebViewFactory contextMenuItemTagReload]):
     22        (-[WebViewFactory contextMenuItemTagCut]):
     23        (-[WebViewFactory contextMenuItemTagPaste]):
     24        (-[WebViewFactory contextMenuItemTagNoGuessesFound]):
     25        (-[WebViewFactory contextMenuItemTagIgnoreSpelling]):
     26        (-[WebViewFactory contextMenuItemTagLearnSpelling]):
     27        (-[WebViewFactory contextMenuItemTagSearchInSpotlight]):
     28        (-[WebViewFactory contextMenuItemTagSearchWeb]):
     29        (-[WebViewFactory contextMenuItemTagLookUpInDictionary]):
     30        (-[WebViewFactory contextMenuItemTagOpenLink]):
     31        (-[WebViewFactory contextMenuItemTagIgnoreGrammar]):
     32        (-[WebViewFactory contextMenuItemTagSpellingMenu]):
     33        (-[WebViewFactory contextMenuItemTagShowSpellingPanel:]):
     34        (-[WebViewFactory contextMenuItemTagCheckSpelling]):
     35        (-[WebViewFactory contextMenuItemTagCheckSpellingWhileTyping]):
     36        (-[WebViewFactory contextMenuItemTagCheckGrammarWithSpelling]):
     37        (-[WebViewFactory contextMenuItemTagFontMenu]):
     38        (-[WebViewFactory contextMenuItemTagShowFonts]):
     39        (-[WebViewFactory contextMenuItemTagBold]):
     40        (-[WebViewFactory contextMenuItemTagItalic]):
     41        (-[WebViewFactory contextMenuItemTagUnderline]):
     42        (-[WebViewFactory contextMenuItemTagOutline]):
     43        (-[WebViewFactory contextMenuItemTagStyles]):
     44        (-[WebViewFactory contextMenuItemTagShowColors]):
     45        (-[WebViewFactory contextMenuItemTagSpeechMenu]):
     46        (-[WebViewFactory contextMenuItemTagStartSpeaking]):
     47        (-[WebViewFactory contextMenuItemTagStopSpeaking]):
     48        (-[WebViewFactory contextMenuItemTagWritingDirectionMenu]):
     49        (-[WebViewFactory contextMenuItemTagDefaultDirection]):
     50        (-[WebViewFactory contextMenuItemTagLeftToRight]):
     51        (-[WebViewFactory contextMenuItemTagRightToLeft]):
     52
    1532007-01-03  Brady Eidson  <beidson@apple.com>
    254
  • trunk/WebKit/English.lproj/Localizable.strings

    r18021 r18554  
    2020"Back" = "Back";
    2121
     22/* Bold context menu item */
     23"Bold" = "Bold";
     24
    2225/* WebKitErrorCannotFindPlugin description */
    2326"Cannot find plug-in" = "Cannot find plug-in";
     
    3841"Change Attributes (Undo action name)" = "Change Attributes";
    3942
     43/* Check spelling context menu item */
     44"Check Document Now" = "Check Document Now";
     45
     46/* Check grammar with spelling context menu item */
     47"Check Grammar With Spelling" = "Check Grammar With Spelling";
     48
     49/* Check spelling context menu item */
     50"Check Spelling" = "Check Spelling";
     51
     52/* Check spelling while typing context menu item */
     53"Check Spelling While Typing" = "Check Spelling While Typing";
     54
     55/* Check spelling while typing context menu item */
     56"Check Spelling as You Type" = "Check Spelling as You Type";
     57
    4058/* title for file button used in HTML forms */
    4159"Choose File" = "Choose File";
     
    6280"Cut (Undo action name)" = "Cut";
    6381
     82/* Default writing direction context menu item */
     83"Default" = "Default";
     84
    6485/* Download Image context menu item */
    6586"Download Image" = "Download Image";
     
    7495"Finder" = "Finder";
    7596
     97/* Font context sub-menu item */
     98"Font" = "Font";
     99
    76100/* Undo action name */
    77101"Format Block (Undo action name)" = "Formatting";
     
    101125"Inspect Element" = "Inspect Element";
    102126
     127/* Italic context menu item */
     128"Italic" = "Italic";
     129
    103130/* WebKitErrorJavaUnavailable description */
    104131"Java is unavailable" = "Java is unavailable";
     
    116143"Left to Right" = "Left to Right";
    117144
     145/* Look Up in Dictionary context menu item */
     146"Look Up in Dictionary" = "Look Up in Dictionary";
     147
    118148/* Undo action name */
    119149"Loosen Kerning (Undo action name)" = "Loosen Kerning";
     
    146176"Outdent (Undo action name)" = "Outdent";
    147177
     178/* Outline context menu item */
     179"Outline" = "Outline";
     180
    148181/* Undo action name */
    149182"Outline (Undo action name)" = "Outline";
     
    182215"Right to Left" = "Right to Left";
    183216
     217/* Search in Google context menu item */
     218"Search in Google" = "Search in Google";
     219
     220/* Search in Spotlight context menu item */
     221"Search in Spotlight" = "Search in Spotlight";
     222
    184223/* Undo action name */
    185224"Set Background Color (Undo action name)" = "Set Background Color";
     
    196235/* Undo action name */
    197236"Set Writing Direction (Undo action name)" = "Set Writing Direction";
     237
     238/* Show fonts context menu item */
     239"Show Fonts" = "Show Fonts";
    198240
    199241/* menu item title */
    200242"Show Spelling and Grammar" = "Show Spelling and Grammar";
    201243
     244/* Show colors context menu item */
     245"Show colors" = "Show colors";
     246
     247/* Speech context sub-menu item */
     248"Speech" = "Speech";
     249
     250/* Spelling context sub-menu item */
     251"Spelling" = "Spelling";
     252
     253/* Spelling and Grammar context sub-menu item */
     254"Spelling and Grammar" = "Spelling and Grammar";
     255
     256/* menu item title */
     257"Spelling..." = "Spelling...";
     258
     259/* Start speaking context menu item */
     260"Start Speaking" = "Start Speaking";
     261
    202262/* Stop context menu item */
    203263"Stop" = "Stop";
    204264
     265/* Stop speaking context menu item */
     266"Stop Speaking" = "Stop Speaking";
     267
     268/* Styles context menu item */
     269"Styles..." = "Styles...";
     270
    205271/* default label for Submit buttons in forms on web pages */
    206272"Submit" = "Submit";
     
    242308"Typing (Undo action name)" = "Typing";
    243309
     310/* Underline context menu item */
     311"Underline" = "Underline";
     312
    244313/* Undo action name */
    245314"Underline (Undo action name)" = "Underline";
     
    259328/* Undo action name */
    260329"Use Standard Ligatures (Undo action name)" = "Use Standard Ligatures";
     330
     331/* Writing direction context sub-menu item */
     332"Writing Direction" = "Writing Direction";
    261333
    262334/* message in authentication panel */
  • trunk/WebKit/WebCoreSupport/WebViewFactory.m

    r18424 r18554  
    150150}
    151151
     152- (NSString *)contextMenuItemTagOpenLinkInNewWindow
     153{
     154    return UI_STRING("Open Link in New Window", "Open in New Window context menu item");
     155}
     156
     157- (NSString *)contextMenuItemTagDownloadLinkToDisk
     158{
     159    return UI_STRING("Download Linked File", "Download Linked File context menu item");
     160}
     161
     162- (NSString *)contextMenuItemTagCopyLinkToClipboard
     163{
     164    return UI_STRING("Copy Link", "Copy Link context menu item");
     165}
     166
     167- (NSString *)contextMenuItemTagOpenImageInNewWindow
     168{
     169    return UI_STRING("Open Image in New Window", "Open Image in New Window context menu item");
     170}
     171
     172- (NSString *)contextMenuItemTagDownloadImageToDisk
     173{
     174    return UI_STRING("Download Image", "Download Image context menu item");
     175}
     176
     177- (NSString *)contextMenuItemTagCopyImageToClipboard
     178{
     179    return UI_STRING("Copy Image", "Copy Image context menu item");
     180}
     181
     182- (NSString *)contextMenuItemTagOpenFrameInNewWindow
     183{
     184    return UI_STRING("Open Frame in New Window", "Open Frame in New Window context menu item");
     185}
     186
     187- (NSString *)contextMenuItemTagCopy
     188{
     189    return UI_STRING("Copy", "Copy context menu item");
     190}
     191
     192- (NSString *)contextMenuItemTagGoBack
     193{
     194    return UI_STRING("Back", "Back context menu item");
     195}
     196
     197- (NSString *)contextMenuItemTagGoForward
     198{
     199    return UI_STRING("Forward", "Forward context menu item");
     200}
     201
     202- (NSString *)contextMenuItemTagStop
     203{
     204    return UI_STRING("Stop", "Stop context menu item");
     205}
     206
     207- (NSString *)contextMenuItemTagReload
     208{
     209    return UI_STRING("Reload", "Reload context menu item");
     210}
     211
     212- (NSString *)contextMenuItemTagCut
     213{
     214    return UI_STRING("Cut", "Cut context menu item");
     215}
     216
     217- (NSString *)contextMenuItemTagPaste
     218{
     219    return UI_STRING("Paste", "Paste context menu item");
     220}
     221
     222- (NSString *)contextMenuItemTagNoGuessesFound
     223{
     224    return UI_STRING("No Guesses Found", "No Guesses Found context menu item");
     225}
     226
     227- (NSString *)contextMenuItemTagIgnoreSpelling
     228{
     229    return UI_STRING("Ignore Spelling", "Ignore Spelling context menu item");
     230}
     231
     232- (NSString *)contextMenuItemTagLearnSpelling
     233{
     234    return UI_STRING("Learn Spelling", "Learn Spelling context menu item");
     235}
     236
     237- (NSString *)contextMenuItemTagSearchInSpotlight
     238{
     239    return UI_STRING("Search in Spotlight", "Search in Spotlight context menu item");
     240}
     241
     242- (NSString *)contextMenuItemTagSearchWeb
     243{
     244    return UI_STRING("Search in Google", "Search in Google context menu item");
     245}
     246
     247- (NSString *)contextMenuItemTagLookUpInDictionary
     248{
     249    return UI_STRING("Look Up in Dictionary", "Look Up in Dictionary context menu item");
     250}
     251
     252- (NSString *)contextMenuItemTagOpenLink
     253{
     254    return UI_STRING("Open Link", "Open Link context menu item");
     255}
     256
     257- (NSString *)contextMenuItemTagIgnoreGrammar
     258{
     259    return UI_STRING("Ignore Grammar", "Ignore Grammar context menu item");
     260}
     261
     262- (NSString *)contextMenuItemTagSpellingMenu
     263{
     264#ifndef BUILDING_ON_TIGER
     265    return UI_STRING("Spelling and Grammar", "Spelling and Grammar context sub-menu item");
     266#else
     267    return UI_STRING("Spelling", "Spelling context sub-menu item");
     268#endif
     269}
     270
     271- (NSString *)contextMenuItemTagShowSpellingPanel:(bool)show
     272{
     273#ifndef BUILDING_ON_TIGER
     274    if (show)
     275        return UI_STRING("Show Spelling and Grammar", "menu item title");
     276    return UI_STRING("Hide Spelling and Grammar", "menu item title");
     277#else
     278    return UI_STRING("Spelling...", "menu item title");
     279#endif
     280}
     281
     282- (NSString *)contextMenuItemTagCheckSpelling
     283{
     284#ifndef BUILDING_ON_TIGER
     285    return UI_STRING("Check Document Now", "Check spelling context menu item");
     286#else
     287    return UI_STRING("Check Spelling", "Check spelling context menu item");
     288#endif
     289}
     290
     291- (NSString *)contextMenuItemTagCheckSpellingWhileTyping
     292{
     293#ifndef BUILDING_ON_TIGER
     294    return UI_STRING("Check Spelling While Typing", "Check spelling while typing context menu item");
     295#else
     296    return UI_STRING("Check Spelling as You Type", "Check spelling while typing context menu item");
     297#endif
     298}
     299
     300- (NSString *)contextMenuItemTagCheckGrammarWithSpelling
     301{
     302    return UI_STRING("Check Grammar With Spelling", "Check grammar with spelling context menu item");
     303}
     304
     305- (NSString *)contextMenuItemTagFontMenu
     306{
     307    return UI_STRING("Font", "Font context sub-menu item");
     308}
     309
     310- (NSString *)contextMenuItemTagShowFonts
     311{
     312    return UI_STRING("Show Fonts", "Show fonts context menu item");
     313}
     314
     315- (NSString *)contextMenuItemTagBold
     316{
     317    return UI_STRING("Bold", "Bold context menu item");
     318}
     319
     320- (NSString *)contextMenuItemTagItalic
     321{
     322    return UI_STRING("Italic", "Italic context menu item");
     323}
     324
     325- (NSString *)contextMenuItemTagUnderline
     326{
     327    return UI_STRING("Underline", "Underline context menu item");
     328}
     329
     330- (NSString *)contextMenuItemTagOutline
     331{
     332    return UI_STRING("Outline", "Outline context menu item");
     333}
     334
     335- (NSString *)contextMenuItemTagStyles
     336{
     337    return UI_STRING("Styles...", "Styles context menu item");
     338}
     339
     340- (NSString *)contextMenuItemTagShowColors
     341{
     342    return UI_STRING("Show colors", "Show colors context menu item");
     343}
     344
     345- (NSString *)contextMenuItemTagSpeechMenu
     346{
     347    return UI_STRING("Speech", "Speech context sub-menu item");
     348}
     349
     350- (NSString *)contextMenuItemTagStartSpeaking
     351{
     352    return UI_STRING("Start Speaking", "Start speaking context menu item");
     353}
     354
     355- (NSString *)contextMenuItemTagStopSpeaking
     356{
     357    return UI_STRING("Stop Speaking", "Stop speaking context menu item");
     358}
     359
     360- (NSString *)contextMenuItemTagWritingDirectionMenu
     361{
     362    return UI_STRING("Writing Direction", "Writing direction context sub-menu item");
     363}
     364
     365- (NSString *)contextMenuItemTagDefaultDirection
     366{
     367    return UI_STRING("Default", "Default writing direction context menu item");
     368}
     369
     370- (NSString *)contextMenuItemTagLeftToRight
     371{
     372    return UI_STRING("Left to Right", "Left to Right context menu item");
     373}
     374
     375- (NSString *)contextMenuItemTagRightToLeft
     376{
     377    return UI_STRING("Right to Left", "Right to Left context menu item");
     378}
     379
    152380- (BOOL)objectIsTextMarker:(id)object
    153381{
Note: See TracChangeset for help on using the changeset viewer.