I18N Issues
-
This plugin’s slug is admin-bar-fix, but the current Text Domain is admin_bar_fix. Change the current Text Domain so it is equal to your slug and modify the text domain in all your source files.
- admin-bar-fix.php line 9 should be
Text Domain: admin-bar-fix - admin-bar-fix.php line 36 should be
load_plugin_textdomain( 'admin-bar-fix', false, basename( dirname( __FILE__ ) ) . '/languages/' ); - All strings with wrong text domain admin_bar_fix should be modified as admin-bar-fix
You must add your Text domain as an argument to every __(), _e() and __n() gettext call, or your translations won’t work. 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.
- admin-bar-fix.php line 149 should be
array_unshift( $links, '<a href="options-general.php?page=' . basename( __FILE__ ) . '">' . __('Settings', 'admin-bar-fix') . '</a>' ); - admin-bar-fix.php line 189 should be
<?php if( isset( $_POST['plugin_sent'] ) ) echo '<div id="message" class="below-h2 updated"><p>' . __('Settings saved.', 'admin-bar-fix') . '</p></div>' ?> - admin-bar-fix.php line 296 should be
<input type="submit" class="button button-primary button-large" value="<?php esc_html_e('Save', 'admin-bar-fix') ?>">
Please make menu option strings localizable.
- admin-bar-fix.php line 9 should be
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘I18N Issues’ is closed to new replies.