QFrame * asciiArtFrame = addPage( i18n( "AsciiArt" ), i18n( "AsciiArt" ) );
m_asciiArtPage = new Kita::AsciiArtPrefPage( asciiArtFrame );
-
+
QFrame * debugFrame = addPage( i18n( "Debug" ), i18n( "Debug" ) );
m_debugPage = new DebugPrefPage( debugFrame );
}
{
QString fromURL = fromURLLine->text();
QString toURL = toURLLine->text();
-
+
if ( toURL.find( fromURL ) == 0 ) {
- QMessageBox::critical( this, QString( "replace" ),
- QString( "'To' URL must not contain 'From' URL." ) );;
- return;
+ QMessageBox::critical( this, i18n( "replace" ),
+ i18n( "'To' URL must not contain 'From' URL." ) );;
+ return ;
}
- if ( QMessageBox::warning( this, QString( "replace" ),
- QString( "This tool may possibly break thread's info.\n"
- "Please create backups of '~/.kde/share/apps/kita/cache' "
- "and '~/.kde/share/apps/kita/favorites.xml' before performing.\n"
- "Are you ready?" ), QMessageBox::Ok, QMessageBox::Cancel | QMessageBox::Default | QMessageBox::Escape ) == QMessageBox::Ok ) {
+ if ( QMessageBox::warning( this, i18n( "replace" ),
+ i18n( "This tool may possibly break thread's info.\n"
+ "Please create backups of '~/.kde/share/apps/kita/cache' "
+ "and '~/.kde/share/apps/kita/favorites.xml' before performing.\n"
+ "Are you ready?" ), QMessageBox::Ok,
+ QMessageBox::Cancel | QMessageBox::Default | QMessageBox::Escape ) == QMessageBox::Ok ) {
FavoriteThreads::replace( fromURL, toURL );
Kita::Thread::replace( fromURL, toURL );
KitaThreadInfo::replace( fromURL, toURL );
-
- QMessageBox::information( this, "replace", "Complete." );
+
+ QMessageBox::information( this, i18n( "replace" ), i18n( "Complete." ) );
}
}