Ticket #5889: opentargetfolderLocalization.patch
File opentargetfolderLocalization.patch, 2.2 KB (added by , 14 years ago) |
---|
-
src/add-ons/tracker/opentargetfolder/opentargetfolder.cpp
9 9 #include <string.h> 10 10 11 11 #include <Alert.h> 12 #include <Catalog.h> 12 13 #include <Directory.h> 13 14 #include <Entry.h> 15 #include <Locale.h> 14 16 #include <Messenger.h> 15 17 #include <Path.h> 16 18 #include <SymLink.h> 17 19 20 #define B_TRANSLATE_CONTEXT "Opentargetfolder" 18 21 19 22 extern "C" void 20 23 process_refs(entry_ref directoryRef, BMessage *msg, void *) … … 38 41 if (link.MakeLinkedPath(&directory, &path) < B_OK 39 42 || targetEntry.SetTo(path.Path()) != B_OK 40 43 || 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); 44 48 continue; 45 49 } 46 50 … … 59 63 } 60 64 61 65 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); 66 70 } 67 71 } 68 72 -
src/add-ons/tracker/opentargetfolder/Jamfile
1 1 SubDir HAIKU_TOP src add-ons tracker opentargetfolder ; 2 2 3 SubDirHdrs HAIKU_TOP headers os locale ; 4 3 5 Application Open\ Target\ Folder-O : 4 6 opentargetfolder.cpp 5 7 6 : be tracker $(TARGET_LIBSUPC++)8 : be tracker locale $(TARGET_LIBSUPC++) 7 9 : opentargetfolder.rdef 8 10 ; 11 12 DoCatalogs Open\ Target\ Folder-0 : 13 x-vnd.haiku.opentargetfolder 14 : 15 opentargetfolder.cpp 16 ;