diff options
author | Jim Meyering <jim@meyering.net> | 2001-01-03 09:44:15 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-01-03 09:44:15 +0000 |
commit | 85a5e683e85e73494d184eaf30b19d7081cf2c9e (patch) | |
tree | 0fb5c0a706df043ad357e5da7c82b8a5dcee17c5 /src | |
parent | e646037f4ab3bbd95be1878ad7a60564cf4ccda6 (diff) | |
download | coreutils-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.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); } } |