From kde-core-devel Sun Nov 21 22:02:13 2010 From: Oswald Buddenhagen Date: Sun, 21 Nov 2010 22:02:13 +0000 To: kde-core-devel Subject: Re: Helping libraries load their own translation catalogs Message-Id: <20101121220213.GA3250 () ugly ! local> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=129037694321877 On Sun, Nov 21, 2010 at 12:46:53AM +0000, Albert Astals Cid wrote: > It achieves that by creating a static that instructs KGlobal to load a > given translation catalog on global locale creation. > statics in shared libraries have always been like a red flag for us. i don't know whether the reasons (some proprietary unix dynloader) are still applicable. qt has Q_CONSTRUCTOR_FUNCTION in qglobal.h nowadays. its implementation seems more complicated than necessary to me (why the integer return value?), so i wonder whether that's a workaround for something or just random baroqueness.