had to remove the time for the last update again

This commit is contained in:
Tobias Diekershoff 2015-07-12 14:30:09 +02:00
parent 040a6be365
commit 22cc81cbc5
2 changed files with 7 additions and 7 deletions

View File

@ -118,14 +118,14 @@ function curweather_network_mod_init(&$fk_app,&$b) {
$wind = $weather->wind->speed->getDescription().', '.$weather->wind->speed . " " . $weather->wind->direction; $wind = $weather->wind->speed->getDescription().', '.$weather->wind->speed . " " . $weather->wind->direction;
$description = $weather->clouds->getDescription(); $description = $weather->clouds->getDescription();
} catch(OWMException $e) { } catch(OWMException $e) {
alert ( 'OpenWeatherMap exception: ' . $e->getMessage() . ' (Code ' . $e->getCode() . ').'); info ( 'OpenWeatherMap exception: ' . $e->getMessage() . ' (Code ' . $e->getCode() . ').');
} catch(\Exception $e) { } 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"> $curweather = '<div id="curweather-network" class="widget">
<div class="title tool"> <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 .= "$description; $temp<br />";
$curweather .= t('Relative Humidity').": $rhumid<br />"; $curweather .= t('Relative Humidity').": $rhumid<br />";
@ -173,7 +173,7 @@ function curweather_plugin_settings(&$a,&$s) {
$t = get_markup_template("settings.tpl", "addon/curweather/" ); $t = get_markup_template("settings.tpl", "addon/curweather/" );
$s = replace_macros ($t, array( $s = replace_macros ($t, array(
'$submit' => t('Save Settings'), '$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.'), '$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.'), '$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>.') ), '$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>.') ),

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: curweather.php:128 #: curweather.php:128 curweather.php:176
msgid "Current Weather" msgid "Current Weather"
msgstr "" msgstr ""
@ -54,7 +54,7 @@ msgid "Save Settings"
msgstr "" msgstr ""
#: curweather.php:176 #: curweather.php:176
msgid "curweather Settings" msgid "Settings"
msgstr "" msgstr ""
#: curweather.php:178 #: curweather.php:178