Package: psmisc
Version: 21.7cvs
Author: Guillem Jover <guillem@debian.org>
Status: applied
Description:
 Mark some strings as translatable.

Index: src/fuser.c
===================================================================
RCS file: /cvsroot/psmisc/psmisc/src/fuser.c,v
retrieving revision 1.30
diff -u -r1.30 fuser.c
--- src/fuser.c	8 Jul 2005 02:24:06 -0000	1.30
+++ src/fuser.c	9 Jul 2005 01:05:41 -0000
@@ -123,7 +123,8 @@
 		return;
 
 	if ( (topproc_dir = opendir("/proc")) == NULL) {
-		fprintf(stderr, "Cannot open /proc directory: %s\n", strerror(errno));
+		fprintf(stderr, _("Cannot open /proc directory: %s\n"),
+				strerror(errno));
 		exit(1);
 	}
 	my_pid = getpid();
@@ -290,7 +291,7 @@
 	struct stat st;
 
 	if (stat(this_name->filename, &st) != 0) {
-		fprintf(stderr, "Cannot stat mount point %s: %s\n", 
+		fprintf(stderr, _("Cannot stat mount point %s: %s\n"),
 				this_name->filename,
 				strerror(errno));
 		exit(1);
@@ -305,7 +306,7 @@
 	struct stat st;
 
 	if (stat(this_name->filename, &st) != 0) {
-		fprintf(stderr,"Cannot stat %s: %s\n", this_name->filename,
+		fprintf(stderr, _("Cannot stat %s: %s\n"), this_name->filename,
 				strerror(errno));
 		return -1;
 	}
@@ -322,7 +323,7 @@
 	dev_t match_device;
 
 	if (stat(this_name->filename, &st) != 0) {
-		fprintf(stderr,"Cannot stat %s: %s\n", this_name->filename,
+		fprintf(stderr, _("Cannot stat %s: %s\n"), this_name->filename,
 				strerror(errno));
 		return -1;
 	}
@@ -411,7 +412,7 @@
 	} else {
 		/* Resolve local port first */
 		if ( (errcode = getaddrinfo(NULL, lcl_port_str, &hints, &res)) != 0) {
-			fprintf(stderr, "Cannot resolve local port %s: %s\n",
+			fprintf(stderr, _("Cannot resolve local port %s: %s\n"),
 					lcl_port_str, gai_strerror(errcode));
 			return -1;
 		}
@@ -425,7 +426,8 @@
 				lcl_port = ((struct sockaddr_in6*)(res->ai_addr))->sin6_port;
 				break;
 			default:
-				fprintf(stderr, "Uknown local port AF %d\n", res->ai_family);
+				fprintf(stderr, _("Uknown local port AF %d\n"),
+						res->ai_family);
 				freeaddrinfo(res);
 				return -1;
 		}
@@ -474,7 +476,8 @@
 		return ;
 
 	if ( (fp = fopen(pathname, "r")) == NULL) {
-		fprintf(stderr, "Cannot open protocol file: %s", strerror(errno));
+		fprintf(stderr, _("Cannot open protocol file: %s"),
+				strerror(errno));
 		return;
 	}
 	while (fgets(line, BUFSIZ, fp) != NULL) {
@@ -522,7 +525,8 @@
 		return ;
 
 	if ( (fp = fopen(pathname, "r")) == NULL) {
-		fprintf(stderr, "Cannot open protocol file: %s", strerror(errno));
+		fprintf(stderr, _("Cannot open protocol file: %s"),
+				strerror(errno));
 		return ;
 	}
 	while (fgets(line, BUFSIZ, fp) != NULL) {
@@ -856,7 +860,8 @@
 		snprintf(filepath, MAX_PATHNAME, "/proc/%d/%s/%s",
 			pid, dirname, direntry->d_name);
 		if (stat(filepath, &st) != 0) {
-			fprintf(stderr, "Cannot stat file %s: %s\n",filepath, strerror(errno));
+			fprintf(stderr, _("Cannot stat file %s: %s\n"),
+					filepath, strerror(errno));
 		} else {
 			for (dev_tmp = dev_head ; dev_tmp != NULL ; dev_tmp = dev_tmp->next) {
 				if (st.st_dev == dev_tmp->device)
@@ -937,7 +942,7 @@
 	struct stat st;
 	
 	if ( (mntfp = setmntent("/etc/mtab","r")) == NULL) {
-		fprintf(stderr, "Cannot open /etc/mtab: %s\n",
+		fprintf(stderr, _("Cannot open /etc/mtab: %s\n"),
 				strerror(errno));
 		return;
 	}
@@ -1017,6 +1022,6 @@
 	for (pptr = proc_head ; pptr != NULL ; pptr = pptr->next ) {
 		if ( (opts & OPT_INTERACTIVE) && (ask(pptr->pid) == 0))
 			continue;
-		fprintf(stderr, "debug killing proc %d\n", pptr->pid);
+		fprintf(stderr, _("debug killing proc %d\n"), pptr->pid);
 	}
 }
Index: src/killall.c
===================================================================
RCS file: /cvsroot/psmisc/psmisc/src/killall.c,v
retrieving revision 1.29
diff -u -r1.29 killall.c
--- src/killall.c	23 Mar 2005 22:38:00 -0000	1.29
+++ src/killall.c	9 Jul 2005 01:05:41 -0000
@@ -559,7 +559,7 @@
         if (is_selinux_enabled()>0) 
            scontext=optarg;
         else 
-           fprintf(stderr, "Warning: -Z (--context) ignored. Requires an SELinux enabled kernel\n");
+           fprintf(stderr, _("Warning: -Z (--context) ignored. Requires an SELinux enabled kernel\n"));
         break;
 #endif /*WITH_SELINUX*/
       case '?':
Index: src/pstree.c
===================================================================
RCS file: /cvsroot/psmisc/psmisc/src/pstree.c,v
retrieving revision 1.24
diff -u -r1.24 pstree.c
--- src/pstree.c	2 May 2005 06:47:21 -0000	1.24
+++ src/pstree.c	9 Jul 2005 01:05:42 -0000
@@ -861,7 +861,7 @@
 	if (is_selinux_enabled()>0)
 	  show_scontext = 1;
 	else
-	  fprintf(stderr, "Warning: -Z ignored. Requires anx SELinux enabled kernel\n");
+	  fprintf(stderr, _("Warning: -Z ignored. Requires anx SELinux enabled kernel\n"));
         break;
 #endif /*WITH_SELINUX*/
       default:
