|
|
@ -41,14 +41,14 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
|
|
|
|
aboutData.addCredit("Rob Renaud", I18N_NOOP("Wall-bouncing help"), 0);
|
|
|
|
aboutData.addCredit("Rob Renaud", I18N_NOOP("Wall-bouncing help"), 0);
|
|
|
|
aboutData.addCredit("Aaron Seigo", I18N_NOOP("Suggestions, bug reports"), 0);
|
|
|
|
aboutData.addCredit("Aaron Seigo", I18N_NOOP("Suggestions, bug reports"), 0);
|
|
|
|
|
|
|
|
|
|
|
|
KCmdLineArgs::init(argc, argv, &aboutData);
|
|
|
|
TDECmdLineArgs::init(argc, argv, &aboutData);
|
|
|
|
KCmdLineArgs::addCmdLineOptions(options);
|
|
|
|
TDECmdLineArgs::addCmdLineOptions(options);
|
|
|
|
|
|
|
|
|
|
|
|
// I've actually added this for my web site uploaded courses display
|
|
|
|
// I've actually added this for my web site uploaded courses display
|
|
|
|
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
|
|
|
|
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
|
|
|
|
if (args->isSet("course-info"))
|
|
|
|
if (args->isSet("course-info"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KCmdLineArgs::enable_i18n();
|
|
|
|
TDECmdLineArgs::enable_i18n();
|
|
|
|
|
|
|
|
|
|
|
|
TQString filename(TQFile::decodeName(args->getOption("course-info")));
|
|
|
|
TQString filename(TQFile::decodeName(args->getOption("course-info")));
|
|
|
|
if (TQFile::exists(filename))
|
|
|
|
if (TQFile::exists(filename))
|
|
|
@ -66,7 +66,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KCmdLineArgs::usage(i18n("Course %1 does not exist.").arg(filename.latin1()));
|
|
|
|
TDECmdLineArgs::usage(i18n("Course %1 does not exist.").arg(filename.latin1()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|