mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-24 10:52:52 +00:00
24 lines
486 B
C++
24 lines
486 B
C++
#include "startup.h"
|
|
#include <KLocale>
|
|
#include <KGlobal>
|
|
|
|
namespace KAddressBook {
|
|
void insertLibraryCatalogues()
|
|
{
|
|
static const char * const catalogs[] = {
|
|
"libkdepim",
|
|
"kabc",
|
|
"libakonadi",
|
|
"kabcakonadi",
|
|
"akonadicontact",
|
|
"libpimcommon"
|
|
};
|
|
|
|
KLocale * l = KGlobal::locale();
|
|
for ( unsigned int i = 0 ; i < sizeof catalogs / sizeof *catalogs; ++i ) {
|
|
l->insertCatalog( QLatin1String(catalogs[i]) );
|
|
}
|
|
}
|
|
|
|
}
|
|
|