Ticket #8956: 0001-Added-missing-localization-support-for-WebPositive-c.patch

File 0001-Added-missing-localization-support-for-WebPositive-c.patch, 9.0 KB (added by dsjonny, 8 years ago)
  • Source/WebCore/Jamfile

    From d3b2a8cc07e92f9e9f2959d2270bdc37c4acc2a6 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Dancs=C3=B3=20R=C3=B3bert?= <dancso.robert@d-rendszer.hu>
    Date: Fri, 4 Jan 2013 19:27:13 +0100
    Subject: [PATCH] Added missing localization support for WebPositive context
     menu.
    
    ---
     Source/WebCore/Jamfile                             |    7 +-
     .../platform/haiku/LocalizedStringsHaiku.cpp       |  122 ++++++++++----------
     2 files changed, 69 insertions(+), 60 deletions(-)
    
    diff --git a/Source/WebCore/Jamfile b/Source/WebCore/Jamfile
    index 2636124..e3a059e 100644
    a b SharedLibrary libwebcore.so :  
    24632463    # Other required libraries
    24642464    curl icuuc icudata icui18n jpeg png sqlite3 xml2 z stdc++
    24652465    # Haiku libraries
    2466     be bsd network textencoding translation
     2466    be bsd network textencoding translation $(HAIKU_LOCALE_LIBS);
     2467
     2468DoCatalogs libwebcore.so :
     2469    application/x-vnd.Haiku-WebPositive
     2470    :
     2471    platform/haiku/LocalizedStringsHaiku.cpp
    24672472;
  • Source/WebCore/platform/haiku/LocalizedStringsHaiku.cpp

    diff --git a/Source/WebCore/platform/haiku/LocalizedStringsHaiku.cpp b/Source/WebCore/platform/haiku/LocalizedStringsHaiku.cpp
    index 52bcfbe..ae07f69f 100644
    a b  
    2525 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2626 */
    2727
     28#include "<Catalog.h>"
     29
    2830#include "config.h"
    2931#include "LocalizedStrings.h"
    3032
    3133#include "NotImplemented.h"
    3234#include "PlatformString.h"
    3335
     36#undef B_TRANSLATION_CONTEXT
     37#define B_TRANSLATION_CONTEXT "WebPositive Page Context Menu"
    3438
    3539namespace WebCore {
    3640String submitButtonDefaultLabel()
    3741{
    38     return "Submit";
     42    return B_TRANSLATE("Submit");
    3943}
    4044
    4145String inputElementAltText()
    String inputElementAltText()  
    4549
    4650String resetButtonDefaultLabel()
    4751{
    48     return "Reset";
     52    return B_TRANSLATE("Reset");
    4953}
    5054
    5155String searchableIndexIntroduction()
    5256{
    53     return "Searchable Index";
     57    return B_TRANSLATE("Searchable Index");
    5458}
    5559
    5660String fileButtonChooseFileLabel()
    5761{
    58     return "Choose File";
     62    return B_TRANSLATE("Choose File");
    5963}
    6064
    6165String fileButtonChooseMultipleFilesLabel()
    6266{
    63     return "Choose Files";
     67    return B_TRANSLATE("Choose Files");
    6468}
    6569
    6670String fileButtonNoFileSelectedLabel()
    6771{
    68     return "No file selected";
     72    return B_TRANSLATE("No file selected");
    6973}
    7074
    7175String fileButtonNoFilesSelectedLabel()
    7276{
    73     return "No files selected";
     77    return B_TRANSLATE("No files selected");
    7478}
    7579
    7680String contextMenuItemTagOpenLinkInNewWindow()
    7781{
    78     return "Open link in new tab";
     82    return B_TRANSLATE("Open link in new tab");
    7983}
    8084
    8185String contextMenuItemTagDownloadLinkToDisk()
    8286{
    83     return "Download link to disk";
     87    return B_TRANSLATE("Download link to disk");
    8488}
    8589
    8690String contextMenuItemTagCopyLinkToClipboard()
    8791{
    88     return "Copy link to clipboard";
     92    return B_TRANSLATE("Copy link to clipboard");
    8993}
    9094
    9195String contextMenuItemTagOpenImageInNewWindow()
    9296{
    93     return "Open image in new window";
     97    return B_TRANSLATE("Open image in new window");
    9498}
    9599
    96100String contextMenuItemTagDownloadImageToDisk()
    97101{
    98     return "Download image to disk";
     102    return B_TRANSLATE("Download image to disk");
    99103}
    100104
    101105String contextMenuItemTagCopyImageToClipboard()
    102106{
    103     return "Copy image to clipboard";
     107    return B_TRANSLATE("Copy image to clipboard");
    104108}
    105109
    106110String contextMenuItemTagOpenFrameInNewWindow()
    107111{
    108     return "Open frame in new window";
     112    return B_TRANSLATE("Open frame in new window");
    109113}
    110114
    111115String contextMenuItemTagCopy()
    112116{
    113     return "Copy";
     117    return B_TRANSLATE("Copy");
    114118}
    115119
    116120String contextMenuItemTagGoBack()
    117121{
    118     return "Go back";
     122    return B_TRANSLATE("Go back");
    119123}
    120124
    121125String contextMenuItemTagGoForward()
    122126{
    123     return "Go forward";
     127    return B_TRANSLATE("Go forward");
    124128}
    125129
    126130String contextMenuItemTagStop()
    127131{
    128     return "Stop";
     132    return B_TRANSLATE("Stop");
    129133}
    130134
    131135String contextMenuItemTagReload()
    132136{
    133     return "Reload";
     137    return B_TRANSLATE("Reload");
    134138}
    135139
    136140String contextMenuItemTagCut()
    137141{
    138     return "Cut";
     142    return B_TRANSLATE("Cut");
    139143}
    140144
    141145String contextMenuItemTagPaste()
    142146{
    143     return "Paste";
     147    return B_TRANSLATE("Paste");
    144148}
    145149
    146150String contextMenuItemTagNoGuessesFound()
    147151{
    148     return "No guesses found";
     152    return B_TRANSLATE("No guesses found");
    149153}
    150154
    151155String contextMenuItemTagIgnoreSpelling()
    152156{
    153     return "Ignore spelling";
     157    return B_TRANSLATE("Ignore spelling");
    154158}
    155159
    156160String contextMenuItemTagLearnSpelling()
    157161{
    158     return "Learn spelling";
     162    return B_TRANSLATE("Learn spelling");
    159163}
    160164
    161165String contextMenuItemTagSearchWeb()
    162166{
    163     return "Search web";
     167    return B_TRANSLATE("Search web");
    164168}
    165169
    166170String contextMenuItemTagLookUpInDictionary()
    167171{
    168     return "Lookup in dictionary";
     172    return B_TRANSLATE("Lookup in dictionary");
    169173}
    170174
    171175String contextMenuItemTagOpenLink()
    172176{
    173     return "Open link";
     177    return B_TRANSLATE("Open link");
    174178}
    175179
    176180String contextMenuItemTagIgnoreGrammar()
    177181{
    178     return "Ignore grammar";
     182    return B_TRANSLATE("Ignore grammar");
    179183}
    180184
    181185String contextMenuItemTagSpellingMenu()
    182186{
    183     return "Spelling menu";
     187    return B_TRANSLATE("Spelling menu");
    184188}
    185189
    186190String contextMenuItemTagShowSpellingPanel(bool show)
    187191{
    188     return "Show spelling panel";
     192    return B_TRANSLATE("Show spelling panel");
    189193}
    190194
    191195String contextMenuItemTagCheckSpelling()
    192196{
    193     return "Check spelling";
     197    return B_TRANSLATE("Check spelling");
    194198}
    195199
    196200String contextMenuItemTagCheckSpellingWhileTyping()
    197201{
    198     return "Check spelling while typing";
     202    return B_TRANSLATE("Check spelling while typing");
    199203}
    200204
    201205String contextMenuItemTagCheckGrammarWithSpelling()
    202206{
    203     return "Check for grammar with spelling";
     207    return B_TRANSLATE("Check for grammar with spelling");
    204208}
    205209
    206210String contextMenuItemTagFontMenu()
    207211{
    208     return "Font menu";
     212    return B_TRANSLATE("Font menu");
    209213}
    210214
    211215String contextMenuItemTagBold()
    212216{
    213     return "Bold";
     217    return B_TRANSLATE("Bold");
    214218}
    215219
    216220String contextMenuItemTagItalic()
    217221{
    218     return "Italic";
     222    return B_TRANSLATE("Italic");
    219223}
    220224
    221225String contextMenuItemTagUnderline()
    222226{
    223     return "Underline";
     227    return B_TRANSLATE("Underline");
    224228}
    225229
    226230String contextMenuItemTagOutline()
    227231{
    228     return "Outline";
     232    return B_TRANSLATE("Outline");
    229233}
    230234
    231235String contextMenuItemTagWritingDirectionMenu()
    232236{
    233     return "Writing direction menu";
     237    return B_TRANSLATE("Writing direction menu");
    234238}
    235239
    236240String contextMenuItemTagDefaultDirection()
    237241{
    238     return "Default direction";
     242    return B_TRANSLATE("Default direction");
    239243}
    240244
    241245String contextMenuItemTagLeftToRight()
    242246{
    243     return "Left to right";
     247    return B_TRANSLATE("Left to right");
    244248}
    245249
    246250String contextMenuItemTagRightToLeft()
    247251{
    248     return "Right to left";
     252    return B_TRANSLATE("Right to left");
    249253}
    250254
    251255String contextMenuItemTagInspectElement()
    252256{
    253     return "Inspect";
     257    return B_TRANSLATE("Inspect");
    254258}
    255259
    256260String contextMenuItemTagOpenVideoInNewWindow()
    257261{
    258     return "Open Video in New Window";
     262    return B_TRANSLATE("Open Video in New Window");
    259263}
    260264
    261265String contextMenuItemTagOpenAudioInNewWindow()
    262266{
    263     return "Open Audio in New Window";
     267    return B_TRANSLATE("Open Audio in New Window");
    264268}
    265269
    266270String contextMenuItemTagCopyVideoLinkToClipboard()
    267271{
    268     return "Copy Video Link Location";
     272    return B_TRANSLATE("Copy Video Link Location");
    269273}
    270274
    271275String contextMenuItemTagCopyAudioLinkToClipboard()
    272276{
    273     return "Copy Audio Link Location";
     277    return B_TRANSLATE("Copy Audio Link Location");
    274278}
    275279
    276280String contextMenuItemTagToggleMediaControls()
    277281{
    278     return "Toggle Media Controls";
     282    return B_TRANSLATE("Toggle Media Controls");
    279283}
    280284
    281285String contextMenuItemTagToggleMediaLoop()
    282286{
    283     return "Toggle Media Loop Playback";
     287    return B_TRANSLATE("Toggle Media Loop Playback");
    284288}
    285289
    286290String contextMenuItemTagEnterVideoFullscreen()
    287291{
    288     return "Switch Video to Fullscreen";
     292    return B_TRANSLATE("Switch Video to Fullscreen");
    289293}
    290294
    291295String contextMenuItemTagMediaPlay()
    292296{
    293     return "Play";
     297    return B_TRANSLATE("Play");
    294298}
    295299
    296300String contextMenuItemTagMediaPause()
    297301{
    298     return "Pause";
     302    return B_TRANSLATE("Pause");
    299303}
    300304
    301305String contextMenuItemTagMediaMute()
    302306{
    303     return "Mute";
     307    return B_TRANSLATE("Mute");
    304308}
    305309
    306310String searchMenuNoRecentSearchesText()
    307311{
    308     return "No recent text searches";
     312    return B_TRANSLATE("No recent text searches");
    309313}
    310314
    311315String searchMenuRecentSearchesText()
    312316{
    313     return "Recent text searches";
     317    return B_TRANSLATE("Recent text searches");
    314318}
    315319
    316320String searchMenuClearRecentSearchesText()
    317321{
    318     return "Clear recent text searches";
     322    return B_TRANSLATE("Clear recent text searches");
    319323}
    320324
    321325String unknownFileSizeText()
    322326{
    323     return "Unknown";
     327    return B_TRANSLATE("Unknown");
    324328}
    325329
    326330String AXWebAreaText()
    String AXMenuListActionVerb()  
    360364
    361365String missingPluginText()
    362366{
    363     return "Missing Plug-in";
     367    return B_TRANSLATE("Missing Plug-in");
    364368}
    365369
    366370String crashedPluginText()
    367371{
    368     return "Plug-in Failure";
     372    return B_TRANSLATE("Plug-in Failure");
    369373}
    370374
    371375String multipleFileUploadText(unsigned)