Review Request 127623: [digital-clock] Fix display of seconds with certain locales

Wolfgang Bauer wbauer at tmo.at
Sun Apr 10 09:25:28 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127623/
-----------------------------------------------------------

Review request for Plasma.


Repository: plasma-workspace


Description
-------

Currently, "Show Seconds" has no effect with certain locales (C e.g.) that already contain the seconds in the ShortFormat.
The reason is that the seconds are only added to the format string that's used to display the time if they are not part of timeFormatString already (which is not used at all for the display).

This patch fixes that check and adds them only depending on the showSeconds config option.


Diffs
-----

  applets/digital-clock/package/contents/ui/DigitalClock.qml 95bb071 

Diff: https://git.reviewboard.kde.org/r/127623/diff/


Testing
-------

Switch locale to C, seconds are shown now or not, depending on the applet's configuration, they were not shown before even when enabled.
It still behaves as expected with my standard locale (de_AT).


Thanks,

Wolfgang Bauer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160410/e2004af0/attachment.html>


More information about the Plasma-devel mailing list