From kde-i18n-doc Mon Mar 20 08:09:27 2006 From: David Faure Date: Mon, 20 Mar 2006 08:09:27 +0000 To: kde-i18n-doc Subject: Re: koffice/lib/kofficecore Message-Id: <200603200909.27878.faure () kde ! org> X-MARC-Message: https://marc.info/?l=kde-i18n-doc&m=114284219629531 On Monday 20 March 2006 00:58, Thomas Zander wrote: > SVN commit 520458 by zander: > > Fix bug for cases where the path contains a %2 and the error message is pasted in the wrong place > This happens in case of users creating a dir with a slash in konq; which ends up being %2f on the filesystem. > to i18n teams; All I did was change the %1 and %2 around, sorry for the fuzzy! > > CCMAIL: kde-i18n-doc@kde.org > > > M +2 -2 KoDocument.cpp > > > --- trunk/koffice/lib/kofficecore/KoDocument.cpp #520457:520458 > @@ -1504,9 +1504,9 @@ > > if( d->m_autoErrorHandlingEnabled && !msg.isEmpty()) > { > - QString errorMsg( i18n( "Could not open\n%1.\nReason: %2" ) ); > + QString errorMsg( i18n( "Could not open\n%2.\nReason: %1" ) ); > QString docUrl = url().prettyURL( 0, KURL::StripFileProtocol ); > - KMessageBox::error( 0L, errorMsg.arg(docUrl).arg(msg) ); > + KMessageBox::error( 0L, errorMsg.arg(msg).arg(docUrl) ); The right fix was errorMsg.arg(docUrl,msg) ... -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).