AnsPress_Tag::ap_localize_scripts()
Description #
Add translated strings to the javascript files
Source #
File: addons/free/tag.php
public static function ap_localize_scripts() { $l10n_data = array( 'deleteTag' => __( 'Delete Tag', 'anspress-question-answer' ), 'addTag' => __( 'Add Tag', 'anspress-question-answer' ), 'tagAdded' => __( 'added to the tags list.', 'anspress-question-answer' ), 'tagRemoved' => __( 'removed from the tags list.', 'anspress-question-answer' ), 'suggestionsAvailable' => __( 'Suggestions are available. Use the up and down arrow keys to read it.', 'anspress-question-answer' ), ); wp_localize_script( 'anspress-tags', 'apTagsTranslation', $l10n_data ); }
Expand full source code Collapse full source code View on GitHub: addons/free/tag.php:307
Add your comment