Localized strings for blog view
authorArt Cancro <ajc@citadel.org>
Fri, 12 Nov 2010 16:37:40 +0000 (11:37 -0500)
committerArt Cancro <ajc@citadel.org>
Fri, 12 Nov 2010 16:37:40 +0000 (11:37 -0500)
webcit/blogview_renderer.c

index 3cf584af9623b9a92aead20e27081b37711a1e86..643d9c5f4db033f1e9cd07ddf5c26f001212c046 100644 (file)
@@ -54,14 +54,17 @@ void blogpost_render_and_destroy(struct blogpost *bp) {
                        /* Show the number of comments */
                        wc_printf("<a href=\"readfwd?p=%d?gotofirst=", bp->top_level_id);
                        urlescputs(ChrPtr(WC->CurRoom.name));
-                       wc_printf("#comments\">%d comments</a>", bp->num_msgs - 1);
+                       wc_printf("#comments\">");
+                       wc_printf(_("%d comments"), bp->num_msgs - 1);
+                       wc_printf("</a>");
                }
                else if (bp->num_msgs < 2) {
-                       wc_printf("dere r no comments here!<br>\n");
+                       wc_printf(_("%d comments"), 0);
                }
                else {
                        wc_printf("<a name=\"comments\"></a>\n");
-                       wc_printf("%d comments<br>\n", bp->num_msgs - 1);
+                       wc_printf(_("%d comments"), bp->num_msgs - 1);
+                       wc_printf("<br>\n");
                        wc_printf("<blockquote>");
                        for (i=1; i<bp->num_msgs; ++i) {
                                read_message(WC->WBuf, HKEY("view_message"), bp->msgs[i], NULL, &Mime);