Not recognizing Text Domain definition
-
Thanks for the plugin, it has helped tremendously by finding errors and shortcomings in my first WP theme.
I’m getting the text domain error: “WARNING: Your theme appears to be in the wrong directory for the theme name. The directory name must match the slug of the theme. This theme’s correct slug and text-domain is westfall-manufacturing.”
Based on these definition in my style.css:
Theme Name: Westfall Manufacturing Text Domain: westfallmfgit appears that the text domain is being generated from a “sluggified” version of Theme Name (which accords with the documention) and is ignoring the Text Domain definition.
The official themes such as twentyfifteen and twentyfourteen have directory names which match their defined Text Domains and not sluggified versions of Theme Name so I’m assuming that the Text Domain definition works. I also don’t find any documentation that indicates the need to define the textdomain other than in style.css.
I appreciate that this issue is not specific to your plugin, but hope that you’d be well suited to helping me. To that end:
Does this indicate that any translations will fail to work on the textdomain ‘westfallmfg’ and that I should change all textdomain references and the theme directory to ‘westfall-manufacturing’
Thanks.
The topic ‘Not recognizing Text Domain definition’ is closed to new replies.