Rename KLocale to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 9a9f0befb2
commit 087f8d4521

@ -101,7 +101,7 @@ struct LogInfo
TQString createToolTipText(bool showTime = true) const;
/**
* Calls KLocale::formatDateTime() to create a formatted string.
* Calls TDELocale::formatDateTime() to create a formatted string.
*
* @param showTime show commit time in tooltip.
* @param shortFormat using the short date format.

@ -715,7 +715,7 @@ void CatalogManagerView::markedStatistics()
void CatalogManagerView::showStatistics( CatManListItem *i, TQStringList &childrenList )
{
KLocale *locale = TDEGlobal::locale();
TDELocale *locale = TDEGlobal::locale();
TQString msg;
int totalPackages=0;

@ -182,7 +182,7 @@ static KCmdLineOptions options[] =
int main(int argc, char **argv)
{
KLocale::setMainCatalogue("kbabel");
TDELocale::setMainCatalogue("kbabel");
TDEAboutData about("catalogmanager",I18N_NOOP("KBabel - Catalog Manager"),VERSION,
I18N_NOOP("An advanced catalog manager for KBabel"),TDEAboutData::License_GPL,
I18N_NOOP("(c) 1999,2000,2001,2002,2003,2004,2005,2006 The KBabel developers"),0,"http://kbabel.kde.org");

@ -125,7 +125,7 @@ void MultiRoughTransDlg::showAllStatistics()
if( tt == 0 ) tt = 1;
int nothing=tt-ptc-etc;
KLocale *locale = TDEGlobal::locale();
TDELocale *locale = TDEGlobal::locale();
TQString statMsg = i18n("Result of the translation:\n"
"Edited entries: %1\n"
"Exact translations: %2 (%3%)\n"

@ -3313,7 +3313,7 @@ int Catalog::getNumberOfPluralForms(const TQString& lang)
{
int nr=-1;
KLocale locale("tdelibs");
TDELocale locale("tdelibs");
locale.setLanguage(lang);
const char* formsString =

@ -200,7 +200,7 @@ TQString Defaults::Identity::mailingList()
TQString Defaults::Identity::languageCode()
{
// first try to get the language from KDE settings
KLocale *locale = TDEGlobal::locale();
TDELocale *locale = TDEGlobal::locale();
TQString lang;
if(locale)
{

@ -667,7 +667,7 @@ void RoughTransDlg::translate()
void RoughTransDlg::showStatistics()
{
int nothing=totalTried-partTransCounter-exactTransCounter;
KLocale *locale = TDEGlobal::locale();
TDELocale *locale = TDEGlobal::locale();
TQString statMsg = i18n("Result of the translation:\n"
"Edited entries: %1\n"
"Exact translations: %2 (%3%)\n"

@ -3590,7 +3590,7 @@ void KBabelView::autoCheck(bool onlyWhenChanged)
TQString msg = "";
// ### TODO: whynot use i18n("context",text) directly?
KLocale* locale=TDEGlobal::locale();
TDELocale* locale=TDEGlobal::locale();
for( TQStringList::iterator it=status.begin() ; it != status.end() ; ++it )
{

@ -109,7 +109,7 @@ static KCmdLineOptions options[] =
int main(int argc, char **argv)
{
KLocale::setMainCatalogue("kbabel");
TDELocale::setMainCatalogue("kbabel");
TDEAboutData about("kbabeldict",I18N_NOOP("KBabel - Dictionary"),VERSION,
I18N_NOOP("A dictionary for translators"),TDEAboutData::License_GPL,

@ -110,7 +110,7 @@ void CWBugDetailsContainer::setBug( const Bug &bug, const BugDetails &details )
if ( bug.mergedWith().size() )
{
//FIXME: What should the separator be for lists? Don't see anything in KLocale for that
//FIXME: What should the separator be for lists? Don't see anything in TDELocale for that
TQString list;
Bug::BugMergeList mergedWith = bug.mergedWith();
for (Bug::BugMergeList::ConstIterator i = mergedWith.begin(); i != mergedWith.end(); ++i)

@ -22,7 +22,7 @@ $lastdir = '.';
'`i18n\' undeclared \(first use this function\)' => "klocale",
'variable `class QPixmap \S*\' has initializer but incomplete type' => "qpixmap",
'`kapp\' undeclared \(first use this function\)' => "kapplication",
'no matching function for call to `KLocale::' => "klocale",
'no matching function for call to `TDELocale::' => "klocale",
'`klocale\' undeclared \(first use this function\)' => "klocale",
'no matching function for call to `QPopupMenu::' => "qpopupmenu",
'`QTextStream\' undeclared \(first use this function\)' => "qtextstream",

Loading…
Cancel
Save