Skip to content

Commit 7f258fa

Browse files
committed
Fixed bug setting text domain
1 parent 9d7aa11 commit 7f258fa

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Release changes are noted on the [Releases](https://github.com/dmhendricks/wordp
7575
#### Branch: `master`
7676

7777
* Added quick start documentation
78+
* Fixed bug with setting translation text domain
7879

7980
## Credits
8081

app/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function __construct() {
3131

3232
self::$config = new ConfigRegistry( $plugin_data['plugin']['path'] . 'plugin.json' );
3333
self::$config = self::$config->merge( new ConfigRegistry( $plugin_data ) );
34-
self::$textdomain = self::$config->get( 'plugin/meta/Name' ) ?: self::$config->get( 'plugin/slug' );
34+
self::$textdomain = self::$config->get( 'plugin/meta/TextDomain' ) ?: self::$config->get( 'plugin/slug' );
3535

3636
// Define plugin version constant
3737
if ( !defined( __NAMESPACE__ . '\VERSION' ) ) define( __NAMESPACE__ . '\VERSION', self::$config->get( 'plugin/meta/Version' ) );

0 commit comments

Comments
 (0)