-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 | |||
50 | if ( !name ) | 50 | if ( !name ) |
51 | setName( "fileBrowser" ); | 51 | setName( tr("fileBrowser") ); |
52 | setCaption(tr( name ) ); | 52 | setCaption(tr( name ) ); |
@@ -122,3 +122,3 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags | |||
122 | ListView->setColumnWidth(1,-1); | 122 | ListView->setColumnWidth(1,-1); |
123 | ListView->addColumn( "Date",-1); | 123 | ListView->addColumn( tr("Date"),-1); |
124 | 124 | ||
@@ -350,3 +350,3 @@ void fileBrowser::selectionChanged( const QString &select ) | |||
350 | { | 350 | { |
351 | if ( select == "Documents") { | 351 | if ( select == tr("Documents")) { |
352 | FileStack->raiseWidget( fileSelector ); | 352 | FileStack->raiseWidget( fileSelector ); |
@@ -357,3 +357,3 @@ void fileBrowser::selectionChanged( const QString &select ) | |||
357 | } else { | 357 | } else { |
358 | if ( select == "All files" ) | 358 | if ( select == tr("All files") ) |
359 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::All); | 359 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::All); |
@@ -414,3 +414,3 @@ void fileBrowser::makDir() { | |||
414 | InputDialog *fileDlg; | 414 | InputDialog *fileDlg; |
415 | fileDlg = new InputDialog(this,"Make Directory",TRUE, 0); | 415 | fileDlg = new InputDialog(this,tr("Make Directory"),TRUE, 0); |
416 | fileDlg->exec(); | 416 | fileDlg->exec(); |
@@ -427,3 +427,3 @@ void fileBrowser::localRename() { | |||
427 | InputDialog *fileDlg; | 427 | InputDialog *fileDlg; |
428 | fileDlg = new InputDialog(this,"Rename",TRUE, 0); | 428 | fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0); |
429 | fileDlg->setTextEdit((const QString &) curFile); | 429 | fileDlg->setTextEdit((const QString &) curFile); |
@@ -434,3 +434,3 @@ void fileBrowser::localRename() { | |||
434 | if( rename(oldname.latin1(), newName.latin1())== -1) | 434 | if( rename(oldname.latin1(), newName.latin1())== -1) |
435 | QMessageBox::message("Note","Could not rename"); | 435 | QMessageBox::message(tr("Note"),tr("Could not rename")); |
436 | } | 436 | } |
@@ -442,4 +442,4 @@ void fileBrowser::localDelete() { | |||
442 | if(QDir(f).exists() ) { | 442 | if(QDir(f).exists() ) { |
443 | switch ( QMessageBox::warning(this,"Delete","Do you really want to delete\n"+f+ | 443 | switch ( QMessageBox::warning(this,tr("Delete"),tr("Do you really want to delete\n")+f+ |
444 | " ?\nIt must be empty","Yes","No",0,0,1) ) { | 444 | tr(" ?\nIt must be empty"),tr("Yes"),tr("No"),0,0,1) ) { |
445 | case 0: { | 445 | case 0: { |
@@ -456,4 +456,4 @@ void fileBrowser::localDelete() { | |||
456 | } else { | 456 | } else { |
457 | switch ( QMessageBox::warning(this,"Delete","Do you really want to delete\n"+f | 457 | switch ( QMessageBox::warning(this,tr("Delete"),tr("Do you really want to delete\n")+f |
458 | +" ?","Yes","No",0,0,1) ) { | 458 | +" ?",tr("Yes"),tr("No"),0,0,1) ) { |
459 | case 0: { | 459 | case 0: { |
@@ -495,3 +495,3 @@ void fileBrowser::showType(const QString &t) { | |||
495 | qDebug(t); | 495 | qDebug(t); |
496 | if(t.find("All",0,TRUE) != -1) { | 496 | if(t.find(tr("All"),0,TRUE) != -1) { |
497 | filterStr = "*"; | 497 | filterStr = "*"; |
@@ -607,3 +607,3 @@ InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags | |||
607 | if ( !name ) | 607 | if ( !name ) |
608 | setName( "InputDialog" ); | 608 | setName( tr("InputDialog") ); |
609 | resize( 234, 50 ); | 609 | 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 | |||
37 | if ( !name ) | 37 | if ( !name ) |
38 | setName( "filePermissions" ); | 38 | setName( tr("filePermissions") ); |
39 | qDebug("FilePermissions "+fileName); | 39 | // qDebug("FilePermissions "+fileName); |
40 | resize( 236, 210 ); | 40 | resize( 236, 210 ); |
@@ -250,3 +250,3 @@ void filePermissions::accept() { | |||
250 | perror("getpwnam"); | 250 | perror("getpwnam"); |
251 | QMessageBox::warning(this,"Warning","Error- no user"); | 251 | QMessageBox::warning(this,tr("Warning"),tr("Error- no user")); |
252 | return; | 252 | return; |
@@ -256,3 +256,3 @@ void filePermissions::accept() { | |||
256 | perror("getgrnam"); | 256 | perror("getgrnam"); |
257 | QMessageBox::warning(this,"Warning","Error- no group"); | 257 | QMessageBox::warning(this,tr("Warning"),tr("Error- no group")); |
258 | return; | 258 | return; |
@@ -261,3 +261,3 @@ void filePermissions::accept() { | |||
261 | perror("chown"); | 261 | perror("chown"); |
262 | QMessageBox::warning(this,"Warning","Error setting ownership or group"); | 262 | QMessageBox::warning(this,tr("Warning"),tr("Error setting ownership or group")); |
263 | return; | 263 | return; |
@@ -268,3 +268,3 @@ void filePermissions::accept() { | |||
268 | perror("chmod"); | 268 | perror("chmod"); |
269 | QMessageBox::warning(this,"Warning","Error setting mode"); | 269 | QMessageBox::warning(this,tr("Warning"),tr("Error setting mode")); |
270 | return; | 270 | 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 | |||
32 | if ( !name ) | 32 | if ( !name ) |
33 | setName( "fileSaver" ); | 33 | setName( tr("fileSaver")); |
34 | resize( 240, 280 ); | 34 | resize( 240, 280 ); |
@@ -65,3 +65,3 @@ fileSaver::fileSaver( QWidget* parent, const char* name, bool modal, WFlags fl | |||
65 | ListView->setColumnWidth(1,-1); | 65 | ListView->setColumnWidth(1,-1); |
66 | ListView->addColumn( "Date",-1); | 66 | ListView->addColumn( tr("Date"),-1); |
67 | 67 | ||
@@ -81,3 +81,3 @@ fileSaver::fileSaver( QWidget* parent, const char* name, bool modal, WFlags fl | |||
81 | filePermCheck = new QCheckBox( this, "SetFilePerms" ); | 81 | filePermCheck = new QCheckBox( this, "SetFilePerms" ); |
82 | filePermCheck->setText("set file permissions"); | 82 | filePermCheck->setText(tr("set file permissions")); |
83 | filePermCheck->setGeometry(10, 178, 150,17); | 83 | 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 | |||
37 | if ( !name ) | 37 | if ( !name ) |
38 | setName( "FontDialog" ); | 38 | setName( tr("FontDialog") ); |
39 | setCaption( tr( "Font Dialog" ) ); | 39 | 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 ) | |||
337 | font->insertSeparator(); | 337 | font->insertSeparator(); |
338 | font->insertItem("Font", this, SLOT(changeFont()) ); | 338 | font->insertItem(tr("Font"), this, SLOT(changeFont()) ); |
339 | 339 | ||
@@ -495,3 +495,3 @@ void TextEdit::fileOpen() | |||
495 | { | 495 | { |
496 | browseForFiles=new fileBrowser(this,"Open File",TRUE,0, "text/*"); // | 496 | browseForFiles=new fileBrowser(this,tr("Open File"),TRUE,0, "text/*"); // |
497 | browseForFiles->setFileView( viewSelection ); | 497 | browseForFiles->setFileView( viewSelection ); |
@@ -536,3 +536,3 @@ void TextEdit::slotFind() | |||
536 | { | 536 | { |
537 | FindDialog frmFind( "Text Editor", this ); | 537 | FindDialog frmFind( tr("Text Editor"), this ); |
538 | connect( &frmFind, SIGNAL(signalFindClicked(const QString &, bool, bool, int)), | 538 | connect( &frmFind, SIGNAL(signalFindClicked(const QString &, bool, bool, int)), |
@@ -749,3 +749,3 @@ bool TextEdit::saveAs() | |||
749 | 749 | ||
750 | if( currentFileName.isEmpty() || currentFileName == "Unnamed") { | 750 | if( currentFileName.isEmpty() || currentFileName == tr("Unnamed")) { |
751 | qDebug("do silly TT filename thing"); | 751 | qDebug("do silly TT filename thing"); |
@@ -765,3 +765,3 @@ bool TextEdit::saveAs() | |||
765 | if ( docname.isEmpty() ) | 765 | if ( docname.isEmpty() ) |
766 | docname = "Unnamed"; | 766 | docname = tr("Unnamed"); |
767 | doc->setName(docname); | 767 | doc->setName(docname); |
@@ -772,3 +772,3 @@ bool TextEdit::saveAs() | |||
772 | 772 | ||
773 | fileSaveDlg=new fileSaver(this,"Save File As?",TRUE, 0, currentFileName); | 773 | fileSaveDlg=new fileSaver(this,tr("Save File As?"),TRUE, 0, currentFileName); |
774 | qDebug("wanna save filename "+currentFileName); | 774 | qDebug("wanna save filename "+currentFileName); |
@@ -799,3 +799,3 @@ bool TextEdit::saveAs() | |||
799 | filePermissions *filePerm; | 799 | filePermissions *filePerm; |
800 | filePerm = new filePermissions(this, "Permissions",true,0,(const QString &)fileNm); | 800 | filePerm = new filePermissions(this, tr("Permissions"),true,0,(const QString &)fileNm); |
801 | filePerm->exec(); | 801 | filePerm->exec(); |
@@ -890,3 +890,3 @@ void TextEdit::changeFont() { | |||
890 | FontDialog *fontDlg; | 890 | FontDialog *fontDlg; |
891 | fontDlg=new FontDialog(this,"FontDialog",TRUE); | 891 | fontDlg=new FontDialog(this,tr("FontDialog"),TRUE); |
892 | 892 | ||
@@ -902,3 +902,3 @@ void TextEdit::editDelete() | |||
902 | { | 902 | { |
903 | 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) ) { | 903 | 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) ) { |
904 | case 0: | 904 | case 0: |