-rw-r--r-- | core/apps/textedit/fileBrowser.cpp | 26 | ||||
-rw-r--r-- | core/apps/textedit/filePermissions.cpp | 12 | ||||
-rw-r--r-- | core/apps/textedit/fileSaver.cpp | 6 | ||||
-rw-r--r-- | core/apps/textedit/fontDialog.cpp | 2 | ||||
-rw-r--r-- | core/apps/textedit/textedit.cpp | 18 |
5 files changed, 32 insertions, 32 deletions
diff --git a/core/apps/textedit/fileBrowser.cpp b/core/apps/textedit/fileBrowser.cpp index b655c96..bc99348 100644 --- a/core/apps/textedit/fileBrowser.cpp +++ b/core/apps/textedit/fileBrowser.cpp @@ -50,3 +50,3 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags if ( !name ) - setName( "fileBrowser" ); + setName( tr("fileBrowser") ); setCaption(tr( name ) ); @@ -122,3 +122,3 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags ListView->setColumnWidth(1,-1); - ListView->addColumn( "Date",-1); + ListView->addColumn( tr("Date"),-1); @@ -350,3 +350,3 @@ void fileBrowser::selectionChanged( const QString &select ) { - if ( select == "Documents") { + if ( select == tr("Documents")) { FileStack->raiseWidget( fileSelector ); @@ -357,3 +357,3 @@ void fileBrowser::selectionChanged( const QString &select ) } else { - if ( select == "All files" ) + if ( select == tr("All files") ) currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::All); @@ -414,3 +414,3 @@ void fileBrowser::makDir() { InputDialog *fileDlg; - fileDlg = new InputDialog(this,"Make Directory",TRUE, 0); + fileDlg = new InputDialog(this,tr("Make Directory"),TRUE, 0); fileDlg->exec(); @@ -427,3 +427,3 @@ void fileBrowser::localRename() { InputDialog *fileDlg; - fileDlg = new InputDialog(this,"Rename",TRUE, 0); + fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0); fileDlg->setTextEdit((const QString &) curFile); @@ -434,3 +434,3 @@ void fileBrowser::localRename() { if( rename(oldname.latin1(), newName.latin1())== -1) - QMessageBox::message("Note","Could not rename"); + QMessageBox::message(tr("Note"),tr("Could not rename")); } @@ -442,4 +442,4 @@ void fileBrowser::localDelete() { if(QDir(f).exists() ) { - switch ( QMessageBox::warning(this,"Delete","Do you really want to delete\n"+f+ - " ?\nIt must be empty","Yes","No",0,0,1) ) { + switch ( QMessageBox::warning(this,tr("Delete"),tr("Do you really want to delete\n")+f+ + tr(" ?\nIt must be empty"),tr("Yes"),tr("No"),0,0,1) ) { case 0: { @@ -456,4 +456,4 @@ void fileBrowser::localDelete() { } else { - switch ( QMessageBox::warning(this,"Delete","Do you really want to delete\n"+f - +" ?","Yes","No",0,0,1) ) { + switch ( QMessageBox::warning(this,tr("Delete"),tr("Do you really want to delete\n")+f + +" ?",tr("Yes"),tr("No"),0,0,1) ) { case 0: { @@ -495,3 +495,3 @@ void fileBrowser::showType(const QString &t) { qDebug(t); - if(t.find("All",0,TRUE) != -1) { + if(t.find(tr("All"),0,TRUE) != -1) { filterStr = "*"; @@ -607,3 +607,3 @@ InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags if ( !name ) - setName( "InputDialog" ); + setName( tr("InputDialog") ); resize( 234, 50 ); diff --git a/core/apps/textedit/filePermissions.cpp b/core/apps/textedit/filePermissions.cpp index 5af3971..def957b 100644 --- a/core/apps/textedit/filePermissions.cpp +++ b/core/apps/textedit/filePermissions.cpp @@ -37,4 +37,4 @@ filePermissions::filePermissions( QWidget* parent, const char* name, bool modal if ( !name ) - setName( "filePermissions" ); - qDebug("FilePermissions "+fileName); + setName( tr("filePermissions") ); +// qDebug("FilePermissions "+fileName); resize( 236, 210 ); @@ -250,3 +250,3 @@ void filePermissions::accept() { perror("getpwnam"); - QMessageBox::warning(this,"Warning","Error- no user"); + QMessageBox::warning(this,tr("Warning"),tr("Error- no user")); return; @@ -256,3 +256,3 @@ void filePermissions::accept() { perror("getgrnam"); - QMessageBox::warning(this,"Warning","Error- no group"); + QMessageBox::warning(this,tr("Warning"),tr("Error- no group")); return; @@ -261,3 +261,3 @@ void filePermissions::accept() { perror("chown"); - QMessageBox::warning(this,"Warning","Error setting ownership or group"); + QMessageBox::warning(this,tr("Warning"),tr("Error setting ownership or group")); return; @@ -268,3 +268,3 @@ void filePermissions::accept() { perror("chmod"); - QMessageBox::warning(this,"Warning","Error setting mode"); + QMessageBox::warning(this,tr("Warning"),tr("Error setting mode")); return; diff --git a/core/apps/textedit/fileSaver.cpp b/core/apps/textedit/fileSaver.cpp index f2a5355..b1ddc0b 100644 --- a/core/apps/textedit/fileSaver.cpp +++ b/core/apps/textedit/fileSaver.cpp @@ -32,3 +32,3 @@ fileSaver::fileSaver( QWidget* parent, const char* name, bool modal, WFlags fl if ( !name ) - setName( "fileSaver" ); + setName( tr("fileSaver")); resize( 240, 280 ); @@ -65,3 +65,3 @@ fileSaver::fileSaver( QWidget* parent, const char* name, bool modal, WFlags fl ListView->setColumnWidth(1,-1); - ListView->addColumn( "Date",-1); + ListView->addColumn( tr("Date"),-1); @@ -81,3 +81,3 @@ fileSaver::fileSaver( QWidget* parent, const char* name, bool modal, WFlags fl filePermCheck = new QCheckBox( this, "SetFilePerms" ); - filePermCheck->setText("set file permissions"); + filePermCheck->setText(tr("set file permissions")); filePermCheck->setGeometry(10, 178, 150,17); diff --git a/core/apps/textedit/fontDialog.cpp b/core/apps/textedit/fontDialog.cpp index e7bd924..681e8a6 100644 --- a/core/apps/textedit/fontDialog.cpp +++ b/core/apps/textedit/fontDialog.cpp @@ -37,3 +37,3 @@ FontDialog::FontDialog( QWidget * parent, const char* name , bool modal, WFlags if ( !name ) - setName( "FontDialog" ); + setName( tr("FontDialog") ); setCaption( tr( "Font Dialog" ) ); diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index d28ece8..6804918 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -337,3 +337,3 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) font->insertSeparator(); - font->insertItem("Font", this, SLOT(changeFont()) ); + font->insertItem(tr("Font"), this, SLOT(changeFont()) ); @@ -495,3 +495,3 @@ void TextEdit::fileOpen() { - browseForFiles=new fileBrowser(this,"Open File",TRUE,0, "text/*"); // + browseForFiles=new fileBrowser(this,tr("Open File"),TRUE,0, "text/*"); // browseForFiles->setFileView( viewSelection ); @@ -536,3 +536,3 @@ void TextEdit::slotFind() { - FindDialog frmFind( "Text Editor", this ); + FindDialog frmFind( tr("Text Editor"), this ); connect( &frmFind, SIGNAL(signalFindClicked(const QString &, bool, bool, int)), @@ -749,3 +749,3 @@ bool TextEdit::saveAs() - if( currentFileName.isEmpty() || currentFileName == "Unnamed") { + if( currentFileName.isEmpty() || currentFileName == tr("Unnamed")) { qDebug("do silly TT filename thing"); @@ -765,3 +765,3 @@ bool TextEdit::saveAs() if ( docname.isEmpty() ) - docname = "Unnamed"; + docname = tr("Unnamed"); doc->setName(docname); @@ -772,3 +772,3 @@ bool TextEdit::saveAs() - fileSaveDlg=new fileSaver(this,"Save File As?",TRUE, 0, currentFileName); + fileSaveDlg=new fileSaver(this,tr("Save File As?"),TRUE, 0, currentFileName); qDebug("wanna save filename "+currentFileName); @@ -799,3 +799,3 @@ bool TextEdit::saveAs() filePermissions *filePerm; - filePerm = new filePermissions(this, "Permissions",true,0,(const QString &)fileNm); + filePerm = new filePermissions(this, tr("Permissions"),true,0,(const QString &)fileNm); filePerm->exec(); @@ -890,3 +890,3 @@ void TextEdit::changeFont() { FontDialog *fontDlg; - fontDlg=new FontDialog(this,"FontDialog",TRUE); + fontDlg=new FontDialog(this,tr("FontDialog"),TRUE); @@ -902,3 +902,3 @@ void TextEdit::editDelete() { - switch ( QMessageBox::warning(this,"Text Editor","Do you really want\nto delete the current file\nfrom the disk?\nThis is irreversable!!","Yes","No",0,0,1) ) { + switch ( QMessageBox::warning(this,tr("Text Editor"),tr("Do you really want\nto delete the current file\nfrom the disk?\nThis is irreversable!!"),tr("Yes"),tr("No"),0,0,1) ) { case 0: |