#7873: B_TRANSLATE("String") between #ifdef and #endif not included in catalogs -------------------------+------------------------------- Reporter: taos | Owner: nobody Type: bug | Status: new Priority: normal | Milestone: R1 Component: - General | Version: R1/Development Resolution: | Keywords: localization, HTA Blocked By: | Blocking: Has a Patch: 0 | Platform: All -------------------------+------------------------------- Comment (by taos): More examples can be found in [http://dev.haiku- os.org/browser/haiku/trunk/src/apps/deskbar/BeMenu.cpp /src/apps/deskbar/BeMenu.cpp]: {{{ #ifdef HAIKU_DISTRO_COMPATIBILITY_OFFICIAL static const char* kAboutHaikuMenuItemStr = B_TRANSLATE_MARK( "About Haiku"); #else static const char* kAboutThisSystemMenuItemStr = B_TRANSLATE_MARK( "About this system"); #endif }}} {{{ #ifdef APM_SUPPORT static const char* kSuspendMenuItemStr = B_TRANSLATE_MARK("Suspend"); if (_kapm_control_(APM_CHECK_ENABLED) == B_OK) { item = new BMenuItem(B_TRANSLATE_NOCOLLECT(kSuspendMenuItemStr), new BMessage(kSuspendSystem)); item->SetEnabled(!dragging); shutdownMenu->AddItem(item); } #endif }}} From HTA (and thus from corresponding catkeys and catalog files), "About Haiku" and "Suspend" are missing. If building an image with --distro- compatibility official you'll get a Be Menu entry that's not translated: [BeMenu.png] -- Ticket URL: <http://dev.haiku-os.org/ticket/7873#comment:1> Haiku <http://dev.haiku-os.org> Haiku - the operating system.