[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Sun Dec 9 08:15:02 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-12-09 14:14:57 UTC
Commited by: Federico Mennite <ite at techmonkeys.org>

Modified files:
     acconfig/acinclude.m4 src/chanprog.c

Log message:

* Fixed a typo in acconfig/acinclude.m4.
* src/chanprog.c gettextification.

---------------------- diff included ----------------------
Index: eggdrop1.7/acconfig/acinclude.m4
diff -u eggdrop1.7/acconfig/acinclude.m4:1.5 eggdrop1.7/acconfig/acinclude.m4:1.6
--- eggdrop1.7/acconfig/acinclude.m4:1.5	Sat Dec  8 13:48:45 2001
+++ eggdrop1.7/acconfig/acinclude.m4	Sun Dec  9 08:14:47 2001
@@ -1,7 +1,7 @@
 dnl acinclude.m4
 dnl   macros autoconf uses when building configure from configure.in
 dnl
-dnl $Id: acinclude.m4,v 1.5 2001/12/08 19:48:45 ite Exp $
+dnl $Id: acinclude.m4,v 1.6 2001/12/09 14:14:47 ite Exp $
 dnl
 
 
@@ -153,7 +153,7 @@
 dnl would be usefull on some weird *nix
 AC_DEFUN(EGG_DISABLE_CC_OPTIMIZATION, [dnl
   AC_ARG_ENABLE(cc-optimization,
-                AC_ARG_HELP([--disable-cc-optimization], [disable -O2 cflag]),  
+                AC_HELP_STRING([--disable-cc-optimization], [disable -O2 cflag]),  
     CFLAGS=`echo $CFLAGS | sed 's/\-O2//'`)
 ])dnl
 
Index: eggdrop1.7/src/chanprog.c
diff -u eggdrop1.7/src/chanprog.c:1.37 eggdrop1.7/src/chanprog.c:1.38
--- eggdrop1.7/src/chanprog.c:1.37	Tue Oct 30 22:02:51 2001
+++ eggdrop1.7/src/chanprog.c	Sun Dec  9 08:14:47 2001
@@ -4,7 +4,7 @@
  *   telling the current programmed settings
  *   initializing a lot of stuff and loading the tcl scripts
  *
- * $Id: chanprog.c,v 1.37 2001/10/31 04:02:51 tothwolf Exp $
+ * $Id: chanprog.c,v 1.38 2001/12/09 14:14:47 ite Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -218,7 +218,7 @@
   if (!uname(&un) < 0) {
 #endif
     vers_t = " ";
-    uni_t = "*unknown*";
+    uni_t = _("*unknown*");
 #ifdef HAVE_UNAME
   } else {
     vers_t = un.release;
@@ -227,16 +227,18 @@
 #endif
 
   i = count_users(userlist);
-  dprintf(idx, "I am %s, running %s:  %d user%s\n",
+  /* FIXME PLURAL: handle it properly */
+  dprintf(idx, _("I am %1$s, running %2$s:  %3$d user%4$s\n"),
 	  botnetnick, ver, i, i == 1 ? "" : "s");
-  dprintf(idx, "Running on %s %s\n", uni_t, vers_t);
+  dprintf(idx, _("Running on %1$s %2$s\n"), uni_t, vers_t);
   if (admin[0])
-    dprintf(idx, "Admin: %s\n", admin);
+    dprintf(idx, _("Admin: %s\n"), admin);
   now2 = now - online_since;
   s[0] = 0;
   if (now2 > 86400) {
     /* days */
-    sprintf(s, "%d day", (int) (now2 / 86400));
+    /* FIXME PLURAL: handle it properly */
+    sprintf(s, _("%d day"), (int) (now2 / 86400));
     if ((int) (now2 / 86400) >= 2)
       strcat(s, "s");
     strcat(s, ", ");
@@ -279,17 +281,17 @@
   /* info library */
   dprintf(idx, "%s %s\n", _("Tcl library:"),
 	  ((interp) && (Tcl_Eval(interp, "info library") == TCL_OK)) ?
-	  interp->result : "*unknown*");
+	  interp->result : _("*unknown*"));
 
   /* info tclversion/patchlevel */
   dprintf(idx, "%s %s (%s %s)\n", _("Tcl version:"),
 	  ((interp) && (Tcl_Eval(interp, "info patchlevel") == TCL_OK)) ?
 	  interp->result : (Tcl_Eval(interp, "info tclversion") == TCL_OK) ?
-	  interp->result : "*unknown*", _("header version"),
-	  TCL_PATCH_LEVEL ? TCL_PATCH_LEVEL : "*unknown*");
+	  interp->result : _("*unknown*"), _("header version"),
+	  TCL_PATCH_LEVEL ? TCL_PATCH_LEVEL : _("*unknown*"));
 
 #if HAVE_TCL_THREADS
-  dprintf(idx, "Tcl is threaded\n");
+  dprintf(idx, _("Tcl is threaded\n"));
 #endif  
 	  
 }
@@ -301,24 +303,25 @@
   char s[1024];
   struct flag_record fr = {FR_GLOBAL, 0, 0, 0, 0, 0};
 
-  dprintf(idx, "Botnet Nickname: %s\n", botnetnick);
+  dprintf(idx, _("Botnet Nickname: %s\n"), botnetnick);
   if (firewall[0])
-    dprintf(idx, "Firewall: %s, port %d\n", firewall, firewallport);
-  dprintf(idx, "Userfile: %s   Motd: %s\n", userfile, motdfile);
-  dprintf(idx, "Directories:\n");
-  dprintf(idx, "  Help    : %s\n", helpdir);
-  dprintf(idx, "  Temp    : %s\n", tempdir);
+    dprintf(idx, _("Firewall: %1$s, port %2$d\n"), firewall, firewallport);
+  dprintf(idx, _("Userfile: %1$s   Motd: %2$s\n"), userfile, motdfile);
+  dprintf(idx, _("Directories:\n"));
+  dprintf(idx, _("  Help    : %s\n"), helpdir);
+  dprintf(idx, _("  Temp    : %s\n"), tempdir);
 #ifndef STATIC
-  dprintf(idx, "  Modules : %s\n", moddir);
+  dprintf(idx, _("  Modules : %s\n"), moddir);
 #endif
   fr.global = default_flags;
 
   build_flags(s, &fr, NULL);
   dprintf(idx, "%s [%s], %s: %s\n", _("New users get flags"), s,
 	  _("notify"), notify_new);
+  /* FIXME PLURAL: handle it properly */
   if (owner[0])
     dprintf(idx, "%s: %s\n", _("Permanent owner(s)"), owner);
-  dprintf(idx, "Ignores last %d mins\n", ignore_time);
+  dprintf(idx, _("Ignores last %d mins\n"), ignore_time);
 }
 
 void reaffirm_owners()
@@ -390,7 +393,7 @@
     strncpyz(botnetnick, origbotname, HANDLEN + 1);
   }
   if (!botnetnick[0])
-    fatal("I don't have a botnet nick!!\n", 0);
+    fatal(_("I don't have a botnet nick!!\n"), 0);
   /* Test tempdir: it's vital */
   {
     FILE *f;
----------------------- End of diff -----------------------



More information about the Changes mailing list