PluginProbe
Yatra – Travel Booking & Tour Operator Software / trunk
Yatra – Travel Booking & Tour Operator Software vtrunk
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 2.0.1 2.0.10 2.0.11 All 82 releases
← All changes | app/Controllers/DiscountController.php +2 -2 3.0.6trunk View file →
@@ -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 {