[haiku-commits] Re: r42994 - haiku/trunk/src/apps/deskbar

> +
> +// 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");

This makes the string not get optimized out at build time.
I made  abetter fix (using the B_COLLECTING_CATKEYS define which is there for 
that purpose). Testing it right now...

-- 
Adrien.

Other related posts: