From a3d125b67d1b46fb91c09cf3bb84e45bcff634e0 Mon Sep 17 00:00:00 2001 From: Sheldan <5037282+Sheldan@users.noreply.github.com> Date: Sun, 19 Mar 2023 10:55:36 +0100 Subject: [PATCH] [AB-91] adding direct link to open weather map in the output of the weather command --- .../openWeatherMap_command_response_embed_en_US.ftl | 1 + .../openWeatherMap_command_response_description_en_US.ftl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/abstracto-modules/webservices/src/main/resources/en_US/openweathermap/commands/openWeatherMap/openWeatherMap_command_response_embed_en_US.ftl b/abstracto-modules/webservices/src/main/resources/en_US/openweathermap/commands/openWeatherMap/openWeatherMap_command_response_embed_en_US.ftl index 9ee4b028..d6454ae8 100644 --- a/abstracto-modules/webservices/src/main/resources/en_US/openweathermap/commands/openWeatherMap/openWeatherMap_command_response_embed_en_US.ftl +++ b/abstracto-modules/webservices/src/main/resources/en_US/openweathermap/commands/openWeatherMap/openWeatherMap_command_response_embed_en_US.ftl @@ -12,6 +12,7 @@ <#assign weatherIcon>${weatherMap[mainWeather]!""} <#assign weatherKey=mainWeather!""> <#assign weatherDescription=description!""> + <#assign weatherLocationLink>https://openweathermap.org/city/${locationId?c} "description": "<@safe_include "openWeatherMap_command_response_description"/>", "fields": [ <#if temperature??> diff --git a/translations/webservices/src/main/resources/en_US/openweathermap/commands/openWeatherMap/openWeatherMap_command_response_description_en_US.ftl b/translations/webservices/src/main/resources/en_US/openweathermap/commands/openWeatherMap/openWeatherMap_command_response_description_en_US.ftl index 501ea714..1578f1c7 100644 --- a/translations/webservices/src/main/resources/en_US/openweathermap/commands/openWeatherMap/openWeatherMap_command_response_description_en_US.ftl +++ b/translations/webservices/src/main/resources/en_US/openweathermap/commands/openWeatherMap/openWeatherMap_command_response_description_en_US.ftl @@ -1 +1 @@ -Weather in ${locationName}, ${countryKey}: ${weatherIcon} ${weatherKey} - ${weatherDescription} \ No newline at end of file +Weather in [${locationName}, ${countryKey}](${weatherLocationLink}): ${weatherIcon} ${weatherKey} - ${weatherDescription} \ No newline at end of file