]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: internationalizing the message of the used interface
authorBenno Schulenberg <bensberg@justemail.net>
Sun, 26 Jan 2014 21:32:15 +0000 (22:32 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 10 Feb 2014 17:41:55 +0000 (18:41 +0100)
In addition, do it in a single sentence instead of in two fragments.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
sys-utils/hwclock-cmos.c
sys-utils/hwclock-kd.c
sys-utils/hwclock-rtc.c
sys-utils/hwclock.c

index 58b3ea5dcdedcdfe42e09ade60ec037bbe5d48df..7ffbf95920d4ee469d867e5f44509b80b915f226 100644 (file)
@@ -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,
index 8e67009cb91065855bff363bf082675f666c9cff..3dac7072b02c305ff64a177800b1c4d94c769f59 100644 (file)
@@ -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,
index a22ce4c29ffb7f793737f530ce85cf78134e2c7f..78f42aa4f179ab3d7f2c08fee9cd21211f298ebc 100644 (file)
@@ -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,
index 5dd7919ec3b12c4151f2d3374593e923fa088ba1..30660d4a91ecb34888e828ec85c283725f6c9061 100644 (file)
@@ -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"));
        }