Indicator's displayed date/time does not respect formatting set in Switchboard Locale Plug (Language & Region)

Bug #1630151 reported by wolf
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Wingpanel Date & Time Indicator
Invalid
Undecided
Unassigned

Bug Description

The indicator's date formatting does not match that of the format set in Settings > Language & Region.

For instance, I'm based in the United States but I set everything in Settings (locale, keyboard, timezone) to the UK to test the dmy format in lieu of mdy. Both Greeter and the Wingpanel indicator do not display the dmy format even though the Language & Region panel display the format as "Tue 04 Oct 2016" (displays in indicator as "Tue, Oct 4"). I suppose this could be an issue with just the English formatting, as a switch to other regions (and hence, languages) did change the system text. I have tried both the "Set Language" and "Set System Language" buttons in the plug, but have reported another bug on that: https://bugs.launchpad.net/switchboard-plug-locale/+bug/1630148

I imagine this bug is related, pertaining to the origin format for displaying the time (12 vs. 24h): https://bugs.launchpad.net/wingpanel-indicator-datetime/+bug/1048873

Related Stack Exchange question: http://elementaryos.stackexchange.com/q/7539/5565

Tags: i18n
wolf (w+lf)
summary: - Displayed date/time does not respect formatting in Switchboard Locale
- Plug (Language & Region)
+ Indicator's displayed date/time does not respect formatting set in
+ Switchboard Locale Plug (Language & Region)
wolf (w+lf)
description: updated
tags: added: i18n
Revision history for this message
Maxim Taranov (png2378) wrote :

Marked as invalid, because translation teams responsible for this. For example for UK they need to translate these strings:
https://translations.launchpad.net/wingpanel-indicator-datetime/trunk/+pots/datetime-indicator/en_GB/5/+translate
https://translations.launchpad.net/pantheon-greeter/trunk/+pots/pantheon-greeter/en_GB/8/+translate

You can report issue to translators from the team or join to the team and make corrections by himself.

Changed in wingpanel-indicator-datetime:
status: New → Invalid
Revision history for this message
Mark Richards (bigcat4) wrote :

Thanks Maxim,

I have a bit of a newbie question...

So I looked at ../src/Widgets/PanelLabel.vala:60
and I see the following code:

date_label.set_label (Services.TimeManager.get_default ().format (_("%a, %b %e")));

For UK date format, it would need to be:

date_label.set_label (Services.TimeManager.get_default ().format (_("%a, %e %b")));

(%e and %b are swapped)

I'm wondering how this is changed, so it only affects the panel date format when someone has the GB locale set in their settings. If the line is changed in ../src/Widgets/PanelLabel.vala:60, would it not change it for everyone?

Kind regards
Mark

Revision history for this message
dum (dummyxl) wrote :

Dutch language also affected.
panel says: za,jul 8 18.56
correct way za, 8 July 18.56

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.