mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-05-23 23:06:56 +00:00
Locale: fixed all Qt.locale calls to respect the user selected locale.
This commit is contained in:
@@ -9,6 +9,8 @@ import qs.Widgets
|
||||
NBox {
|
||||
id: root
|
||||
|
||||
property var locale: I18n.langCode ? Qt.locale(I18n.langCode) : Qt.locale()
|
||||
|
||||
property int forecastDays: 7
|
||||
readonly property bool weatherReady: Settings.data.location.weatherEnabled && (LocationService.data.weather !== null)
|
||||
|
||||
@@ -102,7 +104,7 @@ NBox {
|
||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
||||
text: {
|
||||
var weatherDate = new Date(LocationService.data.weather.daily.time[index].replace(/-/g, "/"))
|
||||
return Qt.locale().toString(weatherDate, "ddd")
|
||||
return locale.toString(weatherDate, "ddd")
|
||||
}
|
||||
color: Color.mOnSurface
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user