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
- ‘Global’ settings page for multisite plugin
- How to add field for new site-wide option on Network Settings screen?
- Contact form 7 select box different value-text than content-text in option [closed]
- 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
- Inherit plugin settings to new site in Multisite
- Using plural-only translation of register_post_status() in plugin
- How to tell if plugin has been network activated
- Override plugin localization
- 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?
- 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?
- Network-Wide Plugin Settings Management
- How can I translate the name of my Plugin for other languages?
- How to create a Page alias in WordPress
- Is it necessary to translate WordPress key terms when localizing a plugin
- How to fetch serialized data from wordpress options
- Add custom meta box on Post page
- Plugin readme.txt and assets internationalization
- Some Plugin Settings Are Kept After Removal and Reinstall of the Plugin
- Changing widget options via the functions.php when there are no hooks
- While Using Static Pages, How Can I Get /blog into the URL of Each Post?
- Translate third party plugin and save translation files in custom theme
- Get all options saved by another plugin
- Why load_textdomain work but not load_plugin_textdomain?
- Is it ok to call get_option without hooks?
- Enable/Disable WP options programmatically
- Custom options page checkbox will not save, despite working with text
- Settings API – input always updates over validation
- add function to saving change on Options Pages
- WooCommerce “Save Changes” button appears inside custom settings
- 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?
- Is there a reliable way to keep track of how long a WordPress theme has been active?
- Remove obsolete plugins artifacts from database tables
- Can I use the same textdomain in two separate plugins?
- Restore a Plugin’s Default Settings
- add action wp_head not working
- How to debug register_setting callback function
- 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
- Localiztion in javascript
- 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
- 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?
- Set the active Navigation Menu from a plugin
- Serialize data for wp options
- How can I add an options page for my class based plugin?
- problems with wordpress and php version 5.3.3-1
- Why slash is removed after domain?
- Where does WordPress store plugin (enabled/disabled) status for multisite?
- How to add a default value to get_option if it’s used as a variable?
- WordPress get_option and update_option returned entered on the textbox field
- Get plugin option in another PHP file
- Create mobile navigation header with settings integration
- Two text domains in one plugin
- Use translated taxonomy labels in 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
- 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
- How to remove traces from widget during uninstallation
- 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?
- php page not found for plugin options menu
- Force language in translate function
- Loading Canvas & WooCommerce translation file in child theme
- selecting options from another form
- How to access values from your own settings page in javascript?
- Neither update_option nor delete_option fires in deactivation hook
- wp_options Table keeps growing
- move setting data from wordpress api to codestar freamwork
- Admin Notice is only localized when displaying the “Plugins” Backend Page
- Multiple plugins settings of same developer into ONE settings page linked together
- WordPress Plugin translation not working EN To FR
- When to store store plugin options as a single database record?
- How to fix a Wordfence scan that doesn’t finish?
- Secure way to add JS Script to WordPress filesystem
- How do I output translated text strings on edit screens