author | llornkcor <llornkcor> | 2004-09-25 05:54:57 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-09-25 05:54:57 (UTC) |
commit | 0671201a4527973c41adad5f5681938da7f1f824 (patch) (side-by-side diff) | |
tree | 0dab2989196bfb6e74b3c647c211e8c39587a881 | |
parent | dba0864dd99dfc86a33bde72809634be7f0da9c4 (diff) | |
download | opie-0671201a4527973c41adad5f5681938da7f1f824.zip opie-0671201a4527973c41adad5f5681938da7f1f824.tar.gz opie-0671201a4527973c41adad5f5681938da7f1f824.tar.bz2 |
formatted strings
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 4 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 8d07f69..9721f84 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -294,13 +294,13 @@ void AdvancedFm::switchToRemoteTab() { void AdvancedFm::currentPathComboChanged() { if(QDir( currentPathCombo->lineEdit()->text()).exists()) { CurrentDir()->setPath( currentPathCombo->lineEdit()->text() ); populateView(); } else { - QMessageBox::message(tr("Note"),tr("That directory does not exist")); + QMessageBox::message(tr("Note"),tr("<p>That directory does not exist</p>")); } } void AdvancedFm::fillCombo(const QString ¤tPath) { if ( TabWidget->currentWidget() == tab) { @@ -666,13 +666,13 @@ void AdvancedFm::removeCustomDir() { dir = CurrentDir()->canonicalPath(); int ramble=2; // int ramble=-24; //first remove list if(list.grep(dir,true).isEmpty()) { QMessageBox::message(tr( "AdvancedFm" ), - tr("Cannot remove current directory\nfrom bookmarks.\nIt is not bookmarked!")); + tr("<p>Cannot remove current directory from bookmarks. It is not bookmarked!</p>")); } else { for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) { if((*it) != dir) { //current item is not our current dir, so add it to temp list list2 <<(*it); } else { diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index f14f588..706658e 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp @@ -144,13 +144,13 @@ void AdvancedFm::doDelete() { QStringList curFileList = getPath(); bool doMsg=true; int count = curFileList.count(); if( count > 0) { if(count > 1 ) { QString msg; - msg=tr("Really delete\n%1 files?").arg(count); + msg=tr("<p>Really delete %1 files?</p>").arg(count); switch ( QMessageBox::warning(this,tr("Delete"),msg ,tr("Yes"),tr("No"),0,0,1) ) { case 0: doMsg=false; break; @@ -172,13 +172,13 @@ void AdvancedFm::doDelete() { f += "/"; f += myFile; if(QDir(f).exists() && !QFileInfo(f).isSymLink() ) { //if file is a directory switch ( QMessageBox::warning( this, tr("Delete Directory?"), - tr("Really delete %1\nand all it's contents ?" ).arg( f ) , + tr("<p>Really delete %1 and all it's contents?</p>" ).arg( f ) , tr("Yes"), tr("No"), 0, 0, 1) ) { case 0: { f=f.left(f.length()-1); QString cmd="rm -rf "+f; startProcess( (const QString)cmd.latin1() ); @@ -190,13 +190,13 @@ void AdvancedFm::doDelete() { break; }; } else { if(doMsg) { switch ( QMessageBox::warning(this,tr("Delete"), - tr("Really delete\n%1?").arg( myFile ), + tr("<p>Really delete %1?</p>").arg( myFile ), tr("Yes"), tr("No"), 0, 0, 1) ) { case 1: return; break; }; } @@ -283,13 +283,13 @@ void AdvancedFm::copy() { bool doMsg=true; int count=curFileList.count(); if( count > 0) { if(count > 1 ){ QString msg; - msg=tr("Really copy\n%1 files?").arg(count); + msg=tr("<p>Really copy %1 files?</p>").arg(count); switch ( QMessageBox::warning(this,tr("Copy"),msg ,tr("Yes"),tr("No"),0,0,1) ) { case 0: doMsg=false; break; @@ -498,25 +498,25 @@ bool AdvancedFm::moveDirectory( const QString & src, const QString & dest ) { QString cmd = "rm -rf " + src; err = system((const char*)cmd); } else err = -1; if(err!=0) { - QMessageBox::message(tr("Note"),tr("Could not move\n") + src); + QMessageBox::message(tr("Note"),tr("<p>Could not move %1</p>").arg( src)); return false; } return true; } bool AdvancedFm::copyDirectory( const QString & src, const QString & dest ) { QString cmd = "/bin/cp -fpR " + src + " " + dest; owarn << cmd << oendl; int err = system( (const char *) cmd ); if ( err != 0 ) { - QMessageBox::message("AdvancedFm", tr( "Could not copy \n%1 \nto \n%2").arg( src ).arg( dest ) ); + QMessageBox::message("AdvancedFm", tr( "<p>Could not copy %1 to %2</p>").arg( src ).arg( dest ) ); return false; } return true; } |