weather: rename postcode => postalcode

Origin commit data
------------------
Commit: 3bd0161285
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-01-22 (Sat, 22 Jan 2022)

Origin message was:
------------------
- weather: rename postcode => postalcode
This commit is contained in:
vanhofen
2022-01-22 01:44:42 +01:00
parent 08a47abd0b
commit bb2a7aa316
10 changed files with 19 additions and 19 deletions

View File

@@ -94,8 +94,8 @@ int CWeatherSetup::showWeatherSetup()
mf_wl->setHint(NEUTRINO_ICON_HINT_SETTINGS, LOCALE_MENU_HINT_WEATHER_LOCATION);
ms_oservices->addItem(mf_wl);
CMenuForwarder *mf_zip = new CMenuForwarder(LOCALE_WEATHER_LOCATION_POSTCODE, g_settings.weather_enabled, g_settings.weather_postcode, this, "find_location");
mf_zip->setHint(NEUTRINO_ICON_HINT_SETTINGS, LOCALE_MENU_HINT_WEATHER_LOCATION_POSTCODE);
CMenuForwarder *mf_zip = new CMenuForwarder(LOCALE_WEATHER_POSTALCODE, g_settings.weather_enabled, g_settings.weather_postalcode, this, "find_location");
mf_zip->setHint(NEUTRINO_ICON_HINT_SETTINGS, LOCALE_MENU_HINT_WEATHER_POSTALCODE);
ms_oservices->addItem(mf_zip);
int res = ms_oservices->exec(NULL, "");
@@ -158,11 +158,11 @@ int CWeatherSetup::findLocation()
{
int ret = menu_return::RETURN_REPAINT;
CStringInput zipcode(LOCALE_WEATHER_LOCATION_POSTCODE, &g_settings.weather_postcode, 5);
CStringInput zipcode(LOCALE_WEATHER_POSTALCODE, &g_settings.weather_postalcode, 5);
ret = zipcode.exec(NULL, "");
zipcode.hide();
if (CWeather::getInstance()->FindCoords(g_settings.weather_postcode))
if (CWeather::getInstance()->FindCoords(g_settings.weather_postalcode))
{
CWeather::getInstance()->setCoords(g_settings.weather_location, g_settings.weather_city);
}