Enable i18n for config reads.
svn path=/trunk/KDE/kdebase/workspace/; revision=843752
This commit is contained in:
parent
6ba3e9fac4
commit
69223bf5f5
1 changed files with 7 additions and 1 deletions
|
@ -25,13 +25,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#include <kdebug.h>
|
#include <kdebug.h>
|
||||||
#include <kcomponentdata.h>
|
#include <kcomponentdata.h>
|
||||||
#include <kstandarddirs.h>
|
#include <kstandarddirs.h>
|
||||||
|
#include <kaboutdata.h>
|
||||||
|
#include <kcmdlineargs.h>
|
||||||
|
#include <kglobal.h>
|
||||||
#include <QtDBus/QtDBus>
|
#include <QtDBus/QtDBus>
|
||||||
|
|
||||||
int main( int argc, char* argv[] )
|
int main( int argc, char* argv[] )
|
||||||
{
|
{
|
||||||
if( argc != 2 )
|
if( argc != 2 )
|
||||||
return 1;
|
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 ] );
|
QString file = KStandardDirs::locate( "data", QString( "kwin/default_rules/" ) + argv[ 1 ] );
|
||||||
if( file.isEmpty())
|
if( file.isEmpty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue