diff --git a/data/update_default_rules.cpp b/data/update_default_rules.cpp index 15353100d8..9341050525 100644 --- a/data/update_default_rules.cpp +++ b/data/update_default_rules.cpp @@ -25,13 +25,19 @@ along with this program. If not, see . #include #include #include +#include +#include +#include #include int main( int argc, char* argv[] ) { if( argc != 2 ) return 1; - KComponentData inst( "kwin_update_default_rules" ); + KAboutData about( "kwin_update_default_rules", "kwin", KLocalizedString(), 0 ); + KCmdLineArgs::init( argc, argv, &about ); + KComponentData inst( &about ); + Q_UNUSED( KGlobal::locale() ); // jump-start locales to get to translated desriptions QString file = KStandardDirs::locate( "data", QString( "kwin/default_rules/" ) + argv[ 1 ] ); if( file.isEmpty()) {