summaryrefslogtreecommitdiff
path: root/protocols/Weather/src/weather_update.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-04-03 14:50:35 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-04-03 14:50:35 +0300
commit18738a3452bc980a943734aad8fa1c23366342ce (patch)
tree5d24a652b9a152d5dc039d3554f1d4203662b39e /protocols/Weather/src/weather_update.cpp
parent4d051e1f4afd92b8dbc0e9129c903af377ad7f76 (diff)
files #4837 (Weather: не работает кнопка "Ещё переменные")
Diffstat (limited to 'protocols/Weather/src/weather_update.cpp')
-rw-r--r--protocols/Weather/src/weather_update.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/Weather/src/weather_update.cpp b/protocols/Weather/src/weather_update.cpp
index fc3d49afd9..3082d8d2c1 100644
--- a/protocols/Weather/src/weather_update.cpp
+++ b/protocols/Weather/src/weather_update.cpp
@@ -470,8 +470,11 @@ int CWeatherProto::GetWeatherData(MCONTACT hContact)
void GetVarsDescr(CMStringW &str)
{
- for (int i=1; i <= 7; i++)
- str.AppendFormat(L"a%d\t%s %d\r\n", i, TranslateT("Forecast Day"), i);
+ for (int i = 1; i <= 7; i++) {
+ if (i != 1)
+ str.Append(L", ");
+ str.AppendFormat(L"%%[Forecast Day %d]", i);
+ }
}
/////////////////////////////////////////////////////////////////////////////////////////