| @@ -373,10 +373,10 @@ | ||
| 373 | 373 | /* translators: %s: discount percentage */ |
| 374 | 374 | return sprintf(__('%s%% off', 'yatra'), $this->formatDiscountNumberForDisplay($amount)); |
| 375 | 375 | } |
| 376 | 376 | |
| 377 | - /* translators: %s: discount amount */ | |
| 378 | - return sprintf(__('%s off', 'yatra'), '$' . number_format($amount, 2)); | |
| 377 | + /* translators: %s: discount amount, already formatted with the site currency */ | |
| 378 | + return sprintf(__('%s off', 'yatra'), yatra_format_price((float) $amount, null, false)); | |
| 379 | 379 | } |
| 380 | 380 | |
| 381 | 381 | private function formatDiscountNumberForDisplay(float $amount): string |
| 382 | 382 | { |