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

Wolfgang Bauer wbauer at tmo.at
Fri Apr 22 17:11:25 UTC 2016


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

(Updated April 22, 2016, 5:11 p.m.)


Status
------

This change has been marked as submitted.


Review request for Plasma, Kai Uwe Broulik and Martin Klapetek.


Changes
-------

Submitted with commit a7a22de14c360fa5c975e0bae30fc22e4cd7cc43 by Wolfgang Bauer to branch Plasma/5.6.


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/20160422/f7e0edff/attachment-0001.html>


More information about the Plasma-devel mailing list