← Back to team overview

touch-packages team mailing list archive

[Bug 1298306] Re: Do not hardcode ordering of day number and day name in DatePicker

 

** No longer affects: ubuntu-ui-toolkit

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1298306

Title:
  Do not hardcode ordering of day number and day name in DatePicker

Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Confirmed

Bug description:
  In my locale, when I'm seeing the day name and day number in a
  sentence, I expect to have them in "day_name day_number" format.
  However in the DatePicker, they seem to be the other way around.

  I.e. "dissabte 26" (expected, correct) vs "26 dissabte" (actual,
  incorrect).

  This comes from hardcoding the ordering in DayModel.qml [1]. Instead,

  - the day_name, day_number ordering should be taken from the user's locale or,
  - alternatively, if that ordering is not available, the string should be made translatable so that translators can reorder it according to their locale by translating the SDK

  zsombi mentioned there is a bug in MonthModel.qml too, but I couldn't
  quite find it.

  See the attached image showing the wrong order for the day picker.

  [1] http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-
  toolkit/trunk/view/head:/modules/Ubuntu/Components/Pickers/DayModel.qml

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1298306/+subscriptions