Defect #9839
Gantt abbr of weekday should not be necessarily the first letter of the long day name
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Jean-Philippe Lang | % Done: | 0% | |
| Category: | I18n | |||
| Target version: | 2.1.0 | |||
| Affected version: | Resolution: | Fixed |
Description
In chinese, the gantt looks like
But we want
The problem cause by
<%= day_name(wday).first %>
The variants day_names and abbr_day_names setted in en.yml
and in zh.yml
so day_name(wday).first != abbr_day_name(wday)
I changed the code, it works fine, and attach last.
Related issues
Associated revisions
Use abbr_day_name to get the first letter of the day name (#9839).
History
#1 Updated by Etienne Massip over 1 year ago
- Tracker changed from Patch to Defect
- Subject changed from abbr of weekday to Gantt abbr of weekday should not be necessarily the first letter of the long day name
- Status changed from New to Confirmed
- Target version set to Candidate for next minor release
#2 Updated by 星 陈 over 1 year ago
+1
#3 Updated by Jean-Philippe Lang 9 months ago
- Category changed from Gantt to I18n
- Status changed from Confirmed to Closed
- Assignee set to Jean-Philippe Lang
- Target version changed from Candidate for next minor release to 2.1.0
- Resolution set to Fixed
Fix committed in r10202, thanks.
