I18N: UI strings not translatable and wrong text domain
-
1. This plugin’s slug is
missing-menu-items
, but the current Text Domain isreusable-menu-items
. Change the current Text Domain so it is equal to this plugin’s slug and modify the text domain in all your source files. This change is needed, please refer to this article.
If there are strings in your plugin that are also used in WordPress core (e.g. “Settings”), you should still add your own text domain to them, otherwise they’ll become untranslated if the core string changes (which happens). Please refer to this article.2. This plugin made several useful menu items under the Appearance, but these menu items’ name should be able to translatable.
ea-missing-menu-items.php, line 42, 43__( 'Reusable Blocks', 'missing-menu-items' ), __( 'Reusable Blocks', 'missing-menu-items' ),
ea-missing-menu-items.php, line 50, 51
__( 'Navigation Menu', 'missing-menu-items' ), __( 'Navigation Menu', 'missing-menu-items' ),
ea-missing-menu-items.php, line 58, 59
__( 'Templates', 'missing-menu-items' ), __( 'Templates', 'missing-menu-items' ),
ea-missing-menu-items.php, line 66, 67
__( 'Template Parts', 'missing-menu-items' ), __( 'Template Parts', 'missing-menu-items' ),
- The topic ‘I18N: UI strings not translatable and wrong text domain’ is closed to new replies.