From 10b4babe8fd486a878626208fb1442d497fe5959 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 7 Apr 2025 13:40:59 +0300 Subject: =?UTF-8?q?fixes=20#4959=20(Weather:=20=D0=BF=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=BD=D1=8B=D0=B5=20=D0=B7=D0=B0=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=BB=D0=B8=D1=81=D1=8C=20=D0=BD=D0=B0=20=D0=BA?= =?UTF-8?q?=D0=B0=D0=BA=D0=B8=D0=B5-=D1=82=D0=BE=20=D0=BF=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=BE=D0=BD=D0=BD=D0=B8=D0=B5=20=D1=81=D0=B8?= =?UTF-8?q?=D0=BC=D0=B2=D0=BE=D0=BB=D1=8B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Weather/src/weather_opt.cpp | 36 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/protocols/Weather/src/weather_opt.cpp b/protocols/Weather/src/weather_opt.cpp index 6203715b2a..765309e414 100644 --- a/protocols/Weather/src/weather_opt.cpp +++ b/protocols/Weather/src/weather_opt.cpp @@ -320,23 +320,23 @@ struct } static variables[] = { - { '%c', LPGENW("Current condition") }, - { '%d', LPGENW("Current date") }, - { '%e', LPGENW("Dewpoint") }, - { '%f', LPGENW("Feel-like temp") }, - { '%h', LPGENW("Today's high") }, - { '%i', LPGENW("Wind direction") }, - { '%l', LPGENW("Today's low") }, - { '%m', LPGENW("Humidity") }, - { '%n', LPGENW("Station name") }, - { '%p', LPGENW("Pressure") }, - { '%r', LPGENW("Sunrise") }, - { '%s', LPGENW("Station ID") }, - { '%t', LPGENW("Temperature") }, - { '%u', LPGENW("Update time") }, - { '%v', LPGENW("Visibility") }, - { '%w', LPGENW("Wind speed") }, - { '%y', LPGENW("Sunset") }, + { 'c', LPGENW("Current condition") }, + { 'd', LPGENW("Current date") }, + { 'e', LPGENW("Dewpoint") }, + { 'f', LPGENW("Feel-like temp") }, + { 'h', LPGENW("Today's high") }, + { 'i', LPGENW("Wind direction") }, + { 'l', LPGENW("Today's low") }, + { 'm', LPGENW("Humidity") }, + { 'n', LPGENW("Station name") }, + { 'p', LPGENW("Pressure") }, + { 'r', LPGENW("Sunrise") }, + { 's', LPGENW("Station ID") }, + { 't', LPGENW("Temperature") }, + { 'u', LPGENW("Update time") }, + { 'v', LPGENW("Visibility") }, + { 'w', LPGENW("Wind speed") }, + { 'y', LPGENW("Sunset") }, }; class COptionsTextDlg : public CWeatherDlgBase @@ -374,7 +374,7 @@ public: // generate the display text for variable list CMStringW str; for (auto &it : variables) - str.AppendFormat(L"%c\t%s\r\n", it.symbol, TranslateW(it.pwszText)); + str.AppendFormat(L"%%%c\t%s\r\n", it.symbol, TranslateW(it.pwszText)); str.Append(L"----------\r\n"); str.AppendFormat(L"\\n\t%s\r\n", TranslateT("new line")); SetDlgItemTextW(m_hwnd, IDC_VARLIST, str); -- cgit v1.2.3