Rename KLocale to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 11 years ago
parent 9c4ceda498
commit 3a41b8717f

@ -12,7 +12,7 @@
int main (int argc, char *argv[]) int main (int argc, char *argv[])
{ {
KLocale::setMainCatalogue("dcoprss"); TDELocale::setMainCatalogue("dcoprss");
TDEAboutData aboutdata("rssservice", I18N_NOOP("TDE RSS Service"), TDEAboutData aboutdata("rssservice", I18N_NOOP("TDE RSS Service"),
"0.8", I18N_NOOP("A RSS data service."), "0.8", I18N_NOOP("A RSS data service."),
TDEAboutData::License_GPL, "(C) 2003, Ian Reinhart Geiser"); TDEAboutData::License_GPL, "(C) 2003, Ian Reinhart Geiser");

@ -34,7 +34,7 @@ static const KCmdLineOptions options[] =
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
KLocale::setMainCatalogue("knewsticker"); TDELocale::setMainCatalogue("knewsticker");
TDEAboutData aboutData(name, verbname, version, description, TDEAboutData aboutData(name, verbname, version, description,
TDEAboutData::License_BSD, copyright); TDEAboutData::License_BSD, copyright);

@ -219,7 +219,7 @@ void ICQProtocol::initGenders()
void ICQProtocol::initCountries() void ICQProtocol::initCountries()
{ {
mCountries.insert(0, ""); // unspecified mCountries.insert(0, ""); // unspecified
KLocale *kl = TDEGlobal::locale(); //KLocale(TQString::fromLatin1("kopete")); TDELocale *kl = TDEGlobal::locale(); //TDELocale(TQString::fromLatin1("kopete"));
mCountries.insert(93, kl->twoAlphaToCountryName("af")); mCountries.insert(93, kl->twoAlphaToCountryName("af"));
mCountries.insert(355, kl->twoAlphaToCountryName("al")); mCountries.insert(355, kl->twoAlphaToCountryName("al"));
@ -468,7 +468,7 @@ void ICQProtocol::initCountries()
void ICQProtocol::initLang() void ICQProtocol::initLang()
{ {
KLocale *kl = TDEGlobal::locale(); //KLocale(TQString::fromLatin1("kopete")); TDELocale *kl = TDEGlobal::locale(); //TDELocale(TQString::fromLatin1("kopete"));
mLanguages.insert(0 , ""); mLanguages.insert(0 , "");
mLanguages.insert(1 , kl->twoAlphaToLanguageName("ar") /*i18n("Arabic")*/); mLanguages.insert(1 , kl->twoAlphaToLanguageName("ar") /*i18n("Arabic")*/);

@ -76,7 +76,7 @@ int main (int argc, char **argv)
{ {
TDECmdLineArgs::init(argc, argv, "ktalkdlg", description, version ); TDECmdLineArgs::init(argc, argv, "ktalkdlg", description, version );
TDECmdLineArgs::addCmdLineOptions( option ); TDECmdLineArgs::addCmdLineOptions( option );
KLocale::setMainCatalogue( "kcmktalkd" ); TDELocale::setMainCatalogue( "kcmktalkd" );
TDEApplication a; TDEApplication a;
struct timeval clock; struct timeval clock;

Loading…
Cancel
Save