summaryrefslogtreecommitdiff
path: root/core
authorllornkcor <llornkcor>2002-04-06 22:38:50 (UTC)
committer llornkcor <llornkcor>2002-04-06 22:38:50 (UTC)
commit08f0cefd22cb2122850b0786dafae15d0a5efebb (patch) (side-by-side diff)
tree9b3b576e557b92e9cb60f97d6a20875968910f1b /core
parent6c651fd3b48421fe2fb0f76968c29ef142efc162 (diff)
downloadopie-08f0cefd22cb2122850b0786dafae15d0a5efebb.zip
opie-08f0cefd22cb2122850b0786dafae15d0a5efebb.tar.gz
opie-08f0cefd22cb2122850b0786dafae15d0a5efebb.tar.bz2
translation stuff
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/fileBrowser.cpp26
-rw-r--r--core/apps/textedit/filePermissions.cpp12
-rw-r--r--core/apps/textedit/fileSaver.cpp6
-rw-r--r--core/apps/textedit/fontDialog.cpp2
-rw-r--r--core/apps/textedit/textedit.cpp18
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
@@ -49,5 +49,5 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags
{
if ( !name )
- setName( "fileBrowser" );
+ setName( tr("fileBrowser") );
setCaption(tr( name ) );
// mimeType = mimeFilter;
@@ -121,5 +121,5 @@ fileBrowser::fileBrowser( QWidget* parent, const char* name, bool modal, WFlags
ListView->addColumn( tr( "Size" ) );
ListView->setColumnWidth(1,-1);
- ListView->addColumn( "Date",-1);
+ ListView->addColumn( tr("Date"),-1);
ListView->setColumnWidthMode(0,QListView::Manual);
@@ -349,5 +349,5 @@ void fileBrowser::docButtonPushed() {
void fileBrowser::selectionChanged( const QString &select )
{
- if ( select == "Documents") {
+ if ( select == tr("Documents")) {
FileStack->raiseWidget( fileSelector );
dirPathCombo->hide();
@@ -356,5 +356,5 @@ void fileBrowser::selectionChanged( const QString &select )
homeButton->hide();
} else {
- if ( select == "All files" )
+ if ( select == tr("All files") )
currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::All);
else
@@ -413,5 +413,5 @@ void fileBrowser::doCd() {
void fileBrowser::makDir() {
InputDialog *fileDlg;
- fileDlg = new InputDialog(this,"Make Directory",TRUE, 0);
+ fileDlg = new InputDialog(this,tr("Make Directory"),TRUE, 0);
fileDlg->exec();
if( fileDlg->result() == 1 ) {
@@ -426,5 +426,5 @@ void fileBrowser::localRename() {
QString curFile = ListView->currentItem()->text(0);
InputDialog *fileDlg;
- fileDlg = new InputDialog(this,"Rename",TRUE, 0);
+ fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0);
fileDlg->setTextEdit((const QString &) curFile);
fileDlg->exec();
@@ -433,5 +433,5 @@ void fileBrowser::localRename() {
QString newName = currentDir.canonicalPath() + "/" + fileDlg->LineEdit1->text();//+".playlist";
if( rename(oldname.latin1(), newName.latin1())== -1)
- QMessageBox::message("Note","Could not rename");
+ QMessageBox::message(tr("Note"),tr("Could not rename"));
}
populateList();
@@ -441,6 +441,6 @@ void fileBrowser::localDelete() {
QString f = ListView->currentItem()->text(0);
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: {
f=currentDir.canonicalPath()+"/"+f;
@@ -455,6 +455,6 @@ 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: {
f=currentDir.canonicalPath()+"/"+f;
@@ -494,5 +494,5 @@ void fileBrowser::showType(const QString &t) {
qDebug(t);
- if(t.find("All",0,TRUE) != -1) {
+ if(t.find(tr("All"),0,TRUE) != -1) {
filterStr = "*";
} else {
@@ -606,5 +606,5 @@ InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags
{
if ( !name )
- setName( "InputDialog" );
+ setName( tr("InputDialog") );
resize( 234, 50 );
setMaximumSize( QSize( 240, 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
@@ -36,6 +36,6 @@ 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 );
setMaximumSize( QSize( 236, 210 ) );
@@ -249,5 +249,5 @@ void filePermissions::accept() {
if(pwd == NULL) {
perror("getpwnam");
- QMessageBox::warning(this,"Warning","Error- no user");
+ QMessageBox::warning(this,tr("Warning"),tr("Error- no user"));
return;
} else {
@@ -255,10 +255,10 @@ void filePermissions::accept() {
if(grp==NULL) {
perror("getgrnam");
- QMessageBox::warning(this,"Warning","Error- no group");
+ QMessageBox::warning(this,tr("Warning"),tr("Error- no group"));
return;
}
if( chown( file.latin1(), pwd->pw_uid, grp->gr_gid) <0) {
perror("chown");
- QMessageBox::warning(this,"Warning","Error setting ownership or group");
+ QMessageBox::warning(this,tr("Warning"),tr("Error setting ownership or group"));
return;
}
@@ -267,5 +267,5 @@ void filePermissions::accept() {
if( chmod( file.latin1(), moder) < 0) {
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
@@ -31,5 +31,5 @@ fileSaver::fileSaver( QWidget* parent, const char* name, bool modal, WFlags fl
{
if ( !name )
- setName( "fileSaver" );
+ setName( tr("fileSaver"));
resize( 240, 280 );
setCaption(tr( name ) );
@@ -64,5 +64,5 @@ fileSaver::fileSaver( QWidget* parent, const char* name, bool modal, WFlags fl
ListView->addColumn( tr( "Size" ) );
ListView->setColumnWidth(1,-1);
- ListView->addColumn( "Date",-1);
+ ListView->addColumn( tr("Date"),-1);
ListView->setColumnWidthMode(0,QListView::Manual);
@@ -80,5 +80,5 @@ 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);
// signals and slots connections
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
@@ -36,5 +36,5 @@ FontDialog::FontDialog( QWidget * parent, const char* name , bool modal, WFlags
{
if ( !name )
- setName( "FontDialog" );
+ setName( tr("FontDialog") );
setCaption( tr( "Font Dialog" ) );
FontTextLabel4 = new QLabel( this, "TextLabel4" );
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
@@ -336,5 +336,5 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f )
font->insertSeparator();
- font->insertItem("Font", this, SLOT(changeFont()) );
+ font->insertItem(tr("Font"), this, SLOT(changeFont()) );
font->insertSeparator();
@@ -494,5 +494,5 @@ 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();
@@ -535,5 +535,5 @@ void TextEdit::doSearchBar()
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)));
@@ -748,5 +748,5 @@ bool TextEdit::saveAs()
qDebug(currentFileName);
- if( currentFileName.isEmpty() || currentFileName == "Unnamed") {
+ if( currentFileName.isEmpty() || currentFileName == tr("Unnamed")) {
qDebug("do silly TT filename thing");
if ( doc->name().isEmpty() ) {
@@ -764,5 +764,5 @@ bool TextEdit::saveAs()
docname = docname.left(40);
if ( docname.isEmpty() )
- docname = "Unnamed";
+ docname = tr("Unnamed");
doc->setName(docname);
currentFileName=docname;
@@ -771,5 +771,5 @@ 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);
fileSaveDlg->exec();
@@ -798,5 +798,5 @@ 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();
@@ -889,5 +889,5 @@ void TextEdit::changeFont() {
FontDialog *fontDlg;
- fontDlg=new FontDialog(this,"FontDialog",TRUE);
+ fontDlg=new FontDialog(this,tr("FontDialog"),TRUE);
fontDlg->exec();
@@ -901,5 +901,5 @@ 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) {