[Pkg-owncloud-commits] [qtkeychain] 88/115: Try to make OSX error strings more verbose.

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Mar 15 19:25:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository qtkeychain.

commit 2b5d019872bf90ffbac5ccfc0f34def58c7ed77b
Author: Teo Mrnjavac <teo at kde.org>
Date:   Thu Nov 14 17:40:15 2013 +0100

    Try to make OSX error strings more verbose.
---
 keychain_mac.cpp              |  5 +++--
 translations/qtkeychain_de.ts | 40 +++++++++++++++++++++++++---------------
 2 files changed, 28 insertions(+), 17 deletions(-)

diff --git a/keychain_mac.cpp b/keychain_mac.cpp
index 9753f7b..99e1cc9 100644
--- a/keychain_mac.cpp
+++ b/keychain_mac.cpp
@@ -28,8 +28,9 @@ static QString strForStatus( OSStatus os ) {
     const Releaser<CFStringRef> str( SecCopyErrorMessageString( os, 0 ) );
     const char * const buf = CFStringGetCStringPtr( str.value,  kCFStringEncodingUTF8 );
     if ( !buf )
-        return QString();
-    return QString::fromUtf8( buf, strlen( buf ) );
+        return QObject::tr( "OSX Keychain OSStatus code %1" ).arg( os );
+    return QObject::tr( "OSX Keychain OSStatus code %1: \"%2\"" ).arg( os )
+            .arg( QString::fromUtf8( buf, strlen( buf ) ) );
 }
 
 static OSStatus readPw( QByteArray* pw,
diff --git a/translations/qtkeychain_de.ts b/translations/qtkeychain_de.ts
index 5f7294d..c1ff798 100644
--- a/translations/qtkeychain_de.ts
+++ b/translations/qtkeychain_de.ts
@@ -14,47 +14,47 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../keychain_dbus.cpp" line="264"/>
+        <location filename="../keychain_dbus.cpp" line="267"/>
         <source>No keychain service available</source>
         <translation>Kein Schlüsselbund-Dienst verfügbar</translation>
     </message>
     <message>
-        <location filename="../keychain_dbus.cpp" line="266"/>
+        <location filename="../keychain_dbus.cpp" line="269"/>
         <source>Could not open wallet: %1; %2</source>
         <translation>Konnte Brieftasche nicht öffnen: %1; %2</translation>
     </message>
     <message>
-        <location filename="../keychain_dbus.cpp" line="313"/>
+        <location filename="../keychain_dbus.cpp" line="315"/>
         <source>Access to keychain denied</source>
         <translation>Zugriff auf Schlüsselbund verweigert</translation>
     </message>
     <message>
-        <location filename="../keychain_dbus.cpp" line="334"/>
+        <location filename="../keychain_dbus.cpp" line="336"/>
         <source>Could not determine data type: %1; %2</source>
         <translation>Datentyp kann nicht ermittelt werden: %1: %2</translation>
     </message>
     <message>
-        <location filename="../keychain_dbus.cpp" line="352"/>
+        <location filename="../keychain_dbus.cpp" line="354"/>
         <source>Unsupported entry type 'Map'</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../keychain_dbus.cpp" line="355"/>
+        <location filename="../keychain_dbus.cpp" line="357"/>
         <source>Unknown kwallet entry type '%1'</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../keychain_dbus.cpp" line="370"/>
+        <location filename="../keychain_dbus.cpp" line="372"/>
         <source>Could not read password: %1; %2</source>
         <translation>Passwort konnte nicht ausgelesen werden: %1; %2</translation>
     </message>
     <message>
-        <location filename="../keychain_mac.cpp" line="74"/>
+        <location filename="../keychain_mac.cpp" line="75"/>
         <source>Password not found</source>
         <translation>Passwort nicht gefunden</translation>
     </message>
     <message>
-        <location filename="../keychain_dbus.cpp" line="343"/>
+        <location filename="../keychain_dbus.cpp" line="345"/>
         <location filename="../keychain_win.cpp" line="27"/>
         <source>Entry not found</source>
         <translation>Eintrag nicht gefunden</translation>
@@ -68,24 +68,24 @@
 <context>
     <name>QKeychain::WritePasswordJobPrivate</name>
     <message>
-        <location filename="../keychain_dbus.cpp" line="391"/>
-        <location filename="../keychain_dbus.cpp" line="399"/>
+        <location filename="../keychain_dbus.cpp" line="393"/>
+        <location filename="../keychain_dbus.cpp" line="401"/>
         <source>Unknown error</source>
         <translation>Unbekannter Fehler</translation>
     </message>
     <message>
-        <location filename="../keychain_dbus.cpp" line="414"/>
+        <location filename="../keychain_dbus.cpp" line="416"/>
         <source>D-Bus is not running</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../keychain_dbus.cpp" line="426"/>
-        <location filename="../keychain_dbus.cpp" line="502"/>
+        <location filename="../keychain_dbus.cpp" line="457"/>
+        <location filename="../keychain_dbus.cpp" line="533"/>
         <source>Could not open wallet: %1; %2</source>
         <translation>Konnte Brieftasche nicht öffnen: %1; %2</translation>
     </message>
     <message>
-        <location filename="../keychain_dbus.cpp" line="480"/>
+        <location filename="../keychain_dbus.cpp" line="511"/>
         <source>Access to keychain denied</source>
         <translation>Zugriff auf Schlüsselbund verweigert</translation>
     </message>
@@ -167,5 +167,15 @@
         <source>Unknown error</source>
         <translation>Unbekannter Fehler</translation>
     </message>
+    <message>
+        <location filename="../keychain_mac.cpp" line="31"/>
+        <source>OSX Keychain OSStatus code %1</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../keychain_mac.cpp" line="32"/>
+        <source>OSX Keychain OSStatus code %1: "%2"</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 </TS>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/qtkeychain.git



More information about the Pkg-owncloud-commits mailing list