Fix collecting of ifdef dependant strings

Following some recent changes, the collection of strings does not use
B_COLLECTING_CATKEYS define anymore. Adjust the code to use
B_TRANSLATE_MARK_VOID instead, leading to the same result (string is
added to catalog, but not used)
This commit is contained in:
Adrien Destugues - PulkoMandy
2012-05-27 08:42:33 +02:00
parent 85136facde
commit 028ad0311c
2 changed files with 12 additions and 23 deletions
@@ -43,16 +43,14 @@ SMTPConfigView::SMTPConfigView(MailAddonSettings& settings,
#endif #endif
) )
{ {
#if defined(USE_SSL) || defined(B_COLLECTING_CATKEYS) B_TRANSLATE_MARK_VOID("Unencrypted");
static const char* kUnencryptedStr = B_TRANSLATE_MARK("Unencrypted"); B_TRANSLATE_MARK_VOID("SSL");
static const char* kSSLStr = B_TRANSLATE_MARK("SSL"); B_TRANSLATE_MARK_VOID("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("Unencrypted"));
AddFlavor(B_TRANSLATE(kSSLStr)); AddFlavor(B_TRANSLATE("SSL"));
AddFlavor(B_TRANSLATE(kSTARTTLSStr)); AddFlavor(B_TRANSLATE("STARTTLS"));
#endif #endif
AddAuthMethod(B_TRANSLATE("None"), false); AddAuthMethod(B_TRANSLATE("None"), false);
+6 -15
View File
@@ -253,21 +253,14 @@ TDeskbarMenu::AddStandardDeskbarMenuItems()
// One of them is used if HAIKU_DISTRO_COMPATIBILITY_OFFICIAL, and the other if // 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 // 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. // make them visible to collectcatkeys in either case.
#if defined(B_COLLECTING_CATKEYS)||defined(HAIKU_DISTRO_COMPATIBILITY_OFFICIAL) B_TRANSLATE_MARK_VOID("About Haiku")
static const char* kAboutHaikuMenuItemStr = B_TRANSLATE_MARK( B_TRANSLATE_MARK_VOID("About this system")
"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(kAboutHaikuMenuItemStr) B_TRANSLATE_NOCOLLECT("About Haiku")
#else #else
B_TRANSLATE_NOCOLLECT(kAboutThisSystemMenuItemStr) B_TRANSLATE_NOCOLLECT("About this system")
#endif #endif
, new BMessage(kShowSplash)); , new BMessage(kShowSplash));
item->SetEnabled(!dragging); item->SetEnabled(!dragging);
@@ -316,13 +309,11 @@ TDeskbarMenu::AddStandardDeskbarMenuItems()
item->SetEnabled(!dragging); item->SetEnabled(!dragging);
shutdownMenu->AddItem(item); shutdownMenu->AddItem(item);
#if defined(APM_SUPPORT) || defined(B_COLLECTING_CATKEYS) B_TRANSLATE_MARK_VOID("Suspend");
static const char* kSuspendMenuItemStr = B_TRANSLATE_MARK("Suspend");
#endif
#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(kSuspendMenuItemStr), item = new BMenuItem(B_TRANSLATE_NOCOLLECT("Suspend"),
new BMessage(kSuspendSystem)); new BMessage(kSuspendSystem));
item->SetEnabled(!dragging); item->SetEnabled(!dragging);
shutdownMenu->AddItem(item); shutdownMenu->AddItem(item);