| @@ -17,9 +17,11 @@ | ||
| 17 | 17 | <div class="yatra-quick-fact-content"> |
| 18 | 18 | <div class="yatra-quick-fact-label"><?php echo esc_html__('Duration', 'yatra'); ?></div> |
| 19 | 19 | <div class="yatra-quick-fact-value"> |
| 20 | 20 | <?php |
| 21 | - if ($trip->getTripType() === 'single_day') { | |
| 21 | + if ($trip->isHoursBased()) { | |
| 22 | + echo esc_html(yatra_format_duration(0, null, $trip->getDurationHours())); | |
| 23 | + } elseif ($trip->getTripType() === 'single_day') { | |
| 22 | 24 | echo esc_html__('Day Trip', 'yatra'); |
| 23 | 25 | } else { |
| 24 | 26 | echo esc_html(yatra_format_duration($trip->getDurationDays(), $trip->getDurationNights())); |
| 25 | 27 | } |
| @@ -58,11 +60,12 @@ | ||
| 58 | 60 | </div> |
| 59 | 61 | <div class="yatra-quick-fact-content"> |
| 60 | 62 | <div class="yatra-quick-fact-label"><?php echo esc_html__('Landmarks', 'yatra'); ?></div> |
| 61 | 63 | <div class="yatra-quick-fact-value"> |
| 62 | - <?php | |
| 64 | + <?php | |
| 63 | 65 | $landmark_count = count($landmarks); |
| 64 | - echo esc_html(sprintf(_n('%d landmark', '%d landmarks', $landmark_count, 'yatra'), $landmark_count)); | |
| 66 | + /* translators: %d: number of landmarks. */ | |
| 67 | + echo esc_html(sprintf(_n('%d landmark', '%d landmarks', $landmark_count, 'yatra'), $landmark_count)); | |
| 65 | 68 | ?> |
| 66 | 69 | </div> |
| 67 | 70 | </div> |
| 68 | 71 | </div> |
| @@ -76,12 +79,13 @@ | ||
| 76 | 79 | </div> |
| 77 | 80 | <div class="yatra-quick-fact-content"> |
| 78 | 81 | <div class="yatra-quick-fact-label"><?php echo esc_html__('Group Size', 'yatra'); ?></div> |
| 79 | 82 | <div class="yatra-quick-fact-value"> |
| 80 | - <?php | |
| 83 | + <?php | |
| 81 | 84 | $min_travelers = $trip->getMinTravelers(); |
| 82 | 85 | $max_travelers = $trip->getMaxTravelers(); |
| 83 | - echo esc_html(sprintf(__('%d-%d travelers', 'yatra'), $min_travelers, $max_travelers)); | |
| 86 | + /* translators: 1: minimum travelers, 2: maximum travelers. */ | |
| 87 | + echo esc_html(sprintf(__('%1$d-%2$d travelers', 'yatra'), $min_travelers, $max_travelers)); | |
| 84 | 88 | ?> |
| 85 | 89 | </div> |
| 86 | 90 | </div> |
| 87 | 91 | </div> |