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:
@@ -72,7 +72,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
bool _IsImage(const entry_ref& ref);
|
bool _IsImage(const entry_ref& ref);
|
||||||
bool _FindNextImage(const entry_ref& current,
|
bool _FindNextImage(const entry_ref& current,
|
||||||
entry_ref& next, bool next,
|
entry_ref& ref, bool next,
|
||||||
bool rewind);
|
bool rewind);
|
||||||
status_t _LoadNextImage(bool next, bool rewind);
|
status_t _LoadNextImage(bool next, bool rewind);
|
||||||
void _SetTrackerSelectionToCurrent();
|
void _SetTrackerSelectionToCurrent();
|
||||||
|
|||||||
@@ -126,6 +126,10 @@ bs_printf(BString* string, const char* format, ...)
|
|||||||
// #pragma mark -- ShowImageWindow
|
// #pragma mark -- ShowImageWindow
|
||||||
|
|
||||||
|
|
||||||
|
#undef B_TRANSLATE_CONTEXT
|
||||||
|
#define B_TRANSLATE_CONTEXT "Menus"
|
||||||
|
|
||||||
|
|
||||||
ShowImageWindow::ShowImageWindow(const entry_ref* ref,
|
ShowImageWindow::ShowImageWindow(const entry_ref* ref,
|
||||||
const BMessenger& trackerMessenger)
|
const BMessenger& trackerMessenger)
|
||||||
:
|
:
|
||||||
@@ -201,7 +205,7 @@ ShowImageWindow::ShowImageWindow(const entry_ref* ref,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add View menu here so it can access ShowImageView methods
|
// 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);
|
_BuildViewMenu(menu, false);
|
||||||
fBar->AddItem(menu);
|
fBar->AddItem(menu);
|
||||||
|
|
||||||
@@ -891,10 +895,9 @@ ShowImageWindow::_LoadError(const entry_ref& ref)
|
|||||||
{
|
{
|
||||||
// TODO: give a better error message!
|
// TODO: give a better error message!
|
||||||
BAlert* alert = new BAlert(B_TRANSLATE("ShowImage"),
|
BAlert* alert = new BAlert(B_TRANSLATE("ShowImage"),
|
||||||
B_TRANSLATE_WITH_CONTEXT("Could not load image! Either the "
|
B_TRANSLATE("Could not load image! Either the "
|
||||||
"file or an image translator for it does not exist.",
|
"file or an image translator for it does not exist."),
|
||||||
"LoadAlerts"),
|
B_TRANSLATE("OK"), NULL, NULL,
|
||||||
B_TRANSLATE_WITH_CONTEXT("OK", "Alerts"), NULL, NULL,
|
|
||||||
B_WIDTH_AS_USUAL, B_INFO_ALERT);
|
B_WIDTH_AS_USUAL, B_INFO_ALERT);
|
||||||
alert->Go();
|
alert->Go();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user