summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-01-03 09:44:15 +0000
committerJim Meyering <jim@meyering.net>2001-01-03 09:44:15 +0000
commit85a5e683e85e73494d184eaf30b19d7081cf2c9e (patch)
tree0fb5c0a706df043ad357e5da7c82b8a5dcee17c5 /src
parente646037f4ab3bbd95be1878ad7a60564cf4ccda6 (diff)
downloadcoreutils-85a5e683e85e73494d184eaf30b19d7081cf2c9e.tar.xz
(decode_switches): Use dcgettext with LC_TIME,
not plain gettext, to get the translations of time formats.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c7
1 files changed, 4 insertions, 3 deletions
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);
}
}