From c0b85a5721be04cec2f5e0d4a61200e43f2a9d92 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 2 Jun 2004 19:01:40 +0000 Subject: - Patch #4950 by Stefan (and Morbus): made watchdog messages translatable. --- modules/blogapi/blogapi.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/blogapi') 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')); } -- cgit v1.2.3