]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
textual: tag a translator comment and put it in proper place
authorBenno Schulenberg <bensberg@justemail.net>
Thu, 3 Oct 2013 21:03:28 +0000 (23:03 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Oct 2013 13:38:39 +0000 (15:38 +0200)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
misc-utils/cal.c

index d31b51d0bf1213121ddc07dfb3782c880ad8200b..76d62521b55510ef3d5e56d3c153841ea9b337ce 100644 (file)
@@ -456,12 +456,6 @@ static int do_monthly(int day, int month, long year,
 
        day_array(day, month, year, days);
 
-       /*
-        * %s is the month name, %d the year number.
-        * you can change the order and/or add something here; eg for
-        * Basque the translation should be: "%2$dko %1$s", and
-        * the Vietnamese should be "%s na(m %d", etc.
-        */
        if (header_hint < 0)
                header_hint = two_header_lines(month, year);
        if (header_hint) {
@@ -472,6 +466,10 @@ static int do_monthly(int day, int month, long year,
                center_str(lineout, out->s[pos], ARRAY_SIZE(out->s[pos]), width);
                pos++;
        } else {
+               /* TRANSLATORS: %s is the month name, %ld the year number.
+                * You can change the order and/or add something here;
+                * e.g. for Basque the translation should be "%2$ldko %1$s",
+                * and the Vietnamese should be "%s năm %d", and so on. */
                snprintf(lineout, sizeof(lineout), _("%s %ld"),
                        full_month[month - 1], year);
                center_str(lineout, out->s[pos], ARRAY_SIZE(out->s[pos]), width);