comparison kdiff3/src/main.cpp @ 58:8af4bb9d9a5a

Version 0.9.83
author joachim99
date Sun, 07 Mar 2004 09:59:09 +0000
parents 32d5cbf9db71
children efe33e938730
comparison
equal deleted inserted replaced
57:023fbd76c1e3 58:8af4bb9d9a5a
1 /*************************************************************************** 1 /***************************************************************************
2 main.cpp - Where everything starts. 2 main.cpp - Where everything starts.
3 ------------------- 3 -------------------
4 begin : Don Jul 11 12:31:29 CEST 2002 4 begin : Don Jul 11 12:31:29 CEST 2002
5 copyright : (C) 2002 by Joachim Eibl 5 copyright : (C) 2002-2004 by Joachim Eibl
6 email : joachim.eibl@gmx.de 6 email : joachim.eibl@gmx.de
7 ***************************************************************************/ 7 ***************************************************************************/
8 8
9 /*************************************************************************** 9 /***************************************************************************
10 * * 10 * *
91 // KDiff3 can replace cleardiffmrg from clearcase. But not all functions. 91 // KDiff3 can replace cleardiffmrg from clearcase. But not all functions.
92 if ( isOptionUsed( "directory", argc,argv ) ) 92 if ( isOptionUsed( "directory", argc,argv ) )
93 { 93 {
94 return ::_spawnvp(_P_WAIT , "cleardiffmrg_orig", argv ); 94 return ::_spawnvp(_P_WAIT , "cleardiffmrg_orig", argv );
95 } 95 }
96
96 #endif 97 #endif
97 QApplication::setColorSpec( QApplication::ManyColor ); // Grab all 216 colors 98 QApplication::setColorSpec( QApplication::ManyColor ); // Grab all 216 colors
98 99
99 KAboutData aboutData( "kdiff3", I18N_NOOP("KDiff3"), 100 KAboutData aboutData( "kdiff3", I18N_NOOP("KDiff3"),
100 VERSION, description, KAboutData::License_GPL, 101 VERSION, description, KAboutData::License_GPL,
104 KCmdLineArgs::addCmdLineOptions( options ); // Add our own options. 105 KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
105 106
106 KApplication app; 107 KApplication app;
107 #ifdef KREPLACEMENTS_H 108 #ifdef KREPLACEMENTS_H
108 QString translationDir = getTranslationDir(); 109 QString translationDir = getTranslationDir();
110 QString locale = QTextCodec::locale();
109 QTranslator kdiff3Translator( 0 ); 111 QTranslator kdiff3Translator( 0 );
110 kdiff3Translator.load( QString("kdiff3_")+QTextCodec::locale(), translationDir ); 112 kdiff3Translator.load( QString("kdiff3_")+locale, translationDir );
111 app.installTranslator( &kdiff3Translator ); 113 app.installTranslator( &kdiff3Translator );
112 114
113 QTranslator qtTranslator( 0 ); 115 QTranslator qtTranslator( 0 );
114 qtTranslator.load( QString("qt_")+QTextCodec::locale(), translationDir ); 116 qtTranslator.load( QString("qt_")+locale, translationDir );
115 app.installTranslator( &qtTranslator ); 117 app.installTranslator( &qtTranslator );
116 #endif 118 #endif
117 119
118 if (app.isRestored()) 120 if (app.isRestored())
119 { 121 {