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
- Translate a plugin using .po .mo files
- How to add field for new site-wide option on Network Settings screen?
- Can I leave off plugin textdomain for terms used in core?
- Modifying a JS file with data from plugin settings
- Correct way to serialize the data of options table?
- Where should I use get_option in a plugin
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- Custom plugin settings: clicking “save changes” does not display success message
- Internationalization and the plugin description
- Duplicate settings of master blog to slave blogs in WP multi-site installation
- Environment Specific Options Token
- How do I extract the Alt Text from an image attachment upload via the WordPress Options Framework Plugin?
- How can I translate the name of my Plugin for other languages?
- How to fetch serialized data from wordpress options
- Add custom meta box on Post page
- Changing widget options via the functions.php when there are no hooks
- Translate third party plugin and save translation files in custom theme
- add function to saving change on Options Pages
- clean wp_options table unused rows
- How to set CORS header?
- Prepare plugin options for multi-lingual support
- What is the way to ship read-me strings like plugin-strings for internationalization?
- Remove obsolete plugins artifacts from database tables
- Why is the Settings API is not saving my array of options
- Creating a plugin that will add options. Where should the options menu pages go?
- Override plugin text domain in child theme
- Add get_option to jquery
- Making my plugin translation ready. Poedit not working
- update_user_meta add value on the top on existing value
- 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
- Why is the generated POT file from WordPress.org not adding my plugin description to the POT file?
- Set the active Navigation Menu from a plugin
- 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?
- WordPress get_option and update_option returned entered on the textbox field
- Create mobile navigation header with settings integration
- Two text domains in one plugin
- Admin Theme customization
- How to get specific setting by settings_fields()?
- changes to widget settings not showing up in individual pages pages until they’re updated [closed]
- Is it possible to use multiple post_name, post_title and post_content?
- Show admin notice on incorrect value on form field
- php page not found for plugin options menu
- Force language in translate function
- add tabs in rdp-plugin/includes/settings.php and get settings saved
- wp_editor content in plugin options page
- Plugin for single language localisation [closed]
- Cart66 localization hardcode strings [closed]
- Redirect to another page using contact form 7? [closed]
- Update a core option from plugin settings page
- Can I use register_settings and unregister_setting once the settings page has loaded?
- update_option_{$option} not showing old value
- Can deactivating a plugin sometimes “reset” settings within that plugin?
- Change the style of h1, h2, only in post entry
- Plugin getting Cannot modify header information errors
- How to prevent plugins from sniffing/stealing other plugins’ options?
- Default plugin config to override wp_options?
- Update WP option by plugin
- How (or where) do I get wordpress plugin update download link?
- Adding option values as an array using a multi selectable select box
- Store plugin page content in wp_options?
- Every time I save my plugin options it erases another plugin options
- Need to add/remove group of options and display them as rows
- Multisite Plugin – Access options (wp_options) on child sites
- Using call_user_func() within add_settings_section() within a Class
- Color Picker UI in admin is not correct
- Save log for imports in WordPress database – options-table, custom post type or other place?
- Managing and deleting transients with dynamically generated transient names
- Creating an array from form inputs before it is posted to the options database
- save short-code in my custom plugin settings problem missed something
- Plugin Options Page and Subpage
- save multi-select input using update_option for plugin
- Admin Custom Login loses settings on Code and Data migration
- Echo custom admin field into a is_single()
- Protect WordPress option value
- WordPress Boilerplate Plugin doesn’t see callback functions for add_settings_field and add_settings_section
- How to store multiple instances of the plugin’s options for various shortcodes
- Manual Backup – How to save to Firefox or Chrome (instead of IE which brings up popup I can’t get rid of)
- Register setting on plugin activation
- Plugin option for input box validation
- Options page textarea to populate custom post select field
- Change localization only for plugin
- How to create a new database table whenever user changes options
- get_option return incorrect values
- Create Array from data in the OPTIONS table
- Error when renaming option
- Saving an array to get_options
- ‘all’ hook and get_option issue
- How to find an option in the database?
- Internationalization of Blog Posts
- Building a simple “settings” plugin to change textstrings on the home page
- How to programmatically detect how many posts are displayed per page?
- Loading Canvas & WooCommerce translation file in child theme
- selecting options from another form
- 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