author | llornkcor <llornkcor> | 2002-04-06 22:38:50 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-06 22:38:50 (UTC) |
commit | 08f0cefd22cb2122850b0786dafae15d0a5efebb (patch) (unidiff) | |
tree | 9b3b576e557b92e9cb60f97d6a20875968910f1b /core/apps/textedit/filePermissions.cpp | |
parent | 6c651fd3b48421fe2fb0f76968c29ef142efc162 (diff) | |
download | opie-08f0cefd22cb2122850b0786dafae15d0a5efebb.zip opie-08f0cefd22cb2122850b0786dafae15d0a5efebb.tar.gz opie-08f0cefd22cb2122850b0786dafae15d0a5efebb.tar.bz2 |
translation stuff
Diffstat (limited to 'core/apps/textedit/filePermissions.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/apps/textedit/filePermissions.cpp | 12 |
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 | |||
@@ -35,8 +35,8 @@ filePermissions::filePermissions( QWidget* parent, const char* name, bool modal | |||
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" ) ); |
@@ -248,25 +248,25 @@ void filePermissions::accept() { | |||
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 | } |