-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: util-linux
Version: 2.14~rc2-0
Severity: minor
Tags: patch l10n


While translating util-linux, i've found several strings without gettext
calls, in the hwclock module.

Patch included. Forwarded to upstream.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjZZWAACgkQQ1WdpTsIkf6yxACeN8ZpcAYW+JL/KTGQJRozcrxz
MLEAn1Mq5Z4O7joDB4M7mA1VlhB6+Vlf
=LSiK
-----END PGP SIGNATURE-----

diff --git a/hwclock/cmos.c b/hwclock/cmos.c
index ca3ca61..c45a504 100644
--- a/hwclock/cmos.c
+++ b/hwclock/cmos.c
@@ -291,10 +291,10 @@ unsigned long cmos_read(unsigned long reg)
     unsigned char v = reg | 0x80;
     lseek(dev_port_fd, clock_ctl_addr, 0);
     if (write(dev_port_fd, &v, 1) == -1 && debug)
-      printf("cmos_read(): write to control address %X failed: %s\n", clock_ctl_addr, strerror(errno));
+      printf(_("cmos_read(): write to control address %X failed: %s\n"), clock_ctl_addr, strerror(errno));
     lseek(dev_port_fd, clock_data_addr, 0);
     if (read(dev_port_fd, &v, 1) == -1 && debug)
-      printf("cmos_read(): read data address %X failed: %s\n", clock_data_addr, strerror(errno));
+      printf(_("cmos_read(): read data address %X failed: %s\n"), clock_data_addr, strerror(errno));
     return v;
   } else {
     /* We only want to read CMOS data, but unfortunately
@@ -325,11 +325,11 @@ unsigned long cmos_write(unsigned long reg, unsigned long val)
     unsigned char v = reg | 0x80;
     lseek(dev_port_fd, clock_ctl_addr, 0);
     if (write(dev_port_fd, &v, 1) == -1 && debug)
-      printf("cmos_write(): write to control address %X failed: %s\n", clock_ctl_addr, strerror(errno));
+      printf(_("cmos_write(): write to control address %X failed: %s\n"), clock_ctl_addr, strerror(errno));
     v = (val & 0xff);
     lseek(dev_port_fd, clock_data_addr, 0);
     if (write(dev_port_fd, &v, 1) == -1 && debug)
-      printf("cmos_write(): write to data address %X failed: %s\n", clock_data_addr, strerror(errno));
+      printf(_("cmos_write(): write to data address %X failed: %s\n"), clock_data_addr, strerror(errno));
   } else {
     outb (reg, clock_ctl_addr);
     outb (val, clock_data_addr);
diff --git a/hwclock/hwclock.c b/hwclock/hwclock.c
index 48b47ad..6218c7a 100644
--- a/hwclock/hwclock.c
+++ b/hwclock/hwclock.c
@@ -922,18 +922,18 @@ save_adjtime(const struct adjtime adjtime, const bool testing) {
 
       adjfile = fopen(adj_file_name, "w");
       if (adjfile == NULL) {
-        outsyserr("Could not open file with the clock adjustment parameters "
-               "in it (%s) for writing", adj_file_name);
+        outsyserr(_("Could not open file with the clock adjustment parameters "
+               "in it (%s) for writing"), adj_file_name);
 	err = 1;
       } else {
         if (fputs(newfile, adjfile) < 0) {
-	  outsyserr("Could not update file with the clock adjustment "
-		    "parameters (%s) in it", adj_file_name);
+	  outsyserr(_("Could not update file with the clock adjustment "
+		    "parameters (%s) in it"), adj_file_name);
 	  err = 1;
         }
         if (fclose(adjfile) < 0) {
-          outsyserr("Could not update file with the clock adjustment "
-		    "parameters (%s) in it", adj_file_name);
+          outsyserr(_("Could not update file with the clock adjustment "
+		    "parameters (%s) in it"), adj_file_name);
 	  err = 1;
         }
       }
@@ -987,8 +987,8 @@ do_adjustment(struct adjtime *adjtime_p,
     adjtime_p->dirty = TRUE;
   } else if (adjtime_p->last_adj_time == 0) {
     if (debug)
-      printf("Not setting clock because last adjustment time is zero, "
-	     "so history is bad.");
+      printf(_("Not setting clock because last adjustment time is zero, "
+	     "so history is bad."));
   } else {
     int adjustment;
     /* Number of seconds we must insert in the Hardware Clock */
@@ -1592,7 +1592,7 @@ hwaudit_exit(int status)
 {
 	if (hwaudit_on) {
 		audit_log_user_message(hwaudit_fd, AUDIT_USYS_CONFIG,
-			"changing system time", NULL, NULL, NULL, status ? 0 : 1);
+			_("changing system time"), NULL, NULL, NULL, status ? 0 : 1);
 		close(hwaudit_fd);
 	}
 	exit(status);

Reply via email to