hwclock: gettextize interface phrases
PATCH 1/1 hwclock: gettextize interface phrases
Hi,
When using the --debug option with hwclock, the phrase that denotes the interface being used isn't getting localized, because it isn't gettextized. Attached patch fixes this in a translator-friendly way:
making the announcements into whole sentences.
Regards,
Benno
Signature · 1 line
http://www.fastmail.fm - The professional email service
From cff0a5a06e3a4e4bcdb6e32a1534ab0bb93ca04e Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Sun, 26 Jan 2014 22:32:15 +0100
Subject: [PATCH] hwclock: internationalizing the message of the used interface
In addition, do it in a single sentence instead of in two fragments.
Signed-off-by Benno Schulenberg <[email protected]>
--- sys-utils/hwclock-cmos.c | 2 +- sys-utils/hwclock-kd.c | 2 +- sys-utils/hwclock-rtc.c | 2 +- sys-utils/hwclock.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
sys-utils/hwclock-cmos.c +1 -1
@@ -649,7 +649,7 @@ static int get_permissions_cmos(void) }static struct clock_ops cmos = { -"direct I/O instructions to ISA clock" , +N_ ("Using direct I/O instructions to ISA clock." ), get_permissions_cmos, read_hardware_clock_cmos, set_hardware_clock_cmos,
sys-utils/hwclock-kd.c +1 -1
@@ -143,7 +143,7 @@ static int get_permissions_kd(void) }static struct clock_ops kd = { -"KDGHWCLK interface to m68k clock" , +N_ ("Using the KDGHWCLK interface to m68k clock." ), get_permissions_kd, read_hardware_clock_kd, set_hardware_clock_kd,
sys-utils/hwclock-rtc.c +1 -1
@@ -397,7 +397,7 @@ static int get_permissions_rtc(void) }static struct clock_ops rtc = { -"/dev interface to clock" , +N_ ("Using the /dev interface to the clock." ), get_permissions_rtc, read_hardware_clock_rtc, set_hardware_clock_rtc,
sys-utils/hwclock.c +1 -1
@@ -1140,7 +1140,7 @@ static void determine_clock_access_method(const bool user_requests_ISA)if (debug) {if (ur) -printf (_ ("Using %s.\n" ), ur->interface_name); +puts (_ (ur->interface_name));else printf (_ ("No usable clock interface found.\n" )); }
Signature · 1 line
1.7.0.4
Quoted 5 lines · Benno Schulenberg
sys-utils/hwclock-cmos.c | 2 +- sys-utils/hwclock-kd.c | 2 +- sys-utils/hwclock-rtc.c | 2 +- sys-utils/hwclock.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com