diff options
| -rw-r--r-- | protocols/Weather/src/weather_opt.cpp | 36 |
1 files 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); |
