PluginProbe
Awesome Support – WordPress HelpDesk & Support Plugin / trunk
Awesome Support – WordPress HelpDesk & Support Plugin vtrunk
6.4.0 trunk 3.0.0 3.0.1 3.1.0 3.1.1 3.1.10 3.1.11 3.1.12 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 All 95 releases
awesome-support / includes / admin / settings / settings-language.php

settings-language.php in Awesome Support – WordPress HelpDesk & Support Plugin trunk, at includes/admin/settings/settings-language.php

31 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 add_filter( 'wpas_plugin_settings', 'wpas_core_settings_language', 95, 1 );
3 /**
4 * Add plugin language settings and notices
5 *
6 * @param (array) $def Array of existing settings
7 * @return (array) Updated settings
8 */
9 function wpas_core_settings_language( $def ) {
10
11 // translators: %s is the link to the documentation.
12 $desc = __( 'Awesome Support includes full and partial translations for many languages. These are automatically applied when you change the WordPress language settings.<br /><br /> Learn how you can add, change and update translation terms in this document: %s', 'awesome-support' );
13 $settings = array(
14 'Language' => array(
15 'name' => __( 'Language Options', 'awesome-support' ),
16 'options' => array(
17
18 array(
19 'name' => __( 'Language Notices', 'awesome-support' ),
20 'id' => 'language_notices',
21 'type' => 'note',
22 'desc' => sprintf( $desc, '<a href="https://getawesomesupport.com/documentation/awesome-support/translations/" target="_blank">' . 'Translations in Awesome Support' . '</a>' ),
23 ),
24
25 )
26 ),
27 );
28
29 return array_merge( $def, apply_filters('wpas_settings_language', $settings ) );
30
31 }