Changeset 2933070
- Timestamp:
- 07/02/2023 06:34:26 PM (3 years ago)
- Location:
- text-domain-inspector/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
text-domain-inspector.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
text-domain-inspector/trunk/readme.txt
r2140457 r2933070 3 3 Tags: text-domain, text, domain, inspector, translation 4 4 Requires at least: 4.6 5 Tested up to: 5.26 Stable tag: 1. 05 Tested up to: 6.2.2 6 Stable tag: 1.1 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 42 42 43 43 == Changelog == 44 ### 1.1 45 46 * Added support for i18n 47 * Text domain is now appended as a query param if string is a URL (fixes the error for WP >= 5.9) 48 44 49 ### 1.0 45 50 -
text-domain-inspector/trunk/text-domain-inspector.php
r1908015 r2933070 4 4 Description: This plugin allows to inspect text domains of translatable strings 5 5 Author: Sti3bas 6 Version: 1. 06 Version: 1.1 7 7 Author URI: https://github.com/sti3bas 8 8 */ … … 71 71 public function addShortcode($translatedText, $text, $domain) 72 72 { 73 if(substr( $translatedText, 0, 4 ) === "http") { 74 return add_query_arg( 'textdomain', $domain, $translatedText ); 75 } 76 73 77 return $translatedText.'[textdomain='.$domain.';]'; 74 78 } … … 121 125 protected function buildAdminBarMenuTitle() 122 126 { 123 return $this->isTurnedOn() ? 'Turn off Text Domain Inspector' : 'Inspect Text Domains';127 return $this->isTurnedOn() ? __('Turn off Text Domain Inspector', 'text-domain-inspector') : __('Inspect Text Domains', 'text-domain-inspector'); 124 128 } 125 129 }
Note: See TracChangeset
for help on using the changeset viewer.