OSDN Git Service

add i18n()
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Tue, 23 Mar 2004 10:54:01 +0000 (10:54 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Tue, 23 Mar 2004 10:54:01 +0000 (10:54 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@938 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/pref.cpp

index 1b4c278..e579bc9 100644 (file)
@@ -49,7 +49,7 @@ KitaPreferences::KitaPreferences()
 
     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 );
 }
@@ -176,23 +176,24 @@ void DebugPrefPage::replace()
 {
     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." ) );
     }
 }