Rename KLocale to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent da4097d57f
commit 5193962621

@ -54,7 +54,7 @@ int main( int argc, char *argv[] )
KommanderWidget::inEditor = true; KommanderWidget::inEditor = true;
KLocale::setMainCatalogue("kommander"); TDELocale::setMainCatalogue("kommander");
TDEApplication a(true, true); TDEApplication a(true, true);
TDEConfig *config = kapp->config(); TDEConfig *config = kapp->config();

@ -66,7 +66,7 @@ int main(int argc, char *argv[])
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->isSet("c")) if (args->isSet("c"))
KLocale::setMainCatalogue(args->getOption("c")); TDELocale::setMainCatalogue(args->getOption("c"));
else if (args->count()) else if (args->count())
{ {
char buf[200]; char buf[200];
@ -75,10 +75,10 @@ int main(int argc, char *argv[])
if (ext != -1) if (ext != -1)
baseFile = baseFile.left(ext); baseFile = baseFile.left(ext);
strcpy(buf, baseFile.latin1()); strcpy(buf, baseFile.latin1());
KLocale::setMainCatalogue(buf); TDELocale::setMainCatalogue(buf);
} }
else else
KLocale::setMainCatalogue("kommander"); TDELocale::setMainCatalogue("kommander");
TDEApplication app; TDEApplication app;
TQObject::connect(&app, TQT_SIGNAL(lastWindowClosed()), &app, TQT_SLOT(quit())); TQObject::connect(&app, TQT_SIGNAL(lastWindowClosed()), &app, TQT_SLOT(quit()));

@ -55,7 +55,7 @@ static KCmdLineOptions options[] =
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
KLocale::setMainCatalogue("kommander"); TDELocale::setMainCatalogue("kommander");
TDEAboutData aboutData( "kmdr-plugins", I18N_NOOP("Kommander Plugin Manager"), TDEAboutData aboutData( "kmdr-plugins", I18N_NOOP("Kommander Plugin Manager"),
KOMMANDER_VERSION, description, TDEAboutData::License_GPL, KOMMANDER_VERSION, description, TDEAboutData::License_GPL,
"(C) 2004-2005 Kommander authors"); "(C) 2004-2005 Kommander authors");

@ -119,7 +119,7 @@ class XsldbgApp : public TDEApplication
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
KLocale::setMainCatalogue("kxsldbg"); // Translations come from KXSLDbg's catalog TDELocale::setMainCatalogue("kxsldbg"); // Translations come from KXSLDbg's catalog
TQString xsldbgRunTimeInfo(i18n("Using libxml %1, libxslt %2 and libexslt %3\n").arg(xmlParserVersion).arg(xsltEngineVersion).arg(exsltLibraryVersion)); TQString xsldbgRunTimeInfo(i18n("Using libxml %1, libxslt %2 and libexslt %3\n").arg(xmlParserVersion).arg(xsltEngineVersion).arg(exsltLibraryVersion));
TQString libxmlCompileTimeInfo(i18n("xsldbg was compiled against libxml %1, libxslt %2 and libexslt %3\n").arg(LIBXML_VERSION).arg(LIBXSLT_VERSION).arg(LIBEXSLT_VERSION)); TQString libxmlCompileTimeInfo(i18n("xsldbg was compiled against libxml %1, libxslt %2 and libexslt %3\n").arg(LIBXML_VERSION).arg(LIBXSLT_VERSION).arg(LIBEXSLT_VERSION));

Loading…
Cancel
Save