]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/util.php
bracket in the wrong place
[quix0rs-gnu-social.git] / lib / util.php
index c20075b305e2e0f1c5c18a0de0a648b19a88280f..f4245693fb8f7499dc22d5c952c3ee87068fe01a 100644 (file)
@@ -826,7 +826,7 @@ function common_date_string($dt) {
        } else if ($diff < 37 * 3600) {
                return _('about a day ago');
        } else if ($diff < 24 * 24 * 3600) {
-               return sprintf(_('about %d days ago', round($diff/(24*3600))));
+               return sprintf(_('about %d days ago'), round($diff/(24*3600)));
        } else if ($diff < 46 * 24 * 3600) {
                return _('about a month ago');
        } else if ($diff < 330 * 24 * 3600) {
@@ -892,7 +892,7 @@ function common_save_replies($notice) {
                if (!$id) {
                        $last_error = &PEAR::getStaticProperty('DB_DataObject','lastError');
                        common_log(LOG_ERROR, 'DB error inserting reply: ' . $last_error->message);
-                       common_server_error('DB error inserting reply: ' . $last_error->message);
+                       common_server_error(_('DB error inserting reply: %s', $last_error->message));
                        return;
                }
        }