From 583a5c93f79ce0c521d1f0a1a4a0cc2e90e19415 Mon Sep 17 00:00:00 2001 From: Baptiste Leduc Date: Fri, 17 May 2024 11:23:38 +0200 Subject: [PATCH] Better translation for full transport on search command --- app/translations/messages+intl-icu.en.php | 5 ++++- app/translations/messages+intl-icu.fr.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/translations/messages+intl-icu.en.php b/app/translations/messages+intl-icu.en.php index 7c560fe..3d35676 100644 --- a/app/translations/messages+intl-icu.en.php +++ b/app/translations/messages+intl-icu.en.php @@ -130,7 +130,10 @@ 'row' => '- [`{transport_id}`] {direction} {postal_code} leaving at {hour} on {date} - {seats_remaining}/{seats_total} passenger seats available', 'row_driver' => '(you are driving this transport)', 'empty' => 'No transport found.', - 'full_transports' => 'And {count} full transports.', + 'full_transports' => '{count, plural, + =1 {And 1 full transport.} + other {And # full transports.} + }', ], 'status' => [ 'description' => 'List the transport(s) you’ve created or joined', diff --git a/app/translations/messages+intl-icu.fr.php b/app/translations/messages+intl-icu.fr.php index a8d3115..82a4075 100644 --- a/app/translations/messages+intl-icu.fr.php +++ b/app/translations/messages+intl-icu.fr.php @@ -130,7 +130,10 @@ 'row' => '- [`{transport_id}`] {direction} {postal_code} part à {hour} le {date} - {seats_remaining}/{seats_total} places disponibles', 'row_driver' => '(vous conduisez ce transport)', 'empty' => 'Aucun transport trouvé.', - 'full_transports' => 'Et {count} transport(s) complet(s).', + 'full_transports' => '{count, plural, + =1 {Et 1 transport complet.} + other {Et # transports complets.} + }', ], 'status' => [ 'description' => 'Liste des transports que vous avez créés ou rejoints',