PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.17
Yatra – Travel Booking & Tour Operator Software v3.0.17
3.0.17 3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 All 85 releases
← All changes | templates/partials/single-trip/content-testimonials.php +18 -5 3.0.2.6 → 3.0.17 View file →
@@ -11,9 +11,9 @@
11 11 // Expected variables: $tab, $trip
12 12 ?>
13 13 <section class="yatra-trip-section" id="<?php echo esc_attr($tab->id); ?>">
14 14 <h2 class="yatra-trip-section-title">
15 - <?php yatra_render_tab_icon($tab->icon ?? null, 'message-circle', 'yatra-trip-section-title-icon', $tab->label ?? 'Testimonials'); ?>
15 + <?php yatra_render_tab_icon($tab->icon ?? null, 'message-circle', 'yatra-trip-section-title-icon', $tab->label ?? __('Testimonials', 'yatra')); ?>
16 16 <?php echo esc_html($tab->label); ?>
17 17 </h2>
18 18
19 19 <div class="yatra-testimonials-content">
@@ -40,9 +40,9 @@
40 40 <div class="yatra-testimonial-author">
41 41 <div class="yatra-testimonial-avatar">
42 42 <?php
43 43 // Use default avatar or initials
44 - $author_name = !empty($testimonial->author_name) ? $testimonial->author_name : 'Anonymous';
44 + $author_name = !empty($testimonial->author_name) ? $testimonial->author_name : __('Anonymous', 'yatra');
45 45 $initials = implode('', array_map(function($word) { return strtoupper(substr($word, 0, 1)); }, explode(' ', $author_name)));
46 46 echo esc_html(substr($initials, 0, 2));
47 47 ?>
48 48 </div>
@@ -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 ?>