From 22cc81cbc5b422d2d4a6d5660c15dcc4574f1484 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 12 Jul 2015 14:30:09 +0200 Subject: [PATCH] had to remove the time for the last update again --- curweather/curweather.php | 8 ++++---- curweather/lang/C/messages.po | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/curweather/curweather.php b/curweather/curweather.php index 557a10aa4..120545fd4 100644 --- a/curweather/curweather.php +++ b/curweather/curweather.php @@ -118,14 +118,14 @@ function curweather_network_mod_init(&$fk_app,&$b) { $wind = $weather->wind->speed->getDescription().', '.$weather->wind->speed . " " . $weather->wind->direction; $description = $weather->clouds->getDescription(); } catch(OWMException $e) { - alert ( 'OpenWeatherMap exception: ' . $e->getMessage() . ' (Code ' . $e->getCode() . ').'); + info ( 'OpenWeatherMap exception: ' . $e->getMessage() . ' (Code ' . $e->getCode() . ').'); } catch(\Exception $e) { - alert ('General exception: ' . $e->getMessage() . ' (Code ' . $e->getCode() . ').'); + info ('General exception: ' . $e->getMessage() . ' (Code ' . $e->getCode() . ').'); } $curweather = '
-

'.t("Current Weather").': '.$weather->city->name.'

'; +

'.t("Current Weather").': '.$weather->city->name.'

'; $curweather .= "$description; $temp
"; $curweather .= t('Relative Humidity').": $rhumid
"; @@ -173,7 +173,7 @@ function curweather_plugin_settings(&$a,&$s) { $t = get_markup_template("settings.tpl", "addon/curweather/" ); $s = replace_macros ($t, array( '$submit' => t('Save Settings'), - '$header' => t('curweather Settings'), + '$header' => t('Current Weather').' '.t('Settings'), '$noappidtext' => t('No APPID found, please contact your admin to optain one.'), '$info' => t('Enter either the name of your location or the zip code.'), '$curweather_loc' => array( 'curweather_loc', t('Your Location'), $curweather_loc, t('Identifier of your location (name or zip code), e.g. Berlin,DE or 14476,DE.') ), diff --git a/curweather/lang/C/messages.po b/curweather/lang/C/messages.po index 0a34eb2bd..1b57a529e 100644 --- a/curweather/lang/C/messages.po +++ b/curweather/lang/C/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-12 08:56+0200\n" +"POT-Creation-Date: 2015-07-12 14:29+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,7 +17,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: curweather.php:128 +#: curweather.php:128 curweather.php:176 msgid "Current Weather" msgstr "" @@ -54,7 +54,7 @@ msgid "Save Settings" msgstr "" #: curweather.php:176 -msgid "curweather Settings" +msgid "Settings" msgstr "" #: curweather.php:178