[Kst] kdeextragear-2/kst/kst/extensions/elog

Andrew Walker arwalker at sumusltd.com
Tue Mar 16 23:28:21 CET 2004


CVS commit by arwalker: 

Updated some translation settings.


  M +1 -1      elogthreadattrs.cpp   1.2
  M +7 -7      elogthreadsubmit.cpp   1.3


--- kdeextragear-2/kst/kst/extensions/elog/elogthreadattrs.cpp  #1.1:1.2
@@ -134,5 +134,5 @@ void ElogThreadAttrs::doTransmit(int soc
   else
   {
-    doError("ELOG attributes: Unable to receive response", KstDebug::Notice );
+    doError( tr2i18n("ELOG attributes: Unable to receive response"), KstDebug::Notice );
   }
 }

--- kdeextragear-2/kst/kst/extensions/elog/elogthreadsubmit.cpp  #1.2:1.3
@@ -195,5 +195,5 @@ void ElogThreadSubmit::doTransmit(int so
     else
     {
-      doError("ELOG entry: Unable to receive response", KstDebug::Notice );
+      doError( tr2i18n("ELOG entry: Unable to receive response"), KstDebug::Notice );
     }
   }
@@ -252,9 +252,9 @@ bool ElogThreadSubmit::doResponseError( 
         
         if (strrchr(str, '/')) {
-          strError.sprintf( "Successfully added ELOG entry: ID=%s\n", strrchr(str, '/') + 1 );
-          doError( strError.ascii(), KstDebug::Notice );
+          strError = tr2i18n("Successfully added ELOG entry: ID=%1\n").arg( strrchr(str, '/') + 1 );
+          doError( strError, KstDebug::Notice );
         } else {
-          strError.sprintf( "Successfully added ELOG entry: ID=%s\n", str );
-          doError( strError.ascii(), KstDebug::Notice );
+          strError = tr2i18n("Successfully added ELOG entry: ID=%1\n").arg( str );
+          doError( strError, KstDebug::Notice );
         }
       }
@@ -275,6 +275,6 @@ bool ElogThreadSubmit::doResponseError( 
       *strchr(str, '<') = 0;
     }
-    strError.sprintf( "Failed to add ELOG entry: Missing required attribute \"%s\"", str );
-    doError( strError.ascii() );
+    strError = tr2i18n("Failed to add ELOG entry: Missing required attribute \"%1\"").arg( str );
+    doError( strError );
   } else {
     doError( tr2i18n("Failed to add ELOG entry: Error transmitting message") ); 





More information about the Kst mailing list