[PATCH] Use QLocale to identify unit system

Murillo Bernardes mfbernardes at gmail.com
Sun Dec 3 05:15:24 PST 2017


Hi,

Unit system can be a bit trickier than the current implementation.

I for instance use US English as main language, but region set to Brazil,
meaning I use metric system. The current implementation gives me Imperial.

I checked the change on iOS Simulator with different regions, as well as
iPhone with Brazil region.

--
Murillo Bernardes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20171203/931f4830/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-QLocale-to-identify-unit-system.patch
Type: application/octet-stream
Size: 1220 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20171203/931f4830/attachment.obj>


More information about the subsurface mailing list