From 85a5e683e85e73494d184eaf30b19d7081cf2c9e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 3 Jan 2001 09:44:15 +0000 Subject: (decode_switches): Use dcgettext with LC_TIME, not plain gettext, to get the translations of time formats. --- src/ls.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ls.c b/src/ls.c index 67f75fa2b..3713e3c13 100644 --- 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); } } -- cgit v1.2.3-70-g09d2