| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
| 6 | 6 | // Simple Traveler Input for Regular Pricing (NO DROPDOWN) |
| 7 | -// Expected variables: $input_id, $input_name, $value, $min, $max, $range_text | |
| 7 | +// Expected variables: $input_id, $input_name, $value, $min, $max | |
| 8 | 8 | ?> |
| 9 | 9 | <div class="yatra-booking-travelers-simple"> |
| 10 | 10 | <div class="yatra-booking-field-icon"> |
| 11 | 11 | <?php echo yatra_svg_icon('users', 'yatra-icon-sm'); ?> |
| @@ -30,8 +30,14 @@ | ||
| 30 | 30 | <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/> |
| 31 | 31 | </svg> |
| 32 | 32 | </button> |
| 33 | 33 | </div> |
| 34 | - <?php if (isset($range_text)): ?> | |
| 35 | - <span class="yatra-travelers-range"><?php echo esc_html($range_text); ?></span> | |
| 34 | + <?php if (isset($min, $max)): ?> | |
| 35 | + <span class="yatra-travelers-range"><?php | |
| 36 | + // Separate short labels so Loco/po files can translate "Min" / "Max" without a long combined msgid. | |
| 37 | + // Colons are literal (not part of the translatable strings). | |
| 38 | + echo esc_html( | |
| 39 | + __('Min', 'yatra') . ': ' . (int) $min . ', ' . __('Max', 'yatra') . ': ' . (int) $max | |
| 40 | + ); | |
| 41 | + ?></span> | |
| 36 | 42 | <?php endif; ?> |
| 37 | 43 | </div> |