daily pastebin goal
8%
SHARE
TWEET

Untitled

nfmohit Jun 13th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* APPOINTMENTS CALENDAR - CHANGE ALL TEXT */
  2. function wpmu_gettext_with_context( $translated_text, $untranslated_text, $domain ) {
  3. if ( 'appointments' == $domain ) {
  4. if (strpos($untranslated_text,'Our schedule from START to END') !== false) {
  5. $translated_text = str_replace("Our schedule from START to END","<span>MAKE AN APPOINTMENT FOR</span><span>WEEK OF START</span>", $untranslated_text);
  6. } else if (strpos($untranslated_text,'Click on a free time slot to apply for an appointment.') !== false) {
  7. $translated_text = str_replace("Click on a free time slot to apply for an appointment.","Click light colored time slot to schedule.", $untranslated_text);
  8. } else if (strpos($untranslated_text,'Please click here to confirm this appointment') !== false) {
  9. $translated_text = str_replace("Please click here to confirm this appointment"," Confirm ", $untranslated_text);
  10. } else if (strpos($untranslated_text,'Please check the appointment details below and confirm:') !== false) {
  11. $translated_text = str_replace("Please check the appointment details below and confirm:","REVIEW APPOINTMENT & CONFIRM:", $untranslated_text);
  12. } else if (strpos($untranslated_text,'<div class="appointments-confirmation-service"></div>') !== false) {
  13. $translated_text = str_replace('<div class="appointments-confirmation-service"></div>','<div class="appointments-confirmation">Free Phone Consultation</div>', $untranslated_text);
  14. /* adjust confirmation form labels */
  15. } else if (strpos($untranslated_text,'Service provider:') !== false) {
  16. $translated_text = str_replace("Service provider:","Consultation with:", $untranslated_text);
  17. } else if (strpos($untranslated_text,'Your name:') !== false) {
  18. $translated_text = str_replace("Your name:","Full Name:", $untranslated_text);
  19. } else if (strpos($untranslated_text,'Your email:') !== false) {
  20. $translated_text = str_replace("Your email:","Email:", $untranslated_text);
  21. } else if (strpos($untranslated_text,'Your phone:') !== false) {
  22. $translated_text = str_replace("Your phone:","Phone:", $untranslated_text);
  23. } else if (strpos($untranslated_text,'We have received your appointment. Thanks!') !== false) {
  24. $translated_text = str_replace("We have received your appointment. Thanks!",
  25. "Your phone consultation has been scheduled! Now, check your email (or spam) to find -- K Dunn Conference Call Instructions.", $untranslated_text);
  26. }
  27. }
  28.  
  29. return $translated_text;
  30. }
  31. add_filter( 'gettext', 'wpmu_gettext_with_context', 10, 3 );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top