author | llornkcor <llornkcor> | 2002-04-06 22:38:50 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-06 22:38:50 (UTC) |
commit | 08f0cefd22cb2122850b0786dafae15d0a5efebb (patch) (side-by-side diff) | |
tree | 9b3b576e557b92e9cb60f97d6a20875968910f1b /core/apps/textedit/textedit.cpp | |
parent | 6c651fd3b48421fe2fb0f76968c29ef142efc162 (diff) | |
download | opie-08f0cefd22cb2122850b0786dafae15d0a5efebb.zip opie-08f0cefd22cb2122850b0786dafae15d0a5efebb.tar.gz opie-08f0cefd22cb2122850b0786dafae15d0a5efebb.tar.bz2 |
translation stuff
Diffstat (limited to 'core/apps/textedit/textedit.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/apps/textedit/textedit.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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 @@ -335,7 +335,7 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) wa->addTo( font ); font->insertSeparator(); - font->insertItem("Font", this, SLOT(changeFont()) ); + font->insertItem(tr("Font"), this, SLOT(changeFont()) ); font->insertSeparator(); nStart = new QAction( tr("Start with new file"), QString::null, 0, this, 0 ); @@ -493,7 +493,7 @@ void TextEdit::fileNew() 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 ); browseForFiles->showMaximized(); if( browseForFiles->exec() != -1 ) { @@ -534,7 +534,7 @@ void TextEdit::doSearchBar() #if 0 void TextEdit::slotFind() { - FindDialog frmFind( "Text Editor", this ); + FindDialog frmFind( tr("Text Editor"), this ); connect( &frmFind, SIGNAL(signalFindClicked(const QString &, bool, bool, int)), editor, SLOT(slotDoFind( const QString&,bool,bool))); @@ -747,7 +747,7 @@ bool TextEdit::saveAs() QString rt = editor->text(); qDebug(currentFileName); - if( currentFileName.isEmpty() || currentFileName == "Unnamed") { + if( currentFileName.isEmpty() || currentFileName == tr("Unnamed")) { qDebug("do silly TT filename thing"); if ( doc->name().isEmpty() ) { QString pt = rt.simplifyWhiteSpace(); @@ -763,14 +763,14 @@ bool TextEdit::saveAs() if ( docname.length() > 40 ) docname = docname.left(40); if ( docname.isEmpty() ) - docname = "Unnamed"; + docname = tr("Unnamed"); doc->setName(docname); currentFileName=docname; } } - 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); fileSaveDlg->exec(); if( fileSaveDlg->result() == 1 ) { @@ -797,7 +797,7 @@ bool TextEdit::saveAs() } if( fileSaveDlg->filePermCheck->isChecked() ) { 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(); if( filePerm) @@ -888,7 +888,7 @@ void TextEdit::changeFont() { defaultFont = fdb.font(family,style,i_size,charSet); FontDialog *fontDlg; - fontDlg=new FontDialog(this,"FontDialog",TRUE); + fontDlg=new FontDialog(this,tr("FontDialog"),TRUE); fontDlg->exec(); @@ -900,7 +900,7 @@ void TextEdit::changeFont() { 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: if(doc) { doc->removeFiles(); |