Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Change some Podcast Text */
- function change_some_podcast_text( $translated_text ) {
- switch ($translated_text) {
- case 'List Episodes':
- $translated_text = __('List Episodes translated');
- break;
- case 'by':
- $translated_text = __('by translated');
- break;
- case 'Share':
- $translated_text = __('Share translated');
- break;
- case 'Episodes':
- $translated_text = __('Episodes translated');
- break;
- case 'Episode':
- $translated_text = __('Episode translated');
- break;
- case 'Created by':
- $translated_text = __('Created by translated');
- echo $translated_text;
- break;
- case 'Play':
- $translated_text = __('Play translated');
- break;
- case 'Queue':
- $translated_text = __('Queue translated');
- break;
- case 'Subscribe':
- $translated_text = __('Subscribe translated');
- break;
- case 'Add to Queue':
- $translated_text = __('Add to Queue translated');
- break;
- case 'Added to Queue':
- $translated_text = __('Added to Queue translated');
- break;
- case 'There\'s something wrong':
- $translated_text = __('There\'s something wrong translated');
- break;
- }
- return $translated_text;
- }
- add_filter( 'gettext', 'change_some_podcast_text', 20, 1 );
- add_filter( 'jnews_return_translation', 'change_some_podcast_text', 10, 1 );
Add Comment
Please, Sign In to add comment