Ticket #5889: opentargetfolderLocalization.patch

File opentargetfolderLocalization.patch, 2.2 KB (added by Karvjorm, 9 years ago)

Un updated opentargetfolder localization patch

  • src/add-ons/tracker/opentargetfolder/opentargetfolder.cpp

     
    99#include <string.h>
    1010
    1111#include <Alert.h>
     12#include <Catalog.h>
    1213#include <Directory.h>
    1314#include <Entry.h>
     15#include <Locale.h>
    1416#include <Messenger.h>
    1517#include <Path.h>
    1618#include <SymLink.h>
    1719
     20#define B_TRANSLATE_CONTEXT "Opentargetfolder"
    1821
    1922extern "C" void
    2023process_refs(entry_ref directoryRef, BMessage *msg, void *)
     
    3841        if (link.MakeLinkedPath(&directory, &path) < B_OK
    3942            || targetEntry.SetTo(path.Path()) != B_OK
    4043            || targetEntry.GetParent(&targetEntry) != B_OK) {
    41             (new BAlert("Open Target Folder",
    42                 "Cannot open target folder. Maybe this link is broken?",
    43                 "OK", NULL, NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT))->Go(NULL);
     44            (new BAlert(B_TRANSLATE("Open Target Folder"),
     45                B_TRANSLATE("Cannot open target folder. Maybe this link is "
     46                "broken?"), B_TRANSLATE("OK"), NULL, NULL, B_WIDTH_AS_USUAL,
     47                B_WARNING_ALERT))->Go(NULL);
    4448            continue;
    4549        }
    4650
     
    5963    }
    6064
    6165    if (errors) {
    62         (new BAlert("Open Target Folder",
    63             "This add-on can only be used on symbolic links.\n"
    64             "It opens the folder of the link target in Tracker.",
    65             "OK"))->Go(NULL);
     66        (new BAlert(B_TRANSLATE("Open Target Folder"),
     67            B_TRANSLATE("This add-on can only be used on symbolic links.\n"
     68            "It opens the folder of the link target in Tracker."),
     69            B_TRANSLATE("OK")))->Go(NULL);
    6670    }
    6771}
    6872
  • src/add-ons/tracker/opentargetfolder/Jamfile

     
    11SubDir HAIKU_TOP src add-ons tracker opentargetfolder ;
    22
     3SubDirHdrs HAIKU_TOP headers os locale ;
     4
    35Application Open\ Target\ Folder-O :
    46    opentargetfolder.cpp
    57
    6     : be tracker $(TARGET_LIBSUPC++)
     8    : be tracker locale $(TARGET_LIBSUPC++)
    79    : opentargetfolder.rdef
    810;
     11
     12DoCatalogs Open\ Target\ Folder-0 :
     13    x-vnd.haiku.opentargetfolder
     14    :
     15    opentargetfolder.cpp
     16;