From cea081dd55f8da8d6ac749aac54dd654fd44514c Mon Sep 17 00:00:00 2001 From: Chusslove Illich Date: Thu, 7 Aug 2008 19:15:15 +0000 Subject: [PATCH] Enable i18n for config reads. (bport: 843752) svn path=/branches/KDE/4.1/kdebase/workspace/; revision=843753 --- data/update_default_rules.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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()) {