Ticket #5563: ShowImageUpdate.patch
File ShowImageUpdate.patch, 3.1 KB (added by , 14 years ago) |
---|
-
src/apps/showimage/ShowImageView.cpp
23 23 #include <Application.h> 24 24 #include <Bitmap.h> 25 25 #include <BitmapStream.h> 26 #include <Catalog.h> 26 27 #include <Clipboard.h> 27 28 #include <Debug.h> 28 29 #include <Directory.h> 29 30 #include <Entry.h> 30 31 #include <File.h> 32 #include <Locale.h> 31 33 #include <MenuBar.h> 32 34 #include <MenuItem.h> 33 35 #include <Message.h> … … 1244 1246 return found; 1245 1247 } 1246 1248 1249 #undef TR_CONTEXT 1250 #define TR_CONTEXT "SaveToFile" 1247 1251 1248 1252 void 1249 1253 ShowImageView::SaveToFile(BDirectory* dir, const char* name, BBitmap* bitmap, … … 1278 1282 if (loop) { 1279 1283 // If loop terminated because of a break, there was an error 1280 1284 BString errText; 1281 errText << "Sorry, the file '" << name << "' could not be written."; 1282 BAlert *palert = new BAlert(NULL, errText.String(), "OK"); 1285 errText << TR("Sorry, the file '") << name 1286 << TR("' could not be written."); 1287 BAlert *palert = new BAlert(NULL, errText.String(), TR("OK")); 1283 1288 palert->Go(); 1284 1289 } 1285 1290 -
src/apps/showimage/ShowImageStatusView.cpp
9 9 10 10 #include "ShowImageStatusView.h" 11 11 12 #include <Catalog.h> 12 13 #include <Entry.h> 14 #include <Locale.h> 13 15 #include <MenuItem.h> 14 16 #include <Path.h> 15 17 #include <PopUpMenu.h> … … 73 75 floorf(b.top + b.Height() / 2.0 + fh.ascent / 2.0))); 74 76 } 75 77 78 #undef TR_CONTEXT 79 #define TR_CONTEXT "MouseDown" 76 80 77 81 void 78 82 ShowImageStatusView::MouseDown(BPoint where) … … 84 88 BPath path; 85 89 path.SetTo(window->GetShowImageView()->Image()); 86 90 87 BPopUpMenu popup( "no title");91 BPopUpMenu popup(TR("no title")); 88 92 popup.SetFont(be_plain_font); 89 93 90 94 while (path.GetParent(&path) == B_OK && path != "/") { -
src/apps/showimage/ProgressWindow.cpp
9 9 #include <stdio.h> 10 10 11 11 #include <Autolock.h> 12 #include <Catalog.h> 13 #include <Locale.h> 12 14 #include <MessageRunner.h> 13 15 #include <Screen.h> 14 16 #include <StatusBar.h> … … 18 20 19 21 static const uint32 kMsgShow = 'show'; 20 22 23 #undef TR_CONTEXT 24 #define TR_CONTEXT "ProgressWindow" 21 25 22 26 ProgressWindow::ProgressWindow(BWindow* referenceWindow, bool center) 23 27 : 24 BWindow(BRect(0, 0, 250, 100), "Progress monitor",28 BWindow(BRect(0, 0, 250, 100), TR("Progress monitor"), 25 29 B_MODAL_WINDOW_LOOK, B_FLOATING_APP_WINDOW_FEEL, 26 30 B_NOT_ZOOMABLE | B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS), 27 31 fRunner(NULL) … … 33 37 AddChild(view); 34 38 35 39 rect = view->Bounds().InsetByCopy(5, 5); 36 fStatusBar = new BStatusBar(rect, "status", NULL, NULL);40 fStatusBar = new BStatusBar(rect, TR("status"), NULL, NULL); 37 41 float width, height; 38 42 fStatusBar->GetPreferredSize(&width, &height); 39 43 fStatusBar->ResizeTo(rect.Width(), height);