← All changes
|
templates/partials/single-trip/content-testimonials.php
+16
-3
3.0.4
→
3.0.17
View file →
| @@ -55,13 +55,26 @@ | ||
| 55 | 55 | $trip_date = !empty($testimonial->trip_date) ? $testimonial->trip_date : ''; |
| 56 | 56 | $location = !empty($testimonial->location) ? $testimonial->location : ''; |
| 57 | 57 | |
| 58 | 58 | if ($trip_date && $location) { |
| 59 | - echo esc_html(sprintf(__('Traveled %s in %s', 'yatra'), $trip_date, $location)); | |
| 59 | + echo esc_html(sprintf( | |
| 60 | + /* translators: 1: trip date, 2: location name. */ | |
| 61 | + __('Traveled %1$s in %2$s', 'yatra'), | |
| 62 | + $trip_date, | |
| 63 | + $location | |
| 64 | + )); | |
| 60 | 65 | } elseif ($trip_date) { |
| 61 | - echo esc_html(sprintf(__('Traveled %s', 'yatra'), $trip_date)); | |
| 66 | + echo esc_html(sprintf( | |
| 67 | + /* translators: %s: trip date. */ | |
| 68 | + __('Traveled %s', 'yatra'), | |
| 69 | + $trip_date | |
| 70 | + )); | |
| 62 | 71 | } elseif ($location) { |
| 63 | - echo esc_html(sprintf(__('Traveled in %s', 'yatra'), $location)); | |
| 72 | + echo esc_html(sprintf( | |
| 73 | + /* translators: %s: location name. */ | |
| 74 | + __('Traveled in %s', 'yatra'), | |
| 75 | + $location | |
| 76 | + )); | |
| 64 | 77 | } else { |
| 65 | 78 | echo esc_html__('Verified Traveler', 'yatra'); |
| 66 | 79 | } |
| 67 | 80 | ?> |