Use the proper define to make the string visible only to collectcatkeys.
Makes gcc4 happy. Sorry for the inconvenience, build fixed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42996 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -43,9 +43,12 @@ SMTPConfigView::SMTPConfigView(MailAddonSettings& settings,
|
|||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
#if defined(USE_SSL) || defined(B_COLLECTING_CATKEYS)
|
||||||
static const char* kUnencryptedStr = B_TRANSLATE_MARK("Unencrypted");
|
static const char* kUnencryptedStr = B_TRANSLATE_MARK("Unencrypted");
|
||||||
static const char* kSSLStr = B_TRANSLATE_MARK("SSL");
|
static const char* kSSLStr = B_TRANSLATE_MARK("SSL");
|
||||||
static const char* kSTARTTLSStr = B_TRANSLATE_MARK("STARTTLS");
|
static const char* kSTARTTLSStr = B_TRANSLATE_MARK("STARTTLS");
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_SSL
|
#ifdef USE_SSL
|
||||||
AddFlavor(B_TRANSLATE_NOCOLLECT(kUnencryptedStr));
|
AddFlavor(B_TRANSLATE_NOCOLLECT(kUnencryptedStr));
|
||||||
AddFlavor(B_TRANSLATE(kSSLStr));
|
AddFlavor(B_TRANSLATE(kSSLStr));
|
||||||
|
|||||||
+18
-15
@@ -58,18 +58,6 @@ All rights reserved.
|
|||||||
|
|
||||||
#define ROSTER_SIG "application/x-vnd.Be-ROST"
|
#define ROSTER_SIG "application/x-vnd.Be-ROST"
|
||||||
|
|
||||||
|
|
||||||
// One of them is used if HAIKU_DISTRO_COMPATIBILITY_OFFICIAL, and the other if
|
|
||||||
// not. However, we want both of them to end up in the catalog, so we have to
|
|
||||||
// put them outside of the ifdef block.
|
|
||||||
static const char* skSuspendMenuItemStr = B_TRANSLATE_MARK("Suspend");
|
|
||||||
static const char* skAboutHaikuMenuItemStr = B_TRANSLATE_MARK(
|
|
||||||
"About Haiku");
|
|
||||||
static const char* skAboutThisSystemMenuItemStr = B_TRANSLATE_MARK(
|
|
||||||
"About this system");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef MOUNT_MENU_IN_DESKBAR
|
#ifdef MOUNT_MENU_IN_DESKBAR
|
||||||
|
|
||||||
class DeskbarMountMenu : public BPrivate::MountMenu {
|
class DeskbarMountMenu : public BPrivate::MountMenu {
|
||||||
@@ -256,11 +244,24 @@ TBeMenu::AddStandardBeMenuItems()
|
|||||||
AddSeparatorItem();
|
AddSeparatorItem();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// One of them is used if HAIKU_DISTRO_COMPATIBILITY_OFFICIAL, and the other if
|
||||||
|
// not. However, we want both of them to end up in the catalog, so we have to
|
||||||
|
// make them visible to collectcatkeys in either case.
|
||||||
|
#if defined(B_COLLECTING_CATKEYS)||defined(HAIKU_DISTRO_COMPATIBILITY_OFFICIAL)
|
||||||
|
static const char* kAboutHaikuMenuItemStr = B_TRANSLATE_MARK(
|
||||||
|
"About Haiku");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(B_COLLECTING_CATKEYS)||!defined(HAIKU_DISTRO_COMPATIBILITY_OFFICIAL)
|
||||||
|
static const char* kAboutThisSystemMenuItemStr = B_TRANSLATE_MARK(
|
||||||
|
"About this system");
|
||||||
|
#endif
|
||||||
|
|
||||||
item = new BMenuItem(
|
item = new BMenuItem(
|
||||||
#ifdef HAIKU_DISTRO_COMPATIBILITY_OFFICIAL
|
#ifdef HAIKU_DISTRO_COMPATIBILITY_OFFICIAL
|
||||||
B_TRANSLATE_NOCOLLECT(skAboutHaikuMenuItemStr)
|
B_TRANSLATE_NOCOLLECT(kAboutHaikuMenuItemStr)
|
||||||
#else
|
#else
|
||||||
B_TRANSLATE_NOCOLLECT(skAboutThisSystemMenuItemStr)
|
B_TRANSLATE_NOCOLLECT(kAboutThisSystemMenuItemStr)
|
||||||
#endif
|
#endif
|
||||||
, new BMessage(kShowSplash));
|
, new BMessage(kShowSplash));
|
||||||
item->SetEnabled(!dragging);
|
item->SetEnabled(!dragging);
|
||||||
@@ -309,9 +310,11 @@ TBeMenu::AddStandardBeMenuItems()
|
|||||||
item->SetEnabled(!dragging);
|
item->SetEnabled(!dragging);
|
||||||
shutdownMenu->AddItem(item);
|
shutdownMenu->AddItem(item);
|
||||||
|
|
||||||
|
// String outside of ifdef block for collectcatkeys purposes
|
||||||
|
static const char* kSuspendMenuItemStr = B_TRANSLATE_MARK("Suspend");
|
||||||
#ifdef APM_SUPPORT
|
#ifdef APM_SUPPORT
|
||||||
if (_kapm_control_(APM_CHECK_ENABLED) == B_OK) {
|
if (_kapm_control_(APM_CHECK_ENABLED) == B_OK) {
|
||||||
item = new BMenuItem(B_TRANSLATE_NOCOLLECT(skSuspendMenuItemStr),
|
item = new BMenuItem(B_TRANSLATE_NOCOLLECT(kSuspendMenuItemStr),
|
||||||
new BMessage(kSuspendSystem));
|
new BMessage(kSuspendSystem));
|
||||||
item->SetEnabled(!dragging);
|
item->SetEnabled(!dragging);
|
||||||
shutdownMenu->AddItem(item);
|
shutdownMenu->AddItem(item);
|
||||||
|
|||||||
Reference in New Issue
Block a user