summaryrefslogtreecommitdiff
path: root/core/apps/textedit/filePermissions.cpp
authorllornkcor <llornkcor>2002-04-06 22:38:50 (UTC)
committer llornkcor <llornkcor>2002-04-06 22:38:50 (UTC)
commit08f0cefd22cb2122850b0786dafae15d0a5efebb (patch) (unidiff)
tree9b3b576e557b92e9cb60f97d6a20875968910f1b /core/apps/textedit/filePermissions.cpp
parent6c651fd3b48421fe2fb0f76968c29ef142efc162 (diff)
downloadopie-08f0cefd22cb2122850b0786dafae15d0a5efebb.zip
opie-08f0cefd22cb2122850b0786dafae15d0a5efebb.tar.gz
opie-08f0cefd22cb2122850b0786dafae15d0a5efebb.tar.bz2
translation stuff
Diffstat (limited to 'core/apps/textedit/filePermissions.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/filePermissions.cpp12
1 files changed, 6 insertions, 6 deletions
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
@@ -32,14 +32,14 @@
32#include <grp.h> 32#include <grp.h>
33 33
34filePermissions::filePermissions( QWidget* parent, const char* name, bool modal, WFlags fl, const QString &fileName ) 34filePermissions::filePermissions( QWidget* parent, const char* name, bool modal, WFlags fl, const QString &fileName )
35 : QDialog( parent, name, modal, fl ) 35 : QDialog( parent, name, modal, fl )
36{ 36{
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 );
41 setMaximumSize( QSize( 236, 210 ) ); 41 setMaximumSize( QSize( 236, 210 ) );
42 setCaption( tr( "Set File Permissions" ) ); 42 setCaption( tr( "Set File Permissions" ) );
43 43
44 TextLabel1 = new QLabel( this, "TextLabel1" ); 44 TextLabel1 = new QLabel( this, "TextLabel1" );
45 TextLabel1->setGeometry( QRect( 25, 5, 175, 20 ) ); 45 TextLabel1->setGeometry( QRect( 25, 5, 175, 20 ) );
@@ -245,30 +245,30 @@ void filePermissions::accept() {
245 QFileInfo fi(file); 245 QFileInfo fi(file);
246 struct passwd *pwd=0; 246 struct passwd *pwd=0;
247 struct group *grp=0; 247 struct group *grp=0;
248 pwd = getpwnam(OwnerLineEdit->text().latin1() ); 248 pwd = getpwnam(OwnerLineEdit->text().latin1() );
249 if(pwd == NULL) { 249 if(pwd == NULL) {
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;
253 } else { 253 } else {
254 grp = getgrnam(GroupLineEdit->text().latin1()); 254 grp = getgrnam(GroupLineEdit->text().latin1());
255 if(grp==NULL) { 255 if(grp==NULL) {
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;
259 } 259 }
260 if( chown( file.latin1(), pwd->pw_uid, grp->gr_gid) <0) { 260 if( chown( file.latin1(), pwd->pw_uid, grp->gr_gid) <0) {
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;
264 } 264 }
265 bool ok; 265 bool ok;
266 uint moder = modeStr.toUInt(&ok,8); 266 uint moder = modeStr.toUInt(&ok,8);
267 if( chmod( file.latin1(), moder) < 0) { 267 if( chmod( file.latin1(), moder) < 0) {
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;
271 } 271 }
272 } 272 }
273 close(); 273 close();
274} 274}