fauzanjeg

Change some Podcast Text

Aug 4th, 2021 (edited)
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.44 KB | None | 0 0
  1. /* Change some Podcast Text */
  2. function change_some_podcast_text( $translated_text ) {
  3.     switch ($translated_text) {
  4.         case 'List Episodes':
  5.             $translated_text = __('List Episodes translated');
  6.             break;
  7.         case 'by':
  8.             $translated_text = __('by translated');
  9.             break;
  10.         case 'Share':
  11.             $translated_text = __('Share translated');
  12.             break;
  13.         case 'Episodes':
  14.             $translated_text = __('Episodes translated');
  15.             break;
  16.         case 'Episode':
  17.             $translated_text = __('Episode translated');
  18.             break;
  19.         case 'Created by':
  20.             $translated_text = __('Created by translated');
  21.             echo $translated_text;
  22.             break;
  23.         case 'Play':
  24.             $translated_text = __('Play translated');
  25.             break;
  26.         case 'Queue':
  27.             $translated_text = __('Queue translated');
  28.             break;
  29.         case 'Subscribe':
  30.             $translated_text = __('Subscribe translated');
  31.             break;
  32.         case 'Add to Queue':
  33.             $translated_text = __('Add to Queue translated');
  34.             break;
  35.         case 'Added to Queue':
  36.             $translated_text = __('Added to Queue translated');
  37.             break;
  38.         case 'There\'s something wrong':
  39.             $translated_text = __('There\'s something wrong translated');
  40.             break;
  41.     }
  42.  
  43.     return $translated_text;
  44. }
  45. add_filter( 'gettext', 'change_some_podcast_text', 20, 1 );
  46. add_filter( 'jnews_return_translation', 'change_some_podcast_text', 10, 1 );
Add Comment
Please, Sign In to add comment