Date shows wrong Finnish string for Sept
Bug #858737 reported by
Joel Korhonen
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Charles Haley |
Bug Description
In the main GUI, Date and Published fields for September show "s11s" (s-one-one-s) not "syys" when using the Finnish locale in English Windows 7 Ultimate using Finnish regional settings in Windows and default Calibre settings. Other months show ok.
Metadata editor shows this month correctly though for Date and Published.
Related branches
lp:~cbhaley/calibre/calibre_dev
- Kovid Goyal: Pending requested
-
Diff: 17 lines (+5/-2)1 file modifiedsrc/calibre/library/caches.py (+5/-2)
Changed in calibre: | |
status: | Triaged → Fix Committed |
To post a comment you must log in.
@charles: The problem is caused in format_date(). format_month() return syys
for september in the finnish locale which format_year then clobbers. Possible
solutions:
1) Write a re that matches all three simulataneously as different groups
2) Do a two stage replacement where the first stage inserts placeholders and
the second replaces the placeholders