From 06efafc3aed9fcc0699c85ef6db26b17bb8ab887 Mon Sep 17 00:00:00 2001 From: Nico Stapelbroek Date: Sun, 14 Jan 2018 22:32:50 +0100 Subject: [PATCH] Replace Inf with asterisk when using pluralization in translations Since Laravel 5.4 the "Inf" has been replaced with * @see https://laravel.com/docs/5.4/upgrade#upgrade-5.4.0 --- resources/lang/en/cachet.php | 6 +++--- resources/lang/en/dashboard.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/lang/en/cachet.php b/resources/lang/en/cachet.php index b9ceea07..0c45fe00 100644 --- a/resources/lang/en/cachet.php +++ b/resources/lang/en/cachet.php @@ -53,9 +53,9 @@ return [ // Service Status 'service' => [ - 'good' => '[0,1]System operational|[2,Inf] All systems are operational', - 'bad' => '[0,1]The system is experiencing issues|[2,Inf]Some systems are experiencing issues', - 'major' => '[0,1]The system is experiencing major issues|[2,Inf]Some systems are experiencing major issues', + 'good' => '[0,1]System operational|[2,*] All systems are operational', + 'bad' => '[0,1]The system is experiencing issues|[2,*]Some systems are experiencing issues', + 'major' => '[0,1]The system is experiencing major issues|[2,*]Some systems are experiencing major issues', ], 'api' => [ diff --git a/resources/lang/en/dashboard.php b/resources/lang/en/dashboard.php index a4894d3c..d99fbc61 100644 --- a/resources/lang/en/dashboard.php +++ b/resources/lang/en/dashboard.php @@ -18,7 +18,7 @@ return [ 'incidents' => [ 'title' => 'Incidents & Maintenance', 'incidents' => 'Incidents', - 'logged' => '{0} There are no incidents, good work.|[1] You have logged one incident.|[2, Inf] You have reported :count incidents.', + 'logged' => '{0} There are no incidents, good work.|[1] You have logged one incident.|[2,*] You have reported :count incidents.', 'incident-create-template' => 'Create Template', 'incident-templates' => 'Incident Templates', 'updates' => [ @@ -74,7 +74,7 @@ return [ // Incident Maintenance 'schedule' => [ 'schedule' => 'Maintenance', - 'logged' => '{0} There has been no Maintenance, good work.|[1] You have logged one schedule.|[2,Inf] You have reported :count schedules.', + 'logged' => '{0} There has been no Maintenance, good work.|[1] You have logged one schedule.|[2,*] You have reported :count schedules.', 'scheduled_at' => 'Scheduled at :timestamp', 'add' => [ 'title' => 'Add Maintenance',