From 915c3f839b7db3c83362f344987626f509ee46e1 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 25 Jun 2022 11:57:44 -0700
Subject: [PATCH] Fix i18n

---
 README.md                         |  9 ++++--
 languages/tag-dropdown-widget.pot |  4 +--
 readme.txt                        |  9 ++++--
 tag-dropdown-widget.php           | 50 +++++++++++++++----------------
 4 files changed, 41 insertions(+), 31 deletions(-)

diff --git a/README.md b/README.md
index 0a837ab..fc178cf 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
 **Tags:** tag, tags, taxonomy, sidebar, widget, widgets, dropdown, drop down  
 **Requires at least:** 2.8  
 **Tested up to:** 6.0  
-**Stable tag:** 2.3.1  
+**Stable tag:** 2.3.2  
 **License:** GPLv2 or later  
 **License URI:** http://www.gnu.org/licenses/gpl-2.0.html  
 
@@ -80,6 +80,9 @@ To make targeting a specific filter reference possible should you use multiple i
 
 ## Changelog ##
 
+### 2.3.2 ###
+* Ready plugin for translation.
+
 ### 2.3.1 ###
 * PHP 7.3 compatibility
 
@@ -110,7 +113,6 @@ To make targeting a specific filter reference possible should you use multiple i
 ### 2.0.0.2 ###
 * Fix bug in post count threshold that resulted in no terms being listed.
 
-
 ### 2.0.0.1 ###
 * Fix bug that appended cutoff indicators when unnecessary.
 
@@ -164,6 +166,9 @@ To make targeting a specific filter reference possible should you use multiple i
 
 ## Upgrade Notice ##
 
+### 2.3.2 ###
+Readies plugin for translation.
+
 ### 2.3.1 ###
 Now compatible with PHP 7.3.
 
diff --git a/languages/tag-dropdown-widget.pot b/languages/tag-dropdown-widget.pot
index 8f41767..90e169a 100644
--- a/languages/tag-dropdown-widget.pot
+++ b/languages/tag-dropdown-widget.pot
@@ -2,7 +2,7 @@
 # This file is distributed under the same license as the Taxonomy Dropdown Widget package.
 msgid ""
 msgstr ""
-"Project-Id-Version: Taxonomy Dropdown Widget 2.3.1\n"
+"Project-Id-Version: Taxonomy Dropdown Widget 2.3.2\n"
 "Report-Msgid-Bugs-To: "
 "https://wordpress.org/support/plugin/tag-dropdown-widget\n"
 "POT-Creation-Date: 2022-06-25 18:24:14+00:00\n"
@@ -164,4 +164,4 @@ msgstr ""
 
 #. Author URI of the plugin/theme
 msgid "https://ethitter.com/"
-msgstr ""
+msgstr ""
\ No newline at end of file
diff --git a/readme.txt b/readme.txt
index 8c49fa4..99226d7 100644
--- a/readme.txt
+++ b/readme.txt
@@ -4,7 +4,7 @@ Donate link: https://ethitter.com/donate/
 Tags: tag, tags, taxonomy, sidebar, widget, widgets, dropdown, drop down
 Requires at least: 2.8
 Tested up to: 6.0
-Stable tag: 2.3.1
+Stable tag: 2.3.2
 License: GPLv2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 
@@ -80,6 +80,9 @@ To make targeting a specific filter reference possible should you use multiple i
 
 == Changelog ==
 
+= 2.3.2 =
+* Ready plugin for translation.
+
 = 2.3.1 =
 * PHP 7.3 compatibility
 
@@ -110,7 +113,6 @@ To make targeting a specific filter reference possible should you use multiple i
 = 2.0.0.2 =
 * Fix bug in post count threshold that resulted in no terms being listed.
 
-
 = 2.0.0.1 =
 * Fix bug that appended cutoff indicators when unnecessary.
 
@@ -164,6 +166,9 @@ To make targeting a specific filter reference possible should you use multiple i
 
 == Upgrade Notice ==
 
+= 2.3.2 =
+Readies plugin for translation.
+
 = 2.3.1 =
 Now compatible with PHP 7.3.
 
diff --git a/tag-dropdown-widget.php b/tag-dropdown-widget.php
index 75955cc..913e90c 100644
--- a/tag-dropdown-widget.php
+++ b/tag-dropdown-widget.php
@@ -1,29 +1,29 @@
 <?php
 // phpcs:ignoreFile -- legacy code in need of refactoring.
-/*
-Plugin Name: Taxonomy Dropdown Widget
-Plugin URI: https://ethitter.com/plugins/taxonomy-dropdown-widget/
-Description: Creates a dropdown list of non-hierarchical taxonomies as an alternative to the term (tag) cloud. Widget provides numerous options to tailor the output to fit your site. Dropdown function can also be called directly for use outside of the widget. Formerly known as <strong><em>Tag Dropdown Widget</em></strong>.
-Author: Erick Hitter
-Version: 2.3.1
-Author URI: https://ethitter.com/
-Text Domain: tag-dropdown-widget
-Domain Path: /languages/
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
+/**
+ * Plugin Name: Taxonomy Dropdown Widget
+ * Plugin URI: https://ethitter.com/plugins/taxonomy-dropdown-widget/
+ * Description: Creates a dropdown list of non-hierarchical taxonomies as an alternative to the term (tag) cloud. Widget provides numerous options to tailor the output to fit your site. Dropdown function can also be called directly for use outside of the widget. Formerly known as <strong><em>Tag Dropdown Widget</em></strong>.
+ * Author: Erick Hitter
+ * Version: 2.3.2
+ * Author URI: https://ethitter.com/
+ * Text Domain: tag-dropdown-widget
+ * Domain Path: /languages/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
 
 /**
  ** TAXONOMY DROPDOWN WIDGET PLUGIN
@@ -111,7 +111,7 @@ class taxonomy_dropdown_widget_plugin {
 		load_plugin_textdomain(
 			'tag-dropdown-widget',
 			false,
-			dirname( __FILE__ ) . '/languages/'
+			dirname( plugin_basename( __FILE__ ) ) . '/languages/'
 		);
 	}
 
-- 
GitLab