Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KDE Libraries
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Unmaintained
KDE Libraries
Commits
5f33dfa8
Commit
5f33dfa8
authored
12 years ago
by
Lukáš Tinkl
Browse files
Options
Downloads
Patches
Plain Diff
remove extra punctuation
BUG: 294885
parent
4c7c03cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tier1/solid/solid/backends/udisks2/udisksdevice.cpp
+14
-14
14 additions, 14 deletions
tier1/solid/solid/backends/udisks2/udisksdevice.cpp
with
14 additions
and
14 deletions
tier1/solid/solid/backends/udisks2/udisksdevice.cpp
+
14
−
14
View file @
5f33dfa8
...
...
@@ -762,33 +762,33 @@ void Device::slotPropertiesChanged(const QString &ifaceName, const QVariantMap &
QString
Device
::
errorToString
(
const
QString
&
error
)
const
{
if
(
error
==
UD2_ERROR_UNAUTHORIZED
||
error
==
UD2_ERROR_NOT_AUTHORIZED
)
return
QObject
::
tr
(
"You are not authorized to perform this operation
.
"
);
return
QObject
::
tr
(
"You are not authorized to perform this operation"
);
else
if
(
error
==
UD2_ERROR_BUSY
)
return
QObject
::
tr
(
"The device is currently busy
.
"
);
return
QObject
::
tr
(
"The device is currently busy"
);
else
if
(
error
==
UD2_ERROR_FAILED
)
return
QObject
::
tr
(
"The requested operation has failed
.
"
);
return
QObject
::
tr
(
"The requested operation has failed"
);
else
if
(
error
==
UD2_ERROR_CANCELED
)
return
QObject
::
tr
(
"The requested operation has been canceled
.
"
);
return
QObject
::
tr
(
"The requested operation has been canceled"
);
else
if
(
error
==
UD2_ERROR_INVALID_OPTION
)
return
QObject
::
tr
(
"An invalid or malformed option has been given
.
"
);
return
QObject
::
tr
(
"An invalid or malformed option has been given"
);
else
if
(
error
==
UD2_ERROR_MISSING_DRIVER
)
return
QObject
::
tr
(
"The kernel driver for this filesystem type is not available
.
"
);
return
QObject
::
tr
(
"The kernel driver for this filesystem type is not available"
);
else
if
(
error
==
UD2_ERROR_ALREADY_MOUNTED
)
return
QObject
::
tr
(
"The device is already mounted
.
"
);
return
QObject
::
tr
(
"The device is already mounted"
);
else
if
(
error
==
UD2_ERROR_NOT_MOUNTED
)
return
QObject
::
tr
(
"The device is not mounted
.
"
);
return
QObject
::
tr
(
"The device is not mounted"
);
else
if
(
error
==
UD2_ERROR_MOUNTED_BY_OTHER_USER
)
return
QObject
::
tr
(
"The device is mounted by another user
.
"
);
return
QObject
::
tr
(
"The device is mounted by another user"
);
else
if
(
error
==
UD2_ERROR_ALREADY_UNMOUNTING
)
return
QObject
::
tr
(
"The device is already unmounting
.
"
);
return
QObject
::
tr
(
"The device is already unmounting"
);
else
if
(
error
==
UD2_ERROR_TIMED_OUT
)
return
QObject
::
tr
(
"The operation timed out
.
"
);
return
QObject
::
tr
(
"The operation timed out"
);
else
if
(
error
==
UD2_ERROR_WOULD_WAKEUP
)
return
QObject
::
tr
(
"The operation would wake up a disk that is in a deep-sleep state
.
"
);
return
QObject
::
tr
(
"The operation would wake up a disk that is in a deep-sleep state"
);
else
if
(
error
==
UD2_ERROR_ALREADY_CANCELLED
)
return
QObject
::
tr
(
"The operation has already been canceled
.
"
);
return
QObject
::
tr
(
"The operation has already been canceled"
);
else
return
QObject
::
tr
(
"An unspecified error has occurred
.
"
);
return
QObject
::
tr
(
"An unspecified error has occurred"
);
}
Solid
::
ErrorType
Device
::
errorToSolidError
(
const
QString
&
error
)
const
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment