From 4d5e6e2b2e162280ea7d1e0ed0dedf04ff1019c0 Mon Sep 17 00:00:00 2001 From: David Shanske Date: Sun, 17 Dec 2023 21:00:56 +0000 Subject: [PATCH] Bump Version --- includes/class-post-venue.php | 2 +- languages/simple-location.pot | 200 +++++++++++++++++----------------- readme.md | 9 +- readme.txt | 9 +- simple-location.php | 2 +- 5 files changed, 118 insertions(+), 104 deletions(-) diff --git a/includes/class-post-venue.php b/includes/class-post-venue.php index a972d2b..86756e8 100644 --- a/includes/class-post-venue.php +++ b/includes/class-post-venue.php @@ -345,7 +345,7 @@ public static function venue_types_dropdown( $post_type, $which ) { if ( isset( $_REQUEST['venue_type'] ) ) { $selected = sanitize_text_field( $_REQUEST['venue_type'] ); } - $list = array( '' => __( 'All', 'simple-location' ) ); + $list = array( '' => __( 'All Types', 'simple-location' ) ); foreach ( get_terms( 'venue_type', array( 'hide_empty' => false ) ) as $type ) { $list[ $type->slug ] = $type->name; } diff --git a/languages/simple-location.pot b/languages/simple-location.pot index 9711f5a..a663ce8 100644 --- a/languages/simple-location.pot +++ b/languages/simple-location.pot @@ -2,14 +2,14 @@ # This file is distributed under the GPLv2 or later. msgid "" msgstr "" -"Project-Id-Version: Simple Location 5.0.18\n" +"Project-Id-Version: Simple Location 5.0.20\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/simple-location\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2023-11-12T05:50:55+00:00\n" +"POT-Creation-Date: 2023-12-17T21:00:01+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.9.0\n" "X-Domain: simple-location\n" @@ -160,115 +160,111 @@ msgstr "" msgid "Unable To Find Airport Code" msgstr "" -#: includes/class-astronomical-calculator.php:405 +#: includes/class-astronomical-calculator.php:412 msgid "New" msgstr "" -#: includes/class-astronomical-calculator.php:411 +#: includes/class-astronomical-calculator.php:418 msgid "Waxing Crescent" msgstr "" -#: includes/class-astronomical-calculator.php:417 +#: includes/class-astronomical-calculator.php:424 msgid "First Quarter" msgstr "" -#: includes/class-astronomical-calculator.php:423 +#: includes/class-astronomical-calculator.php:430 #: includes/class-weather-provider.php:562 msgid "Full Moon" msgstr "" -#: includes/class-astronomical-calculator.php:429 +#: includes/class-astronomical-calculator.php:436 msgid "Waning Gibbous" msgstr "" -#: includes/class-astronomical-calculator.php:435 +#: includes/class-astronomical-calculator.php:442 msgid "Third Quarter" msgstr "" -#: includes/class-astronomical-calculator.php:441 +#: includes/class-astronomical-calculator.php:448 msgid "Waning Crescent" msgstr "" -#: includes/class-geo-base.php:96 -#: includes/class-geo-base.php:108 -#: includes/class-geo-base.php:346 -#: includes/class-geo-base.php:702 +#: includes/class-geo-base.php:97 +#: includes/class-geo-base.php:109 +#: includes/class-geo-base.php:347 +#: includes/class-geo-base.php:704 #: includes/class-loc-config.php:376 #: includes/class-sloc-media-metadata.php:160 -#: templates/loc-metabox.php:49 +#: templates/loc-metabox.php:54 msgid "Location" msgstr "" -#: includes/class-geo-base.php:179 +#: includes/class-geo-base.php:180 msgid "Show:" msgstr "" -#: includes/class-geo-base.php:279 +#: includes/class-geo-base.php:280 msgid "Public Location" msgstr "" -#: includes/class-geo-base.php:280 +#: includes/class-geo-base.php:281 msgid "Private Location" msgstr "" -#: includes/class-geo-base.php:281 +#: includes/class-geo-base.php:282 msgid "Lookup Location" msgstr "" -#: includes/class-geo-base.php:292 +#: includes/class-geo-base.php:293 msgid "None of the Posts Were Updated." msgstr "" #. translators: Count of posts updated. -#: includes/class-geo-base.php:295 +#: includes/class-geo-base.php:296 msgid "Updated %s post." msgid_plural "Updated %s posts." msgstr[0] "" msgstr[1] "" -#: includes/class-geo-base.php:362 -#: includes/class-location-taxonomy.php:730 +#: includes/class-geo-base.php:363 +#: includes/class-location-taxonomy.php:773 #: includes/class-post-venue.php:418 #: includes/class-weather-provider.php:607 #: includes/trait-weather-info.php:344 #: includes/widgets/class-sloc-weather-widget.php:198 -#: templates/loc-metabox.php:50 +#: templates/loc-metabox.php:55 #: templates/weather-metabox.php:20 msgid "None" msgstr "" -#: includes/class-geo-base.php:401 -#: includes/class-geo-base.php:467 -#: includes/class-geo-base.php:494 +#: includes/class-geo-base.php:402 +#: includes/class-geo-base.php:469 +#: includes/class-geo-base.php:496 msgid "Private" msgstr "" -#: includes/class-geo-base.php:402 -#: includes/class-geo-base.php:468 -#: includes/class-geo-base.php:495 +#: includes/class-geo-base.php:403 +#: includes/class-geo-base.php:470 +#: includes/class-geo-base.php:497 msgid "Public" msgstr "" -#: includes/class-geo-base.php:403 -#: includes/class-geo-base.php:469 -#: includes/class-geo-base.php:496 +#: includes/class-geo-base.php:404 +#: includes/class-geo-base.php:471 +#: includes/class-geo-base.php:498 msgid "Protected" msgstr "" -#: includes/class-geo-base.php:465 -msgid "All Posts" -msgstr "" - -#: includes/class-geo-base.php:466 -#: includes/class-geo-base.php:493 +#: includes/class-geo-base.php:468 +#: includes/class-geo-base.php:495 msgid "With Location" msgstr "" -#: includes/class-geo-base.php:492 +#: includes/class-geo-base.php:494 msgid "All Comments" msgstr "" -#: includes/class-geo-base.php:680 +#: includes/class-geo-base.php:682 #: includes/class-geo-data.php:638 #: includes/weather/class-weather-provider-station.php:148 #: templates/elevation-form.php:12 @@ -280,7 +276,7 @@ msgstr "" msgid "Latitude" msgstr "" -#: includes/class-geo-base.php:691 +#: includes/class-geo-base.php:693 #: includes/class-geo-data.php:650 #: includes/weather/class-weather-provider-station.php:149 #: templates/elevation-form.php:13 @@ -292,7 +288,7 @@ msgstr "" msgid "Longitude" msgstr "" -#: includes/class-geo-base.php:713 +#: includes/class-geo-base.php:715 msgid "Last Reported Timezone" msgstr "" @@ -834,182 +830,182 @@ msgid "Bike" msgstr "" #. translators: 1. Location Type. 2: Location Name -#: includes/class-location-taxonomy.php:54 +#: includes/class-location-taxonomy.php:64 msgid "%1$1s: %2$2s" msgstr "" -#: includes/class-location-taxonomy.php:58 +#: includes/class-location-taxonomy.php:68 msgid "Type" msgstr "" -#: includes/class-location-taxonomy.php:99 +#: includes/class-location-taxonomy.php:142 msgid "Locations allow for 3 levels of hierarchy: Country, region, and locality. Countries have no parent. Regions have a country as a parent. Localities have regions are their parent." msgstr "" -#: includes/class-location-taxonomy.php:104 +#: includes/class-location-taxonomy.php:147 msgid "Location Code:" msgstr "" -#: includes/class-location-taxonomy.php:106 +#: includes/class-location-taxonomy.php:149 msgid "Required. The code for this location. If no code, you can use the location." msgstr "" -#: includes/class-location-taxonomy.php:118 +#: includes/class-location-taxonomy.php:161 msgid "Country:" msgstr "" -#: includes/class-location-taxonomy.php:120 +#: includes/class-location-taxonomy.php:163 msgid "Country." msgstr "" -#: includes/class-location-taxonomy.php:126 +#: includes/class-location-taxonomy.php:169 msgid "Region:" msgstr "" -#: includes/class-location-taxonomy.php:129 +#: includes/class-location-taxonomy.php:172 msgid "The state, county, or province code for the location(attempts to use ISO3166-2 coding for regions). This can be different than than the name of the region, but is usually the same as the slug(accounting for multiple places with the same name" msgstr "" -#: includes/class-location-taxonomy.php:135 +#: includes/class-location-taxonomy.php:178 msgid "Locality:" msgstr "" -#: includes/class-location-taxonomy.php:137 +#: includes/class-location-taxonomy.php:180 msgid "The city, village, or town for the location" msgstr "" -#: includes/class-location-taxonomy.php:143 +#: includes/class-location-taxonomy.php:186 msgid "Error: Cannot Identify Type. This likely means the parent of this term is a locality. Localities can have no child. Change Parent to Country, Region, or None." msgstr "" -#: includes/class-location-taxonomy.php:195 +#: includes/class-location-taxonomy.php:238 msgctxt "taxonomy general name" msgid "Locations" msgstr "" -#: includes/class-location-taxonomy.php:196 +#: includes/class-location-taxonomy.php:239 msgctxt "taxonomy singular name" msgid "Location" msgstr "" -#: includes/class-location-taxonomy.php:197 +#: includes/class-location-taxonomy.php:240 msgctxt "search locations" msgid "Search Locations" msgstr "" -#: includes/class-location-taxonomy.php:198 +#: includes/class-location-taxonomy.php:241 msgctxt "popular locations" msgid "Popular Locations" msgstr "" -#: includes/class-location-taxonomy.php:199 +#: includes/class-location-taxonomy.php:242 msgctxt "all taxonomy items" msgid "All Locations" msgstr "" -#: includes/class-location-taxonomy.php:200 +#: includes/class-location-taxonomy.php:243 msgctxt "taxonomy parent item" msgid "Parent Location" msgstr "" -#: includes/class-location-taxonomy.php:201 +#: includes/class-location-taxonomy.php:244 msgctxt "taxonomy parent item with colon" msgid "Parent Location:" msgstr "" -#: includes/class-location-taxonomy.php:202 +#: includes/class-location-taxonomy.php:245 msgctxt "edit taxonomy item" msgid "Edit Location" msgstr "" -#: includes/class-location-taxonomy.php:203 +#: includes/class-location-taxonomy.php:246 msgctxt "view taxonomy item" msgid "View Location" msgstr "" -#: includes/class-location-taxonomy.php:204 +#: includes/class-location-taxonomy.php:247 msgctxt "update taxonomy item" msgid "Update Location" msgstr "" -#: includes/class-location-taxonomy.php:205 +#: includes/class-location-taxonomy.php:248 msgctxt "add taxonomy item" msgid "Add New Location" msgstr "" -#: includes/class-location-taxonomy.php:206 +#: includes/class-location-taxonomy.php:249 msgctxt "new taxonomy item" msgid "New Location" msgstr "" -#: includes/class-location-taxonomy.php:207 +#: includes/class-location-taxonomy.php:250 msgctxt "separate kinds with commas" msgid "Separate locations with commas" msgstr "" -#: includes/class-location-taxonomy.php:208 +#: includes/class-location-taxonomy.php:251 msgctxt "add or remove items" msgid "Add or remove location" msgstr "" -#: includes/class-location-taxonomy.php:209 +#: includes/class-location-taxonomy.php:252 msgctxt "choose most used" msgid "Choose from the most used location" msgstr "" -#: includes/class-location-taxonomy.php:210 +#: includes/class-location-taxonomy.php:253 msgctxt "no locations found" msgid "No locations found" msgstr "" -#: includes/class-location-taxonomy.php:211 +#: includes/class-location-taxonomy.php:254 msgctxt "no locations" msgid "No locations" msgstr "" -#: includes/class-location-taxonomy.php:212 +#: includes/class-location-taxonomy.php:255 msgid "The name of the location" msgstr "" -#: includes/class-location-taxonomy.php:213 +#: includes/class-location-taxonomy.php:256 msgid "Localities should have a Region as a Parent, and Regions should have a Country as their Parent" msgstr "" -#: includes/class-location-taxonomy.php:214 +#: includes/class-location-taxonomy.php:257 msgid "The slug field contains the ISO 3166-1 code for country(such as US) or region(such as NY) or the locality name. In the event of duplication, may use something else" msgstr "" -#: includes/class-location-taxonomy.php:215 +#: includes/class-location-taxonomy.php:258 #: includes/class-post-venue.php:160 msgid "Will display on location archive pages if set" msgstr "" -#: includes/class-location-taxonomy.php:243 +#: includes/class-location-taxonomy.php:286 msgid "Country Code" msgstr "" -#: includes/class-location-taxonomy.php:255 +#: includes/class-location-taxonomy.php:298 msgid "Region Code or name if code not available" msgstr "" -#: includes/class-location-taxonomy.php:268 +#: includes/class-location-taxonomy.php:311 msgid "Locality Name" msgstr "" #. translators: 1. Taxonomy Label -#: includes/class-location-taxonomy.php:389 +#: includes/class-location-taxonomy.php:432 msgid "No %1$s" msgstr "" -#: includes/class-location-taxonomy.php:723 +#: includes/class-location-taxonomy.php:766 msgid "Country" msgstr "" -#: includes/class-location-taxonomy.php:724 +#: includes/class-location-taxonomy.php:767 msgid "Region" msgstr "" -#: includes/class-location-taxonomy.php:725 +#: includes/class-location-taxonomy.php:768 msgid "Locality" msgstr "" @@ -1210,7 +1206,7 @@ msgstr[0] "" msgstr[1] "" #: includes/class-post-venue.php:348 -msgid "All" +msgid "All Types" msgstr "" #: includes/class-rest-geo.php:358 @@ -1243,7 +1239,7 @@ msgstr "" #: includes/class-rest-geo.php:522 #: includes/class-rest-geo.php:563 -#: templates/loc-metabox.php:68 +#: templates/loc-metabox.php:73 msgid "No Location" msgstr "" @@ -1369,7 +1365,7 @@ msgstr "" #: includes/class-weather-data.php:108 #: includes/trait-weather-info.php:180 #: includes/trait-weather-info.php:323 -#: templates/loc-metabox.php:141 +#: templates/loc-metabox.php:161 msgid "Visibility" msgstr "" @@ -3128,7 +3124,7 @@ msgstr "" #: includes/weather/class-weather-provider-meteostat.php:214 #: includes/weather/class-weather-provider-visualcrossing.php:206 -#: templates/loc-metabox.php:133 +#: templates/loc-metabox.php:153 msgid "Clear" msgstr "" @@ -3608,7 +3604,7 @@ msgstr "" #: templates/elevation-form.php:23 #: templates/geocode-form.php:26 -#: templates/loc-metabox.php:132 +#: templates/loc-metabox.php:152 #: templates/venue-form.php:23 #: templates/weather-form.php:26 msgid "Lookup" @@ -3637,52 +3633,56 @@ msgstr "" msgid "Geocoding Provider" msgstr "" -#: templates/loc-metabox.php:49 -#: templates/loc-metabox.php:56 +#: templates/loc-metabox.php:54 +#: templates/loc-metabox.php:61 msgid "Location:" msgstr "" -#: templates/loc-metabox.php:53 +#: templates/loc-metabox.php:58 msgid "Textual Description:" msgstr "" -#: templates/loc-metabox.php:76 +#: templates/loc-metabox.php:81 msgid "Radius Around Venue:" msgstr "" -#: templates/loc-metabox.php:81 +#: templates/loc-metabox.php:85 +msgid "Venue URL:" +msgstr "" + +#: templates/loc-metabox.php:91 msgid "Venue:" msgstr "" -#: templates/loc-metabox.php:87 +#: templates/loc-metabox.php:97 msgid "No Venue" msgstr "" -#: templates/loc-metabox.php:99 +#: templates/loc-metabox.php:119 msgid "Latitude:" msgstr "" -#: templates/loc-metabox.php:104 +#: templates/loc-metabox.php:124 msgid "Longitude:" msgstr "" -#: templates/loc-metabox.php:110 +#: templates/loc-metabox.php:130 msgid "Altitude:" msgstr "" -#: templates/loc-metabox.php:116 +#: templates/loc-metabox.php:136 msgid "Icon:" msgstr "" -#: templates/loc-metabox.php:123 +#: templates/loc-metabox.php:143 msgid "Map Zoom:" msgstr "" -#: templates/loc-metabox.php:134 +#: templates/loc-metabox.php:154 msgid "Minimize" msgstr "" -#: templates/loc-metabox.php:141 +#: templates/loc-metabox.php:161 msgid "Visibility:" msgstr "" diff --git a/readme.md b/readme.md index c07a815..515a103 100755 --- a/readme.md +++ b/readme.md @@ -3,7 +3,7 @@ **Tags:** geolocation, timezones, geo, maps, location, weather, indieweb **Requires at least:** 4.9 **Tested up to:** 6.4 -**Stable tag:** 5.0.19 +**Stable tag:** 5.0.20 **Requires PHP:** 5.6 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html @@ -288,6 +288,13 @@ will now be required to show maps for services that require API keys. ## Changelog ## +### 5.0.20 ( 2023-12-17 ) ### +* Dropdown for Venue will now on new edit load only, limited to venues at that location +* Temporarily disble sunset adjustment by elevation due to PHP8 deprecation of date_sunrise/sunset. Need to write wrapper in future +* Dropdown filter for location taxonomy added +* Improve some strings + + ### 5.0.19 ( 2023-12-12 ) ### * Pulldown will set option by default * Fix micropub integration to add additional check diff --git a/readme.txt b/readme.txt index 6d00255..d6ba0af 100755 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: dshanske Tags: geolocation, timezones, geo, maps, location, weather, indieweb Requires at least: 4.9 Tested up to: 6.4 -Stable tag: 5.0.19 +Stable tag: 5.0.20 Requires PHP: 5.6 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -288,6 +288,13 @@ will now be required to show maps for services that require API keys. == Changelog == += 5.0.20 ( 2023-12-17 ) = +* Dropdown for Venue will now on new edit load only, limited to venues at that location +* Temporarily disble sunset adjustment by elevation due to PHP8 deprecation of date_sunrise/sunset. Need to write wrapper in future +* Dropdown filter for location taxonomy added +* Improve some strings + + = 5.0.19 ( 2023-12-12 ) = * Pulldown will set option by default * Fix micropub integration to add additional check diff --git a/simple-location.php b/simple-location.php index 600876e..bc580c8 100755 --- a/simple-location.php +++ b/simple-location.php @@ -3,7 +3,7 @@ * Plugin Name: Simple Location * Plugin URI: https://wordpress.org/plugins/simple-location/ * Description: Adds Location to WordPress - * Version: 5.0.19 + * Version: 5.0.20 * Requires at least: 4.9 * Requires PHP: 7.0 * Requires CP: 1.4.3