Translatable options page title
-
Could you make the options page title translatable?
on line 488:
add_submenu_page( ‘settings.php’, ‘Limit Login Attempts’, ‘Limit Login Attempts’, ‘manage_options’, $this->_options_page_slug, array( $this, ‘options_page’ ) );could be:
add_submenu_page( ‘settings.php’, __(‘Limit Login Attempts’, ‘limit-login-attempts-reloaded’), __(‘Limit Login Attempts’, ‘limit-login-attempts-reloaded’), ‘manage_options’, $this->_options_page_slug, array( $this, ‘options_page’ ) );and on line 493:
add_options_page( ‘Limit Login Attempts’, ‘Limit Login Attempts’, ‘manage_options’, $this->_options_page_slug, array( $this, ‘options_page’ ) );could be:
add_options_page( __(‘Limit Login Attempts’, ‘limit-login-attempts-reloaded’), __(‘Limit Login Attempts’, ‘limit-login-attempts-reloaded’), ‘manage_options’, $this->_options_page_slug, array( $this, ‘options_page’ ) );Thanks
The page I need help with: [log in to see the link]
- The topic ‘Translatable options page title’ is closed to new replies.