From 712448f207f568d88402f0e9df575fcd7e23a997 Mon Sep 17 00:00:00 2001 From: bobrosoft Date: Mon, 30 Dec 2019 11:51:27 +0400 Subject: [PATCH] YandexWeather: update matching array with English translations as some users getting English version instead of Russian --- MTMR/Widgets/YandexWeatherBarItem.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MTMR/Widgets/YandexWeatherBarItem.swift b/MTMR/Widgets/YandexWeatherBarItem.swift index c6a050b..740ea2c 100644 --- a/MTMR/Widgets/YandexWeatherBarItem.swift +++ b/MTMR/Widgets/YandexWeatherBarItem.swift @@ -12,7 +12,10 @@ import CoreLocation class YandexWeatherBarItem: CustomButtonTouchBarItem, CLLocationManagerDelegate { private let activity: NSBackgroundActivityScheduler private let unitsStr = "°C" - private let iconsSource = ["Ясно": "☀️", "Малооблачно": "🌤", "Облачно с прояснениями": "⛅️", "Пасмурно": "☁️", "Небольшой дождь": "🌦", "Дождь": "🌧", "Ливень": "⛈", "Гроза": "🌩", "Дождь со снегом": "☔️", "Небольшой снег": "❄️", "Снег": "🌨", "Туман": "🌫"] + private let iconsSource = [ + "Ясно": "☀️", "Малооблачно": "🌤", "Облачно с прояснениями": "⛅️", "Пасмурно": "☁️", "Небольшой дождь": "🌦", "Дождь": "🌧", "Ливень": "⛈", "Гроза": "🌩", "Дождь со снегом": "☔️", "Небольшой снег": "❄️", "Снег": "🌨", "Туман": "🌫", + "Clear": "☀️", "Mostly clear": "🌤", "Partly cloudy": "⛅️", "Overcast": "☁️", "Light rain": "🌦", "Rain": "🌧", "Heavy rain": "⛈", "Storm": "🌩", "Sleet": "☔️", "Light snow": "❄️", "Snow": "🌨", "Fog": "🌫" + ] private var location: CLLocation! private var prevLocation: CLLocation! private var manager: CLLocationManager!