[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Moving libkfacebook to extragear
From:       Burkhard =?ISO-8859-1?Q?L=FCck?= <lueck () hube-lueck ! de>
Date:       2012-10-31 11:21:55
Message-ID: 3333830.Ug0h1CWlbk () parodia
[Download RAW message or body]

Am Mittwoch, 31. Oktober 2012, 11:52:53 schrieb Martin Klapetek:
> On Wed, Oct 31, 2012 at 11:44 AM, Burkhard Lück <lueck@hube-lueck.de> wrote:
> > I see not code to load the translation catalog libkfacebook (old name) or
> > libkfbapi (new name).
> > 
> > Afaik you should use KCatalogLoader to load your translation catalog
> 
> I was actually just about to ask this - i18n is used only in three
> places/files, so should I add the KCatalogLoader to each of those files?

Quoting kdelibs/kdecore/kernel/kglobal.h
/**
* This class is useful in libraries where you want to make sure that
* anyone that uses your library will get the correct catalog loaded.
* Just declare a static KCatalogLoader in the global namespace of one of
* your cpp files and that will load your catalog once
* the global klocale is created
*
* @param catalogName The name of your catalog
*
* @since 4.6.2
*
* Example:
* @code
* static const KCatalogLoader loader("libkdepim");
* @endcode
*/

libkfacebook is one library, so one KCatalogLoader is sufficient.

-- 
Burkhard Lück

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic