summaryrefslogtreecommitdiff
path: root/modules/blogapi
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-06-02 19:01:40 +0000
committerDries Buytaert <dries@buytaert.net>2004-06-02 19:01:40 +0000
commitc0b85a5721be04cec2f5e0d4a61200e43f2a9d92 (patch)
treed2ae2f9b01fa39fc0ad26f4821e033865dc51dd9 /modules/blogapi
parentdfef5164b49fc79af58ab6e7a595add1b6dc7592 (diff)
downloadbrdo-c0b85a5721be04cec2f5e0d4a61200e43f2a9d92.tar.gz
brdo-c0b85a5721be04cec2f5e0d4a61200e43f2a9d92.tar.bz2
- Patch #4950 by Stefan (and Morbus): made watchdog messages translatable.
Diffstat (limited to 'modules/blogapi')
-rw-r--r--modules/blogapi/blogapi.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module
index 83f2c9494..8d5fa3089 100644
--- a/modules/blogapi/blogapi.module
+++ b/modules/blogapi/blogapi.module
@@ -142,7 +142,7 @@ function blogapi_new_post($req_params) {
$nid = node_save($node);
if ($nid) {
- watchdog('special', "$node->type: added '$node->title' using blog API", l(t('view post'), "node/view/$nid"));
+ watchdog('special', t('%node-type: added "%node-title" using blog API', array('%node-type' => t("$node->type"), '%node-title' => $node->title)), l(t('view post'), "node/view/$nid"));
return new xmlrpcresp(new xmlrpcval($nid, 'string'));
}
@@ -202,7 +202,7 @@ function blogapi_edit_post($req_params) {
}
$nid = node_save($node);
if ($nid) {
- watchdog('special', "$node->type: updated '$node->title' using blog API", l(t('view post'), "node/view/$nid"));
+ watchdog('special', t('%node-type: updated "%node-title" using blog API', array('%node-type' => t("$node->type"), '%node-title' => $node->title)), l(t('view post'), "node/view/$nid"));
return new xmlrpcresp(new xmlrpcval(true, 'boolean'));
}