From 15efa89eeb90b4cc270eb8aec1c03f522f8ce2e5 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 12 Nov 2010 11:37:40 -0500 Subject: [PATCH] Localized strings for blog view --- webcit/blogview_renderer.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/webcit/blogview_renderer.c b/webcit/blogview_renderer.c index 3cf584af9..643d9c5f4 100644 --- a/webcit/blogview_renderer.c +++ b/webcit/blogview_renderer.c @@ -54,14 +54,17 @@ void blogpost_render_and_destroy(struct blogpost *bp) { /* Show the number of comments */ wc_printf("top_level_id); urlescputs(ChrPtr(WC->CurRoom.name)); - wc_printf("#comments\">%d comments", bp->num_msgs - 1); + wc_printf("#comments\">"); + wc_printf(_("%d comments"), bp->num_msgs - 1); + wc_printf(""); } else if (bp->num_msgs < 2) { - wc_printf("dere r no comments here!
\n"); + wc_printf(_("%d comments"), 0); } else { wc_printf("\n"); - wc_printf("%d comments
\n", bp->num_msgs - 1); + wc_printf(_("%d comments"), bp->num_msgs - 1); + wc_printf("
\n"); wc_printf("
"); for (i=1; inum_msgs; ++i) { read_message(WC->WBuf, HKEY("view_message"), bp->msgs[i], NULL, &Mime); -- 2.30.2