Opened 14 years ago
Closed 14 years ago
#15374 closed (invalid)
Polish dates being wrongly shortened.
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Internationalization | Version: | 1.3-beta |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In newer versions of django month names are being pretty shortened.
'January' is 'Jan.'
while 'June' stays 'June'.
Polish names are being also shortened, but char counting is still derived from english name length.
'Styczen' is 'Sty.' which is ok, but
'Luty' is 'Lut.' which should not be shortened.
Full table below
- Styczeń/January
- Luty/February
- Marzec/March
- Kwiecień/April
- Maj/May
- Czerwiec/June
- Lipiec/July
- Sierpień/August
- Wrzesień/September
- Październik/October
- Listopad/November
- Grudzień/December
Change History (3)
comment:1 by , 14 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
follow-up: 3 comment:2 by , 14 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
The problem reported wasnt about translated strings, but more about the way django admin treats them.
The names are being shortened taking into account english length of the respective month name, not the translated one.
In english and polish both names are long (January = Styczeń) but the second month of the year has short name in Polish (only four characters) so it should not be shortened. But it is still shortened. I belive this happens due to english 'February' is long.
This also happens in the opposite direction. The fourth month is 'Kwiecień' and it is not shortened at all (probably because 'april' is a short name).
I checked other months and the pattern seems to be the case.
It can be caused by some misconfiguration. For that I am not sure. The problem popped up right after upgrading to 1.3-beta1 from older version (1.1 if i remember correctly).
comment:3 by , 14 years ago
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
Replying to muaddib@…:
The problem reported wasnt about translated strings, but more about the way django admin treats them.
The names are being shortened taking into account english length of the respective month name, not the translated one.
Erm... no, they're not. They're being shortened as part of the translation.
I'm not aware of anywhere that Django uses the length of the english word to shorten a translated word. The fact that the translations actually demonstrate the problem you're describing backs up that assertion.
Closing invalid, since as far as I can make out, this is definitely a translation problem. Please don't reopen unless you can point at a *specific* line of code where we're doing the wrong thing.
Translations are now being handled through Transifex. If you want to help correct the Polish translation, sign up with the Polish translation team and pitch in.