[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Sun Dec 9 19:36:02 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-12-10 01:35:24 UTC
Commited by: Federico Mennite <ite at techmonkeys.org>

Modified files:
     src/botcmd.c src/dcc.c

Log message:

More gettextification

---------------------- diff included ----------------------
Index: eggdrop1.7/src/botcmd.c
diff -u eggdrop1.7/src/botcmd.c:1.25 eggdrop1.7/src/botcmd.c:1.26
--- eggdrop1.7/src/botcmd.c:1.25	Thu Oct 18 20:55:04 2001
+++ eggdrop1.7/src/botcmd.c	Sun Dec  9 19:35:14 2001
@@ -3,7 +3,7 @@
  *   commands that comes across the botnet
  *   userfile transfer and update commands from sharebots
  *
- * $Id: botcmd.c,v 1.25 2001/10/19 01:55:04 tothwolf Exp $
+ * $Id: botcmd.c,v 1.26 2001/12/10 01:35:14 ite Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -263,11 +263,11 @@
 	  break;
 	case NOTE_FWD:
 	  botnet_send_priv(idx, botnetnick, from, NULL,
-			   "%s %s", "Not online; note forwarded to:", to);
+			   "%s %s", _("Not online; note forwarded to:"), to);
 	  break;
 	case NOTE_REJECT:
 	  botnet_send_priv(idx, botnetnick, from, NULL,
-			   "%s %s", to, "rejected your note.");
+			   "%s %s", to, _("rejected your note."));
           break;
 	case NOTE_TCL:
 	  break;		/* Do nothing */
@@ -632,7 +632,7 @@
   next = newsplit(&par);
   s[0] = 0;
   if (!next[0]) {
-    putlog(LOG_BOTS, "*", "Invalid eggnet protocol from %s (zapfing)",
+    putlog(LOG_BOTS, "*", _("Invalid eggnet protocol from %s (zapfing)"),
 	   dcc[idx].nick);
     simple_sprintf(s, "%s %s (%s)", _("Disconnected"), dcc[idx].nick,
 		   _("invalid bot"));
@@ -713,8 +713,10 @@
   bots = bots_in_subtree(findbot(dcc[idx].nick));
   users = users_in_subtree(findbot(dcc[idx].nick));
   putlog(LOG_BOTS, "*", "%s", _("Older bot detected (unsupported)"));
-  simple_sprintf(s, "%s %s (%s) (lost %d bot%s and %d user%s",
-  		 _("Disconnected"), dcc[idx].nick, _("outdated"),
+  /* FIXME PLURAL: handle it properly */
+  simple_sprintf(s,
+		 _("Disconnected %s (outdated) (lost %d bot%s and %d user%s"),
+  		 dcc[idx].nick,
 		 bots, (bots != 1) ? "s" : "", users,
 		 (users != 1) ? "s" : "");
   chatout("*** %s\n", s);
Index: eggdrop1.7/src/dcc.c
diff -u eggdrop1.7/src/dcc.c:1.63 eggdrop1.7/src/dcc.c:1.64
--- eggdrop1.7/src/dcc.c:1.63	Wed Oct 24 05:08:03 2001
+++ eggdrop1.7/src/dcc.c	Sun Dec  9 19:35:14 2001
@@ -4,7 +4,7 @@
  *   disconnect on a dcc socket
  *   ...and that's it!  (but it's a LOT)
  *
- * $Id: dcc.c,v 1.63 2001/10/24 10:08:03 stdarg Exp $
+ * $Id: dcc.c,v 1.64 2001/12/10 01:35:14 ite Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -323,7 +323,7 @@
   for (i = 0; i < 16; i++)
     sprintf(digest_string + (i*2), "%.2x", digest[i]);
   dprintf(idx, "digest %s\n", digest_string);
-  putlog(LOG_BOTS, "*", "Received challenge from %s... sending response ...",
+  putlog(LOG_BOTS, "*", _("Received challenge from %s... sending response ..."),
 	 dcc[idx].nick);
 }
 
@@ -536,7 +536,7 @@
 
   if (!strcmp(digest_string, remote_digest))
     return 1;
-  putlog(LOG_BOTS, "*", "Response (password hash) from %s incorrect",
+  putlog(LOG_BOTS, "*", _("Response (password hash) from %s incorrect"),
 	 dcc[idx].nick);
   return 0;
 }
@@ -1101,7 +1101,7 @@
        break;
     }
   if (dcc_total == idx) {
-    putlog(LOG_BOTS, "*", "Lost listening socket while resolving %s",
+    putlog(LOG_BOTS, "*", _("Lost listening socket while resolving %s"),
 	   dcc[i].host);
     killsock(dcc[i].sock);
     lostdcc(i);
@@ -1421,7 +1421,7 @@
      * authentication will not be correct - you've been warned ;)
      * <Cybah>
      */
-    putlog(LOG_BOTS, "*", "Challenging %s...", dcc[idx].nick);
+    putlog(LOG_BOTS, "*", _("Challenging %s..."), dcc[idx].nick);
     dprintf(idx, "passreq <%x%x@%s>\n", getpid(), dcc[idx].timeval, botnetnick);
   } else {
     /* NOTE: The MD5 digest used above to prevent cleartext passwords being
@@ -1525,15 +1525,15 @@
     check_dcc_attrs(dcc[idx].user, USER_PARTY | default_flags);
     dcc[idx].type = &DCC_TELNET_PW;
     if (make_userfile) {
-      dprintf(idx, "\nYOU ARE THE MASTER/OWNER ON THIS BOT NOW\n");
+      dprintf(idx, _("\nYOU ARE THE MASTER/OWNER ON THIS BOT NOW\n"));
       dprintf(idx, _("From now on, you dont need to use the -m option to start the bot.\nEnjoy !!"));
       putlog(LOG_MISC, "*", _("Bot installation complete, first master is %s"), buf);
       make_userfile = 0;
       write_userfile(-1);
-      add_note(buf, botnetnick, "Welcome to eggdrop! :)", -1, 0);
+      add_note(buf, botnetnick, _("Welcome to eggdrop! :)"), -1, 0);
     }
-    dprintf(idx, "\nOkay, now choose and enter a password:\n");
-    dprintf(idx, "(Only the first 15 letters are significant.)\n");
+    dprintf(idx, _("\nOkay, now choose and enter a password:\n"));
+    dprintf(idx, _("(Only the first 15 letters are significant.)\n"));
   }
 }
 
----------------------- End of diff -----------------------



More information about the Changes mailing list