Defect #9839

Gantt abbr of weekday should not be necessarily the first letter of the long day name

Added by 何 于 almost 6 years ago. Updated over 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:I18n
Target version:2.1.0
Resolution:Fixed Affected version:

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.

before.PNG (1.33 KB) 何 于, 2011-12-19 08:46

after.PNG (1.53 KB) 何 于, 2011-12-19 08:46

en.PNG (16.4 KB) 何 于, 2011-12-19 08:46

zh.PNG (18.1 KB) 何 于, 2011-12-19 08:46

abbr_day.patch Magnifier (980 Bytes) 何 于, 2011-12-19 08:46


Related issues

Duplicates Redmine - Defect #6502: Gantt chart day_name error Closed 2010-09-27

Associated revisions

Revision 10202
Added by Jean-Philippe Lang over 5 years ago

Use abbr_day_name to get the first letter of the day name (#9839).

History

#1 Updated by Etienne Massip almost 6 years 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 星 陈 almost 6 years ago

+1

#3 Updated by Jean-Philippe Lang over 5 years 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.

Also available in: Atom PDF