$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 = '<div id="curweather-network" class="widget">
<div class="title tool">
- <h4 title="'.$weather->lastUpdate->format('r').'">'.t("Current Weather").': '.$weather->city->name.'</h4></div>';
+ <h4>'.t("Current Weather").': '.$weather->city->name.'</h4></div>';
$curweather .= "$description; $temp<br />";
$curweather .= t('Relative Humidity').": $rhumid<br />";
$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. <em>Berlin,DE</em> or <em>14476,DE</em>.') ),
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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"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 ""
msgstr ""
#: curweather.php:176
-msgid "curweather Settings"
+msgid "Settings"
msgstr ""
#: curweather.php:178