[haiku-bugs] Re: [Haiku] #13606: Implement functions to get localized long/short dayofweek name and short month name in BDateFormat.

  • From: "akshay" <trac@xxxxxxxxxxxx>
  • Date: Tue, 18 Jul 2017 15:11:58 -0000

#13606: Implement functions to get localized long/short dayofweek name and short
month name in BDateFormat.
-------------------------------+----------------------------
   Reporter:  akshay           |      Owner:  pulkomandy
       Type:  bug              |     Status:  new
   Priority:  normal           |  Milestone:  Unscheduled
  Component:  Kits/Locale Kit  |    Version:  R1/Development
 Resolution:                   |   Keywords:
 Blocked By:                   |   Blocking:
Has a Patch:  1                |   Platform:  All
-------------------------------+----------------------------

Comment (by akshay):

 How do I do it then if I use BDateFormatStyle..Use full or long for wide,
 short for short, medium for abbreviated? and for narrow? Wouldn't that
 make it confusing between date pattern and symbol width?
 The icu docs are really confusing in this regard..(lot of confusion over
 abbreviated and short)

 ya we can create the icu DateFormat during initialization and apply the
 style within the overloaded Format() , GetMonthName() and GetDayName() ?

 But the way the style is applied currently is a bit difficult to
 understand. Why are we not passing EStyle directly (long/full/short) while
 calling createDateInstance here..
 https://github.com/haiku/haiku/blob/master/src/kits/locale/DateFormat.cpp#L361

--
Ticket URL: <https://dev.haiku-os.org/ticket/13606#comment:8>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: