Build fixes mostly due to usage of a translation macro that isn't (currently) available in the source tree.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39267 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent
2010-11-02 02:22:29 +00:00
parent 88a3ad40f8
commit b1534fc0e8
2 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ public:
private:
bool _IsImage(const entry_ref& ref);
bool _FindNextImage(const entry_ref& current,
entry_ref& next, bool next,
entry_ref& ref, bool next,
bool rewind);
status_t _LoadNextImage(bool next, bool rewind);
void _SetTrackerSelectionToCurrent();
+8 -5
View File
@@ -126,6 +126,10 @@ bs_printf(BString* string, const char* format, ...)
// #pragma mark -- ShowImageWindow
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "Menus"
ShowImageWindow::ShowImageWindow(const entry_ref* ref,
const BMessenger& trackerMessenger)
:
@@ -201,7 +205,7 @@ ShowImageWindow::ShowImageWindow(const entry_ref* ref,
}
// add View menu here so it can access ShowImageView methods
BMenu* menu = new BMenu(B_TRANSLATE_WITH_CONTEXT("View", "Menus"));
BMenu* menu = new BMenu(B_TRANSLATE("View"));
_BuildViewMenu(menu, false);
fBar->AddItem(menu);
@@ -891,10 +895,9 @@ ShowImageWindow::_LoadError(const entry_ref& ref)
{
// TODO: give a better error message!
BAlert* alert = new BAlert(B_TRANSLATE("ShowImage"),
B_TRANSLATE_WITH_CONTEXT("Could not load image! Either the "
"file or an image translator for it does not exist.",
"LoadAlerts"),
B_TRANSLATE_WITH_CONTEXT("OK", "Alerts"), NULL, NULL,
B_TRANSLATE("Could not load image! Either the "
"file or an image translator for it does not exist."),
B_TRANSLATE("OK"), NULL, NULL,
B_WIDTH_AS_USUAL, B_INFO_ALERT);
alert->Go();
}