From 1782dc4d9924b8466255a81ecb817e62b12fd507 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sun, 18 May 2025 21:19:03 -0700
Subject: [PATCH] Fix translation support

---
 README.md                       | 8 +++++++-
 languages/wp-print-friendly.pot | 2 +-
 readme.txt                      | 8 +++++++-
 wp-print-friendly.php           | 2 +-
 4 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index e3c285b..3f92957 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
 **Tags:** print, template, printer, printable  
 **Requires at least:** 3.1  
 **Tested up to:** 6.8  
-**Stable tag:** 0.6.3  
+**Stable tag:** 0.6.4  
 **License:** GPLv2 or later  
 **License URI:** http://www.gnu.org/licenses/gpl-2.0.html  
 
@@ -59,6 +59,9 @@ This plugin is known to conflict with certain plugins, many pertaining to SEO an
 
 ## Changelog ##
 
+### 0.6.4 ###
+* Fix translation support.
+
 ### 0.6.3 ###
 * Fix translation support.
 
@@ -157,6 +160,9 @@ This plugin is known to conflict with certain plugins, many pertaining to SEO an
 
 ## Upgrade Notice ##
 
+### 0.6.4 ###
+Fixes translation support.
+
 ### 0.6.3 ###
 Fixes translation support.
 
diff --git a/languages/wp-print-friendly.pot b/languages/wp-print-friendly.pot
index 35b81ab..ecf6f0a 100644
--- a/languages/wp-print-friendly.pot
+++ b/languages/wp-print-friendly.pot
@@ -5,7 +5,7 @@ msgstr ""
 "Project-Id-Version: WP Print Friendly 0.6.3\n"
 "Report-Msgid-Bugs-To: "
 "https://wordpress.org/support/plugin/wp-print-friendly\n"
-"POT-Creation-Date: 2025-05-19 04:07:13+00:00\n"
+"POT-Creation-Date: 2025-05-19 04:17:33+00:00\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
diff --git a/readme.txt b/readme.txt
index 22a2e3f..00647be 100644
--- a/readme.txt
+++ b/readme.txt
@@ -4,7 +4,7 @@ Donate link: http://www.thinkoomph.com/plugins-modules/wp-print-friendly/
 Tags: print, template, printer, printable
 Requires at least: 3.1
 Tested up to: 6.8
-Stable tag: 0.6.3
+Stable tag: 0.6.4
 License: GPLv2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 
@@ -59,6 +59,9 @@ This plugin is known to conflict with certain plugins, many pertaining to SEO an
 
 == Changelog ==
 
+= 0.6.4 =
+* Fix translation support.
+
 = 0.6.3 =
 * Fix translation support.
 
@@ -157,6 +160,9 @@ This plugin is known to conflict with certain plugins, many pertaining to SEO an
 
 == Upgrade Notice ==
 
+= 0.6.4 =
+Fixes translation support.
+
 = 0.6.3 =
 Fixes translation support.
 
diff --git a/wp-print-friendly.php b/wp-print-friendly.php
index 7952553..d413628 100644
--- a/wp-print-friendly.php
+++ b/wp-print-friendly.php
@@ -85,7 +85,7 @@ class wp_print_friendly {
 	 */
 	private function setup() {
 		register_deactivation_hook( __FILE__, array( $this, 'deactivation_hook' ) );
-		add_action( 'plugins_loaded', array( $this, 'action_plugins_loaded' ) );
+		add_action( 'init', array( $this, 'action_plugins_loaded' ) );
 	}
 
 	/**
-- 
GitLab