From 53790308bbebda7fbd4d7249abf33e3972a5dfc0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 30 Aug 2011 16:38:09 +0000 Subject: Enhance kdebase media manager error messages git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1250351 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kioslave/media/mediamanager/halbackend.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kioslave/media/mediamanager') diff --git a/kioslave/media/mediamanager/halbackend.cpp b/kioslave/media/mediamanager/halbackend.cpp index 74f123c93..f4250f1ba 100644 --- a/kioslave/media/mediamanager/halbackend.cpp +++ b/kioslave/media/mediamanager/halbackend.cpp @@ -1226,7 +1226,7 @@ static TQString mount_priv(const char *udi, const char *mount_point, const char if ( !strcmp(error.name, "org.freedesktop.Hal.Device.Volume.UnknownFilesystemType")) qerror = i18n("Invalid filesystem type"); else if ( !strcmp(error.name, "org.freedesktop.Hal.Device.Volume.PermissionDenied")) - qerror = i18n("Permissions denied"); + qerror = i18n("Permissions denied

Please ensure that:
1. You have permission to access this device.
2. This device node is not listed in /etc/fstab.

"); else if ( !strcmp(error.name, "org.freedesktop.Hal.Device.PermissionDeniedByPolicy")) qerror = privilegedMount(udi, mount_point, poptions, noptions); else if ( !strcmp(error.name, "org.freedesktop.Hal.Device.Volume.AlreadyMounted")) @@ -1410,7 +1410,7 @@ TQString HALBackend::mount(const Medium *medium) return (data.error) ? data.errorMessage : TQString::null; } else if (medium->id().startsWith("/org/kde/") ) - return i18n("Permissions denied"); + return i18n("Permission denied"); TQStringList soptions; @@ -1643,7 +1643,7 @@ TQString HALBackend::unmount(const TQString &_udi) thisunmounthasfailed = 2; } else if (!strcmp(error.name, "org.freedesktop.Hal.Device.Volume.NotMounted")) { // this is faking. The error is that the device wasn't mounted by hal (but by the system) - reason = i18n("Permissions denied"); + reason = i18n("Permission denied

Please ensure that:
1. You have permission to access this device.
2. This device was originally mounted using TDE.

"); } else { reason = error.message; } -- cgit v1.2.1