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

Bug #1298306 reported by David Planella
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Confirmed
Medium
Cris Dywan

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

Revision history for this message
David Planella (dpm) wrote :
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
importance: Undecided → Medium
status: New → Confirmed
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
assignee: nobody → Zsombor Egri (zsombi)
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
importance: Undecided → Medium
status: New → Confirmed
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: Zsombor Egri (zsombi) → Christian Dywan (kalikiana)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.