summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp26
1 files changed, 15 insertions, 11 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index f97ae99..d0ccc3f 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -1225,7 +1225,7 @@ void AdvancedFm::copy()
};
}
if(!copyFile(destFile, curFile) ) {
- QMessageBox::message("AdvancedFm","Could not copy\n"+curFile +"to\n"+destFile);
+ QMessageBox::message("AdvancedFm",tr("Could not copy\n")+curFile +tr("to\n")+destFile);
qWarning("nothin doing");
}
@@ -1270,7 +1270,7 @@ void AdvancedFm::copyAs()
};
}
if(!copyFile(destFile, curFile) ) {
- QMessageBox::message("AdvancedFm","Could not copy\n"+curFile +"to\n"+destFile);
+ QMessageBox::message("AdvancedFm",tr("Could not copy\n")+curFile +tr("to\n")+destFile);
qWarning("nothin doing");
}
}
@@ -1303,7 +1303,7 @@ void AdvancedFm::copyAs()
};
}
if(!copyFile(destFile, curFile) ) {
- QMessageBox::message("AdvancedFm","Could not copy\n"+curFile +"to\n"+destFile);
+ QMessageBox::message("AdvancedFm",tr("Could not copy\n")+curFile +tr("to\n")+destFile);
qWarning("nothin doing");
}
@@ -1351,7 +1351,7 @@ void AdvancedFm::copySameDir() {
};
}
if(!copyFile(destFile, curFile) ) {
- QMessageBox::message("AdvancedFm","Could not copy\n"+curFile +"to\n"+destFile);
+ QMessageBox::message("AdvancedFm",tr("Could not copy\n")+curFile +tr("to\n")+destFile);
qWarning("nothin doing");
}
@@ -1388,7 +1388,7 @@ void AdvancedFm::copySameDir() {
};
}
if(!copyFile(destFile, curFile) ) {
- QMessageBox::message("AdvancedFm","Could not copy\n"+curFile +"to\n"+destFile);
+ QMessageBox::message("AdvancedFm",tr("Could not copy\n")+curFile +tr("to\n")+destFile);
qWarning("nothin doing");
}
qDebug("copy "+curFile+" as "+destFile);
@@ -1436,7 +1436,7 @@ void AdvancedFm::move() {
break;
};
if(!copyFile( destFile, curFile) ) {
- QMessageBox::message(tr("Note"),tr("Could not move\n"+curFile));
+ QMessageBox::message(tr("Note"),tr("Could not move\n")+curFile);
return;
}
QFile::remove(curFile);
@@ -1468,7 +1468,7 @@ void AdvancedFm::move() {
break;
};
if(!copyFile(destFile, curFile) ) {
- QMessageBox::message(tr("Note"),tr("Could not move\n"+curFile));
+ QMessageBox::message(tr("Note"),tr("Could not move\n")+curFile);
return;
}
}
@@ -1545,7 +1545,7 @@ void AdvancedFm::runCommand() {
fp = popen( (const char *) command, "r");
if ( !fp ) {
qDebug("Could not execute '" + command + "'! err=%d", fp);
- QMessageBox::warning( this, tr("AdvancedFm"), tr("command failed!"), tr("&OK") );
+ QMessageBox::warning( this, "AdvancedFm", tr("command failed!"), tr("&OK") );
pclose(fp);
return;
} else {
@@ -1601,7 +1601,7 @@ void AdvancedFm::fileStatus() {
fp = popen( (const char *) command, "r");
if ( !fp ) {
qDebug("Could not execute '" + command + "'! err=%d", fp);
- QMessageBox::warning( this, tr("AdvancedFm"), tr("command failed!"), tr("&OK") );
+ QMessageBox::warning( this, "AdvancedFm", tr("command failed!"), tr("&OK") );
pclose(fp);
return;
} else {
@@ -1638,10 +1638,10 @@ void AdvancedFm::del() {
}
void AdvancedFm::doAbout() {
- QMessageBox::message("AdvancedFm","Advanced FileManager\n"
+ QMessageBox::message("AdvancedFm",tr("Advanced FileManager\n"
"is copyright 2002 by\n"
"L.J.Potter<llornkcor@handhelds.org>\n"
- "and is licensed by the GPL");
+ "and is licensed by the GPL"));
}
void AdvancedFm::keyReleaseEvent( QKeyEvent *e)
@@ -1802,6 +1802,9 @@ QString AdvancedFm::getFileSystemType(const QString &currentText) {
return baseFs;
}
+QString AdvancedFm::getDiskSpace( const QString &) {
+
+}
void AdvancedFm::doBeam() {
Ir ir;
@@ -1922,6 +1925,7 @@ void AdvancedFm::showFileMenu() {
m->insertSeparator();
m->insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() ));
+
if( QFile(QPEApplication::qpeDir()+"lib/libopie.so").exists() ) //bad hack for Sharp zaurus failings
m->insertItem( tr( "Properties" ), this, SLOT( doProperties() ));
m->setCheckable(TRUE);