]> code.citadel.org Git - citadel.git/commitdiff
* userlist.c: i18n
authorArt Cancro <ajc@citadel.org>
Mon, 22 Aug 2005 20:27:26 +0000 (20:27 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 22 Aug 2005 20:27:26 +0000 (20:27 +0000)
* vcard.c: minor change to comments in code

webcit/ChangeLog
webcit/userlist.c
webcit/vcard.c

index 5994602bf748464745597bfee61c99bf0a52f677..0fb2f1afdadda9685e3b2119bb3c1a5eacaffb3a 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
 $Log$
+Revision 621.28  2005/08/22 20:27:26  ajc
+* userlist.c: i18n
+* vcard.c: minor change to comments in code
+
 Revision 621.27  2005/08/22 20:21:21  ajc
 * useredit.c: i18n
 
 Revision 621.27  2005/08/22 20:21:21  ajc
 * useredit.c: i18n
 
@@ -2889,4 +2893,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index 362e5a318d6a2b098daaca0cd358d9f941aace11..1836e03c57040a7202e6b89b92568b3831c36164 100644 (file)
@@ -17,8 +17,9 @@ struct namelist {
  */
 void userlist(void)
 {
  */
 void userlist(void)
 {
-       char buf[SIZ];
-       char fl[SIZ];
+       char buf[256];
+       char fl[256];
+       char title[256];
        struct tm tmbuf;
        time_t lc;
        struct namelist *bio = NULL;
        struct tm tmbuf;
        time_t lc;
        struct namelist *bio = NULL;
@@ -38,8 +39,9 @@ void userlist(void)
        output_headers(1, 1, 2, 0, 0, 0, 0);
        wprintf("<div id=\"banner\">\n"
                "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
        output_headers(1, 1, 2, 0, 0, 0, 0);
        wprintf("<div id=\"banner\">\n"
                "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
-               "<SPAN CLASS=\"titlebar\">User list for ");
-       escputs(serv_info.serv_humannode);
+               "<SPAN CLASS=\"titlebar\">");
+       snprintf(title, sizeof title, _("User list for %s"), serv_info.serv_humannode);
+       escputs(title);
        wprintf("</SPAN>"
                "</TD></TR></TABLE>\n"
                "</div>\n<div id=\"content\">\n"
        wprintf("</SPAN>"
                "</TD></TR></TABLE>\n"
                "</div>\n<div id=\"content\">\n"
@@ -54,8 +56,8 @@ void userlist(void)
 
        wprintf("<div id=\"fix_scrollbar_bug\">"
                "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
 
        wprintf("<div id=\"fix_scrollbar_bug\">"
                "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
-       wprintf("<TR><TH>User Name</TH><TH>Number</TH><TH>Access Level</TH>");
-       wprintf("<TH>Last Login</TH><TH>Total Logins</TH><TH>Total Posts</TH></TR>\n");
+       wprintf(_("<TR><TH>User Name</TH><TH>Number</TH><TH>Access Level</TH>"
+               "<TH>Last Login</TH><TH>Total Logins</TH><TH>Total Posts</TH></TR>"));
 
        while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
                extract_token(fl, buf, 0, '|', sizeof fl);
 
        while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
                extract_token(fl, buf, 0, '|', sizeof fl);
@@ -102,8 +104,8 @@ DONE:       wDumpContent(1);
  */
 void showuser(void)
 {
  */
 void showuser(void)
 {
-       char who[SIZ];
-       char buf[SIZ];
+       char who[256];
+       char buf[256];
        int have_pic;
 
        strcpy(who, bstr("who"));
        int have_pic;
 
        strcpy(who, bstr("who"));
@@ -112,7 +114,9 @@ void showuser(void)
        wprintf("<div id=\"banner\">\n"
                "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR>"
                "<TD><IMG SRC=\"/static/usermanag_48x.gif\"></TD>"
        wprintf("<div id=\"banner\">\n"
                "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR>"
                "<TD><IMG SRC=\"/static/usermanag_48x.gif\"></TD>"
-               "<td align=left><SPAN CLASS=\"titlebar\">User profile</SPAN>"
+               "<td align=left><SPAN CLASS=\"titlebar\">");
+       wprintf(_("User profile"));
+       wprintf("</SPAN>"
                "</TD></TR></TABLE>\n"
                "</div>\n<div id=\"content\">\n"
        );
                "</TD></TR></TABLE>\n"
                "</div>\n<div id=\"content\">\n"
        );
@@ -146,9 +150,9 @@ void showuser(void)
        urlescputs(who);
        wprintf("\">"
                "<IMG SRC=\"/static/citadelchat_24x.gif\" "
        urlescputs(who);
        wprintf("\">"
                "<IMG SRC=\"/static/citadelchat_24x.gif\" "
-               "ALIGN=MIDDLE BORDER=0>&nbsp;&nbsp;"
-               "Click here to send an instant message to ");
-       escputs(who);
+               "ALIGN=MIDDLE BORDER=0>&nbsp;&nbsp;");
+       snprintf(buf, sizeof buf, _("Click here to send an instant message to %s"), who);
+       escputs(buf);
        wprintf("</A>\n");
 
        wprintf("</td></tr></table></div>\n");
        wprintf("</A>\n");
 
        wprintf("</td></tr></table></div>\n");
index dbe995298c31a93d2141e43d5c025f1497d8026a..fd170bb6ed402c446cac56ce31d509d508fea4c6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
 /*
  * $Id$
  *
- * vCard data type implementation for Citadel/UX
+ * vCard data type implementation for the Citadel system.
  *
  * Copyright (C) 1999-2005 by Art Cancro
  * This code is freely redistributable under the terms of the GNU General
  *
  * Copyright (C) 1999-2005 by Art Cancro
  * This code is freely redistributable under the terms of the GNU General