| 11 | | // Strings for 'jquery-ui-autocomplete' live region messages |
| 12 | | did_action( 'init' ) && $scripts->localize( 'jquery-ui-autocomplete', 'uiAutocompleteL10n', array( |
| 13 | | 'noResults' => __( 'No search results.' ), |
| 14 | | /* translators: Number of results found when using jQuery UI Autocomplete */ |
| 15 | | 'oneResult' => ( 1 == did_action( 'init' ) ) ? __( '1 result found. Use up and down arrow keys to navigate.' ) : _n( '%d result found. Use up and down arrow keys to navigate.', '%d result found. Use up and down arrow keys to navigate.', did_action( 'init' ) ), |
| 16 | | 'manyResults' => _n( '%d result found. Use up and down arrow keys to navigate.', '%d result found. Use up and down arrow keys to navigate.', did_action( 'init' ) ), |
| 17 | | ) ); |
| | 10 | // Strings for 'jquery-ui-autocomplete' live region messages |
| | 11 | did_action( 'init' ) && $scripts->localize( |
| | 12 | 'jquery-ui-autocomplete', |
| | 13 | 'uiAutocompleteL10n', |
| | 14 | array( |
| | 15 | 'noResults' => __( 'No results found.' ), |
| | 16 | /* translators: %d: Number of results found when using jQuery UI Autocomplete. */ |
| | 17 | 'manyResults' => _n( '%s result found. Use up and down arrow keys to navigate.', '%s results found. Use up and down arrow keys to navigate.', did_action( 'init' ) ), |
| | 18 | 'itemSelected' => __( 'Item selected.' ), |
| | 19 | ) |
| | 20 | ); |
| 23 | | {{{ |
| 24 | | |
| 25 | | // Strings for 'jquery-ui-autocomplete' live region messages |
| 26 | | did_action( 'init' ) && $scripts->localize( 'jquery-ui-autocomplete', 'uiAutocompleteL10n', array( |
| 27 | | 'noResults' => __( 'No search results.' ), |
| 28 | | /* translators: Number of results found when using jQuery UI Autocomplete */ |
| 29 | | 'oneResult' => sprintf( _n( '1 result found. Use up and down arrow keys to navigate.', '%s result found. Use up and down arrow keys to navigate.', did_action( 'init' ) ), number_format_i18n( did_action( 'init' ) ) ), |
| 30 | | 'manyResults' => sprintf( _n( '%s result found. Use up and down arrow keys to navigate.', '%s result found. Use up and down arrow keys to navigate.', did_action( 'init' ) ), number_format_i18n( did_action( 'init' ) ) ), |
| 31 | | ) ); |
| 32 | | |
| 33 | | }}} |
| 34 | | |
| 35 | | == For plugin.js |
| 36 | | == Example # 1: |
| 37 | | |
| | 25 | == For plugin.js & tags-suggest.js |