]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Update translator documentation and i18n.
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Tue, 30 Aug 2011 09:43:27 +0000 (11:43 +0200)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Tue, 30 Aug 2011 09:43:27 +0000 (11:43 +0200)
classes/Memcached_DataObject.php

index cbbe4f6f7eeaf93c74d296ab1b0cf036b5836852..54c885e737e83454a4488ab573f44883e7d8eb18 100644 (file)
@@ -250,7 +250,8 @@ class Memcached_DataObject extends Safe_DataObject
     {
         $i = DB_DataObject::factory($cls);
         if (empty($i)) {
-            throw new Exception(_('Cannot instantiate a ' . $cls));
+            // TRANS: Exception thrown when a program code class (%s) cannot be instantiated.
+            throw new Exception(sprintf(_('Cannot instantiate class %s.'),$cls));
         }
         $types = $i->keyTypes();
         ksort($types);
@@ -306,7 +307,8 @@ class Memcached_DataObject extends Safe_DataObject
         if (count($toFetch) > 0) {
             $i = DB_DataObject::factory($cls);
             if (empty($i)) {
-                throw new Exception(_('Cannot instantiate class ' . $cls));
+                // TRANS: Exception thrown when a program code class (%s) cannot be instantiated.
+                throw new Exception(sprintf(_('Cannot instantiate class %s.'),$cls));
             }
             $i->whereAddIn($keyCol, $toFetch, $i->columnType($keyCol));
             if ($i->find()) {