Localize the headings in your initial array:
$sections = array(
'notifcations' => __( 'Notifications', 'your_text_domain' ),
'updates' => __( 'Updates', 'your_text_domain' )
);
foreach ($sections as $section => $header )
{
add_settings_section(
$section .'_section',
$header,
array( $this, 'disable_callback_warnings' ),
'sgnc'
);
}
Related Posts:
- Upgrade 4.5.2 to 4.5.3 deleting row in wp_options table
- ‘Global’ settings page for multisite plugin
- Contact form 7 select box different value-text than content-text in option [closed]
- Modifying a JS file with data from plugin settings
- Using plural-only translation of register_post_status() in plugin
- Is there a hook attached to general settings save?
- How to find out if option exists but is empty?
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- Network-Wide Plugin Settings Management
- Add custom meta box on Post page
- Plugin readme.txt and assets internationalization
- Why load_textdomain work but not load_plugin_textdomain?
- Custom options page checkbox will not save, despite working with text
- WooCommerce “Save Changes” button appears inside custom settings
- Remove obsolete plugins artifacts from database tables
- How to debug register_setting callback function
- Why is the Settings API is not saving my array of options
- Add get_option to jquery
- Making my plugin translation ready. Poedit not working
- Localiztion in javascript
- Possible to add a language file to a plugin without adding .po/.mo files to plugin directory?
- Can’t get plugin settings page to save data
- Default Plugin Settings Not Writing to Database
- Update Option Error: Notice: Undefined index
- Why is the generated POT file from WordPress.org not adding my plugin description to the POT file?
- How do i save plugin-specific info?
- How can I add an options page for my class based plugin?
- problems with wordpress and php version 5.3.3-1
- Where does WordPress store plugin (enabled/disabled) status for multisite?
- Create mobile navigation header with settings integration
- Two text domains in one plugin
- Image upload and other options in the same plugin settings form?
- Admin Theme customization
- How to get specific setting by settings_fields()?
- Add Plugin options as subpage to Theme options page
- What can be reason for no plugin-strings available under stable section on translate.wordpress.org?
- Is there a way to test that readme looks in other language before submitting translation?
- Force language in translate function
- Can I load the textdomain before a plugin is activated?
- Enabling plugin failed because MySQL user do not have CREATE permissions
- wp_editor content in plugin options page
- options creation for plugins
- How to create an option page for this simple plugin
- get_option error plugin development
- Localize plugin name
- Gathering and logging data from a plugin: how to do it without race conditions?
- WordPress error: Options page Setting_ not found in the allowed options list
- Allowed memory size exhausted problem
- How to add options to the plugin page?
- Saving widget options from class method
- Translations for my plugin don’t show up
- Setting Email locale before retrieving gettext translations
- get_option / wp_localize_script Not Working in OOP Plug In
- OceanWP settings are missing from Add New Post [closed]
- Change in one place the data about the company, which are placed on several pages
- Translation issue with global variables
- Plugin scheduled event not working
- How to ignore extra whitespaces in translation functions like _e?
- How to save plugin custom settings page fields
- Plugin not properly prepared for localization
- How to reinstate previously saved option?
- Changing plugin options from theme functions file?
- Adding a theme option to the admin that lets me turn on/off a javascript file
- How to make a textarea accept javascript in my settings apge?
- How do you add a settings page to another menu?
- Replace woocommerce | (pipe) separator in product variation to , or another character?
- How to get values from network settings panel?
- How to add a custom form to a plugin’s setting page
- update_option creates an option, which empties on a blog reload
- How to translate user added content in a plugin
- How to make sure settings are not lost when plugin is updated?
- wp_options not returning value for logged out users?
- Use localized plugin name and description even when the plugin is disabled
- how to show new field if option selected?
- Problem with MEMCACHE and Redis with wp_options
- Changing the CSS with a plugin
- I dont know why my localization is not working
- Optimized PHP & WordPress settings for speed/performance?
- WP options plugin setting not saving the selected checkboxes
- Enable plugins that are “not supported”
- How do I add a textarea (multirow) option to my WordPress plugin?
- Registered sidebar area is not shown from plugin.
- why my wordpress dont have toolbar like, plugin, themes and other?
- Why is the WordPress update_option not working in this code?
- database – multiple wordpress installations using same database – can they share plugin settings?
- WordPress update plugin through Dashboard/Plugins displaying error
- Option page not updating multiple records in settings api
- get_option returning old value for non-admin users
- Locale changed but plugin still showing default language
- Validating values using Settings API?
- get Options value in “external” page
- how to protect wordpress website
- homepage olderposts link showing page not found
- WP e-commerce sales-view
- My first plugin doesn’t save the data in options
- Neither update_option nor delete_option fires in deactivation hook
- move setting data from wordpress api to codestar freamwork
- Multiple plugins settings of same developer into ONE settings page linked together
- WordPress Plugin translation not working EN To FR
- Secure way to add JS Script to WordPress filesystem