We have moved to a new Sailfish OS Forum. Please start new discussions there.

How to localise DatePickerDialog? [answered]

asked 2019-03-03 22:54:34 +0300

jsommer gravatar image

I expected, that the DatePickerDialog QML type is automatically localised to the language of the device, that is supported by Sailfish OS. This is not the case. I couldn't find any localization reference in the documentation:


This question might be trivial for the experienced developers.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Alex
close date 2019-03-07 21:36:52.173342

1 Answer

Sort by » oldest newest most voted

answered 2019-03-03 23:25:32 +0300

Alex gravatar image

The native Silica components should be localized by default. If you are using it inside the emulator it will be in english. And if you started your app from the emulator on your device, then it will also be loaded in english.

Start the app from the app-grid on your physical device and it should be loaded in your device language. You may also have to activate the language support in your harbour-app.pro-file but for me it is also working without it.

edit flag offensive delete publish link more


Indeed. I realised, that the localisation is only visible, if I start my app on the device from the app grid. If I start the app on the device from Qt Creator, the localisation is not visible.

jsommer ( 2019-03-05 12:48:53 +0300 )edit

Question tools



Asked: 2019-03-03 22:54:34 +0300

Seen: 105 times

Last updated: Mar 03 '19