]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(decode_switches): Use dcgettext with LC_TIME,
authorJim Meyering <jim@meyering.net>
Wed, 3 Jan 2001 09:44:15 +0000 (09:44 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 3 Jan 2001 09:44:15 +0000 (09:44 +0000)
not plain gettext, to get the translations of time formats.

src/ls.c

index 67f75fa2bf4daa228c9eabb0d835fc7807305c3c..3713e3c1340298c6065bf879b21eff0430d7df73 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -1360,11 +1360,12 @@ decode_switches (int argc, char **argv)
   if (format == long_format)
     {
       if (full_time)
-       long_time_format[0] = long_time_format[1] = _("%a %b %d %H:%M:%S %Y");
+       long_time_format[0] = long_time_format[1] =
+         dcgettext (NULL, "%a %b %d %H:%M:%S %Y", LC_TIME);
       else
        {
-         long_time_format[0] = _("%b %e  %Y");
-         long_time_format[1] = _("%b %e %H:%M");
+         long_time_format[0] = dcgettext (NULL, "%b %e  %Y", LC_TIME);
+         long_time_format[1] = dcgettext (NULL, "%b %e %H:%M", LC_TIME);
        }
     }