| Summary: | sys-apps/coreutils-5.94 has outdated date format for LANG=cs | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Petr Lanc <drakoun> |
| Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Petr Lanc
2006-04-19 03:35:17 UTC
newer coreutils have gotten stricter about locale translations of ls output if your locale doesnt properly translate both time fields, it falls back to the long posix iso format in your case, your LINGUAS is set to "cs" so only the "cs" lang will have localized output for ls and the reason your cs isnt output correctly is because the cs.po file is outdated in coreutils and no one has updated it here are the relevant sections from the cs.po file you'll need to update ... you'll need to tell me what the correct values for 'msgstr' are ... i can probably guess, but it's better if you tell me :P #: src/ls.c:685 msgid "%b %e %Y" msgstr "%e. %b %Y %H.%M" #: src/ls.c:693 msgid "%b %e %H:%M" msgstr "%e. %b %Y %H.%M" I am not very familiar with programming and localization, but when I translate time format what I want to strftime format, I find that I want have msgstr line like original from ls.c: #: src/ls.c:685 msgid "%b %e %Y" msgstr "%b %e %Y" #: src/ls.c:693 msgid "%b %e %H:%M" msgstr "%b %e %H:%M" Only thing I want is translate abbreviated month name from english to czech, no other format changes. Format, that is actualy in po/cs.po I never saw on ls -l output. Or I talk stuff and nonsense? :-) sure you are ... the point is to make the output of "%b %e %Y" look "normal" to you ... in other words, how would you write this date in CS ? May 15 2006 for example, german users would write it: 15. Mai 2006 "May 15 2006" is default locale "Kvě 15 2006" shoud be in czech locale, that I have set by LANG. Only change is May -> Kvě, no other format changes. In older version of coreutilt it works exactly like I say. Only one change was localised short names of months from 'abmon': $ locale -ck LC_TIME LC_TIME abday="Ne;Po; "May 15 2006" is default locale "Kvě 15 2006" shoud be in czech locale, that I have set by LANG. Only change is May -> Kvě, no other format changes. In older version of coreutilt it works exactly like I say. Only one change was localised short names of months from 'abmon': $ locale -ck LC_TIME LC_TIME abday="Ne;Po;Út;St;Čt;Pá;So" day="Neděle;Pondělí;Úterý;Středa;Čtvrtek;Pátek;Sobota" abmon="led;úno;bře;dub;kvě;čen;čec;srp;zář;říj;lis;pro" mon="leden;únor;březen;duben;květen;červen;červenec;srpen;září;říjen;listopad;prosinec" am_pm=";" d_t_fmt="%a %e. %B %Y, %H:%M:%S %Z" d_fmt="%d.%m.%Y" t_fmt="%H:%M:%S" t_fmt_ampm="%I:%M:%S" era= era_year="" era_d_fmt="" alt_digits= era_d_t_fmt="" era_t_fmt="" time-era-num-entries=0 time-era-entries="N" week-ndays=7 week-1stday=19971130 week-1stweek=0 first_weekday=1 first_workday=1 cal_direction=1 timezone="" date_fmt="%a %b %e %H:%M:%S %Z %Y" time-codeset="ISO-8859-2" added a patch to current patchset, fix will be in next release Thank you for repair. |