mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #56539 from nextcloud/backport/56486/stable32
Some checks failed
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Integration sqlite / changes (push) Waiting to run
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, --tags ~@large files_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, capabilities_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, collaboration_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, comments_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, dav_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, federation_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, file_conversions) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, filesdrop_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, ldap_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, openldap_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, openldap_numerical_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, remoteapi_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, routing_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, setup_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, sharees_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, sharing_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, theming_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, videoverification_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite-summary (push) Blocked by required conditions
Psalm static code analysis / static-code-analysis (push) Has been cancelled
Psalm static code analysis / static-code-analysis-security (push) Has been cancelled
Psalm static code analysis / static-code-analysis-ocp (push) Has been cancelled
Psalm static code analysis / static-code-analysis-ncu (push) Has been cancelled
Some checks failed
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Integration sqlite / changes (push) Waiting to run
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, --tags ~@large files_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, capabilities_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, collaboration_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, comments_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, dav_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, federation_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, file_conversions) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, filesdrop_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, ldap_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, openldap_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, openldap_numerical_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, remoteapi_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, routing_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, setup_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, sharees_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, sharing_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, theming_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable32, 8.1, stable32, videoverification_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite-summary (push) Blocked by required conditions
Psalm static code analysis / static-code-analysis (push) Has been cancelled
Psalm static code analysis / static-code-analysis-security (push) Has been cancelled
Psalm static code analysis / static-code-analysis-ocp (push) Has been cancelled
Psalm static code analysis / static-code-analysis-ncu (push) Has been cancelled
[stable32] fix(i18n): Corrected plural for multi plural languages
This commit is contained in:
commit
b797d10465
2 changed files with 137 additions and 137 deletions
|
|
@ -234,8 +234,8 @@ class IMipService {
|
|||
// TRANSLATORS
|
||||
// Indicates when a calendar event will happen, shown on invitation emails
|
||||
// Output produced in order:
|
||||
// In a minute/hour/day/week/month/year on July 1, 2024 for the entire day
|
||||
// In a minute/hour/day/week/month/year on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)
|
||||
// In 1 minute/hour/day/week/month/year on July 1, 2024 for the entire day
|
||||
// In 1 minute/hour/day/week/month/year on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)
|
||||
// In 2 minutes/hours/days/weeks/months/years on July 1, 2024 for the entire day
|
||||
// In 2 minutes/hours/days/weeks/months/years on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)
|
||||
return match ([$occurring['scale'], $endTime !== null]) {
|
||||
|
|
@ -244,37 +244,37 @@ class IMipService {
|
|||
[$startDate]
|
||||
),
|
||||
['minute', false] => $this->l10n->n(
|
||||
'In a minute on %1$s for the entire day',
|
||||
'In %n minute on %1$s for the entire day',
|
||||
'In %n minutes on %1$s for the entire day',
|
||||
$occurring['interval'],
|
||||
[$startDate]
|
||||
),
|
||||
['hour', false] => $this->l10n->n(
|
||||
'In a hour on %1$s for the entire day',
|
||||
'In %n hour on %1$s for the entire day',
|
||||
'In %n hours on %1$s for the entire day',
|
||||
$occurring['interval'],
|
||||
[$startDate]
|
||||
),
|
||||
['day', false] => $this->l10n->n(
|
||||
'In a day on %1$s for the entire day',
|
||||
'In %n day on %1$s for the entire day',
|
||||
'In %n days on %1$s for the entire day',
|
||||
$occurring['interval'],
|
||||
[$startDate]
|
||||
),
|
||||
['week', false] => $this->l10n->n(
|
||||
'In a week on %1$s for the entire day',
|
||||
'In %n week on %1$s for the entire day',
|
||||
'In %n weeks on %1$s for the entire day',
|
||||
$occurring['interval'],
|
||||
[$startDate]
|
||||
),
|
||||
['month', false] => $this->l10n->n(
|
||||
'In a month on %1$s for the entire day',
|
||||
'In %n month on %1$s for the entire day',
|
||||
'In %n months on %1$s for the entire day',
|
||||
$occurring['interval'],
|
||||
[$startDate]
|
||||
),
|
||||
['year', false] => $this->l10n->n(
|
||||
'In a year on %1$s for the entire day',
|
||||
'In %n year on %1$s for the entire day',
|
||||
'In %n years on %1$s for the entire day',
|
||||
$occurring['interval'],
|
||||
[$startDate]
|
||||
|
|
@ -284,37 +284,37 @@ class IMipService {
|
|||
[$startDate, $startTime, $endTime]
|
||||
),
|
||||
['minute', true] => $this->l10n->n(
|
||||
'In a minute on %1$s between %2$s - %3$s',
|
||||
'In %n minute on %1$s between %2$s - %3$s',
|
||||
'In %n minutes on %1$s between %2$s - %3$s',
|
||||
$occurring['interval'],
|
||||
[$startDate, $startTime, $endTime]
|
||||
),
|
||||
['hour', true] => $this->l10n->n(
|
||||
'In a hour on %1$s between %2$s - %3$s',
|
||||
'In %n hour on %1$s between %2$s - %3$s',
|
||||
'In %n hours on %1$s between %2$s - %3$s',
|
||||
$occurring['interval'],
|
||||
[$startDate, $startTime, $endTime]
|
||||
),
|
||||
['day', true] => $this->l10n->n(
|
||||
'In a day on %1$s between %2$s - %3$s',
|
||||
'In %n day on %1$s between %2$s - %3$s',
|
||||
'In %n days on %1$s between %2$s - %3$s',
|
||||
$occurring['interval'],
|
||||
[$startDate, $startTime, $endTime]
|
||||
),
|
||||
['week', true] => $this->l10n->n(
|
||||
'In a week on %1$s between %2$s - %3$s',
|
||||
'In %n week on %1$s between %2$s - %3$s',
|
||||
'In %n weeks on %1$s between %2$s - %3$s',
|
||||
$occurring['interval'],
|
||||
[$startDate, $startTime, $endTime]
|
||||
),
|
||||
['month', true] => $this->l10n->n(
|
||||
'In a month on %1$s between %2$s - %3$s',
|
||||
'In %n month on %1$s between %2$s - %3$s',
|
||||
'In %n months on %1$s between %2$s - %3$s',
|
||||
$occurring['interval'],
|
||||
[$startDate, $startTime, $endTime]
|
||||
),
|
||||
['year', true] => $this->l10n->n(
|
||||
'In a year on %1$s between %2$s - %3$s',
|
||||
'In %n year on %1$s between %2$s - %3$s',
|
||||
'In %n years on %1$s between %2$s - %3$s',
|
||||
$occurring['interval'],
|
||||
[$startDate, $startTime, $endTime]
|
||||
|
|
@ -652,9 +652,9 @@ class IMipService {
|
|||
// TRANSLATORS
|
||||
// Indicates when a calendar event will happen, shown on invitation emails
|
||||
// Output produced in order:
|
||||
// In a minute/hour/day/week/month/year on July 1, 2024
|
||||
// In a minute/hour/day/week/month/year on July 1, 2024 then on July 3, 2024
|
||||
// In a minute/hour/day/week/month/year on July 1, 2024 then on July 3, 2024 and July 5, 2024
|
||||
// In 1 minute/hour/day/week/month/year on July 1, 2024
|
||||
// In 1 minute/hour/day/week/month/year on July 1, 2024 then on July 3, 2024
|
||||
// In 1 minute/hour/day/week/month/year on July 1, 2024 then on July 3, 2024 and July 5, 2024
|
||||
// In 2 minutes/hours/days/weeks/months/years on July 1, 2024
|
||||
// In 2 minutes/hours/days/weeks/months/years on July 1, 2024 then on July 3, 2024
|
||||
// In 2 minutes/hours/days/weeks/months/years on July 1, 2024 then on July 3, 2024 and July 5, 2024
|
||||
|
|
@ -664,37 +664,37 @@ class IMipService {
|
|||
[$occurrence]
|
||||
),
|
||||
['minute', false, false] => $this->l10n->n(
|
||||
'In a minute on %1$s',
|
||||
'In %n minute on %1$s',
|
||||
'In %n minutes on %1$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence]
|
||||
),
|
||||
['hour', false, false] => $this->l10n->n(
|
||||
'In a hour on %1$s',
|
||||
'In %n hour on %1$s',
|
||||
'In %n hours on %1$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence]
|
||||
),
|
||||
['day', false, false] => $this->l10n->n(
|
||||
'In a day on %1$s',
|
||||
'In %n day on %1$s',
|
||||
'In %n days on %1$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence]
|
||||
),
|
||||
['week', false, false] => $this->l10n->n(
|
||||
'In a week on %1$s',
|
||||
'In %n week on %1$s',
|
||||
'In %n weeks on %1$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence]
|
||||
),
|
||||
['month', false, false] => $this->l10n->n(
|
||||
'In a month on %1$s',
|
||||
'In %n month on %1$s',
|
||||
'In %n months on %1$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence]
|
||||
),
|
||||
['year', false, false] => $this->l10n->n(
|
||||
'In a year on %1$s',
|
||||
'In %n year on %1$s',
|
||||
'In %n years on %1$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence]
|
||||
|
|
@ -704,37 +704,37 @@ class IMipService {
|
|||
[$occurrence, $occurrence2]
|
||||
),
|
||||
['minute', true, false] => $this->l10n->n(
|
||||
'In a minute on %1$s then on %2$s',
|
||||
'In %n minute on %1$s then on %2$s',
|
||||
'In %n minutes on %1$s then on %2$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence, $occurrence2]
|
||||
),
|
||||
['hour', true, false] => $this->l10n->n(
|
||||
'In a hour on %1$s then on %2$s',
|
||||
'In %n hour on %1$s then on %2$s',
|
||||
'In %n hours on %1$s then on %2$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence, $occurrence2]
|
||||
),
|
||||
['day', true, false] => $this->l10n->n(
|
||||
'In a day on %1$s then on %2$s',
|
||||
'In %n day on %1$s then on %2$s',
|
||||
'In %n days on %1$s then on %2$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence, $occurrence2]
|
||||
),
|
||||
['week', true, false] => $this->l10n->n(
|
||||
'In a week on %1$s then on %2$s',
|
||||
'In %n week on %1$s then on %2$s',
|
||||
'In %n weeks on %1$s then on %2$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence, $occurrence2]
|
||||
),
|
||||
['month', true, false] => $this->l10n->n(
|
||||
'In a month on %1$s then on %2$s',
|
||||
'In %n month on %1$s then on %2$s',
|
||||
'In %n months on %1$s then on %2$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence, $occurrence2]
|
||||
),
|
||||
['year', true, false] => $this->l10n->n(
|
||||
'In a year on %1$s then on %2$s',
|
||||
'In %n year on %1$s then on %2$s',
|
||||
'In %n years on %1$s then on %2$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence, $occurrence2]
|
||||
|
|
@ -744,37 +744,37 @@ class IMipService {
|
|||
[$occurrence, $occurrence2, $occurrence3]
|
||||
),
|
||||
['minute', true, true] => $this->l10n->n(
|
||||
'In a minute on %1$s then on %2$s and %3$s',
|
||||
'In %n minute on %1$s then on %2$s and %3$s',
|
||||
'In %n minutes on %1$s then on %2$s and %3$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence, $occurrence2, $occurrence3]
|
||||
),
|
||||
['hour', true, true] => $this->l10n->n(
|
||||
'In a hour on %1$s then on %2$s and %3$s',
|
||||
'In %n hour on %1$s then on %2$s and %3$s',
|
||||
'In %n hours on %1$s then on %2$s and %3$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence, $occurrence2, $occurrence3]
|
||||
),
|
||||
['day', true, true] => $this->l10n->n(
|
||||
'In a day on %1$s then on %2$s and %3$s',
|
||||
'In %n day on %1$s then on %2$s and %3$s',
|
||||
'In %n days on %1$s then on %2$s and %3$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence, $occurrence2, $occurrence3]
|
||||
),
|
||||
['week', true, true] => $this->l10n->n(
|
||||
'In a week on %1$s then on %2$s and %3$s',
|
||||
'In %n week on %1$s then on %2$s and %3$s',
|
||||
'In %n weeks on %1$s then on %2$s and %3$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence, $occurrence2, $occurrence3]
|
||||
),
|
||||
['month', true, true] => $this->l10n->n(
|
||||
'In a month on %1$s then on %2$s and %3$s',
|
||||
'In %n month on %1$s then on %2$s and %3$s',
|
||||
'In %n months on %1$s then on %2$s and %3$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence, $occurrence2, $occurrence3]
|
||||
),
|
||||
['year', true, true] => $this->l10n->n(
|
||||
'In a year on %1$s then on %2$s and %3$s',
|
||||
'In %n year on %1$s then on %2$s and %3$s',
|
||||
'In %n years on %1$s then on %2$s and %3$s',
|
||||
$occurrenceIn['interval'],
|
||||
[$occurrence, $occurrence2, $occurrence3]
|
||||
|
|
|
|||
|
|
@ -167,11 +167,11 @@ class IMipServiceTest extends TestCase {
|
|||
);
|
||||
$this->l10n->method('n')->willReturnMap([
|
||||
[
|
||||
'In a day on %1$s between %2$s - %3$s',
|
||||
'In %n day on %1$s between %2$s - %3$s',
|
||||
'In %n days on %1$s between %2$s - %3$s',
|
||||
1,
|
||||
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
||||
'In a day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
'In 1 day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
]
|
||||
]);
|
||||
// construct time factory return(s)
|
||||
|
|
@ -215,11 +215,11 @@ class IMipServiceTest extends TestCase {
|
|||
);
|
||||
$this->l10n->method('n')->willReturnMap([
|
||||
[
|
||||
'In a day on %1$s between %2$s - %3$s',
|
||||
'In %n day on %1$s between %2$s - %3$s',
|
||||
'In %n days on %1$s between %2$s - %3$s',
|
||||
1,
|
||||
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
||||
'In a day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
'In 1 day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
]
|
||||
]);
|
||||
// construct time factory return(s)
|
||||
|
|
@ -360,85 +360,85 @@ class IMipServiceTest extends TestCase {
|
|||
$this->l10n->method('n')->willReturnMap([
|
||||
// singular entire day
|
||||
[
|
||||
'In a minute on %1$s for the entire day',
|
||||
'In %n minute on %1$s for the entire day',
|
||||
'In %n minutes on %1$s for the entire day',
|
||||
1,
|
||||
['July 1, 2024'],
|
||||
'In a minute on July 1, 2024 for the entire day'
|
||||
'In 1 minute on July 1, 2024 for the entire day'
|
||||
],
|
||||
[
|
||||
'In a hour on %1$s for the entire day',
|
||||
'In %n hour on %1$s for the entire day',
|
||||
'In %n hours on %1$s for the entire day',
|
||||
1,
|
||||
['July 1, 2024'],
|
||||
'In a hour on July 1, 2024 for the entire day'
|
||||
'In 1 hour on July 1, 2024 for the entire day'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s for the entire day',
|
||||
'In %n day on %1$s for the entire day',
|
||||
'In %n days on %1$s for the entire day',
|
||||
1,
|
||||
['July 1, 2024'],
|
||||
'In a day on July 1, 2024 for the entire day'
|
||||
'In 1 day on July 1, 2024 for the entire day'
|
||||
],
|
||||
[
|
||||
'In a week on %1$s for the entire day',
|
||||
'In %n week on %1$s for the entire day',
|
||||
'In %n weeks on %1$s for the entire day',
|
||||
1,
|
||||
['July 1, 2024'],
|
||||
'In a week on July 1, 2024 for the entire day'
|
||||
'In 1 week on July 1, 2024 for the entire day'
|
||||
],
|
||||
[
|
||||
'In a month on %1$s for the entire day',
|
||||
'In %n month on %1$s for the entire day',
|
||||
'In %n months on %1$s for the entire day',
|
||||
1,
|
||||
['July 1, 2024'],
|
||||
'In a month on July 1, 2024 for the entire day'
|
||||
'In 1 month on July 1, 2024 for the entire day'
|
||||
],
|
||||
[
|
||||
'In a year on %1$s for the entire day',
|
||||
'In %n year on %1$s for the entire day',
|
||||
'In %n years on %1$s for the entire day',
|
||||
1,
|
||||
['July 1, 2024'],
|
||||
'In a year on July 1, 2024 for the entire day'
|
||||
'In 1 year on July 1, 2024 for the entire day'
|
||||
],
|
||||
// plural entire day
|
||||
[
|
||||
'In a minute on %1$s for the entire day',
|
||||
'In %n minute on %1$s for the entire day',
|
||||
'In %n minutes on %1$s for the entire day',
|
||||
2,
|
||||
['July 1, 2024'],
|
||||
'In 2 minutes on July 1, 2024 for the entire day'
|
||||
],
|
||||
[
|
||||
'In a hour on %1$s for the entire day',
|
||||
'In %n hour on %1$s for the entire day',
|
||||
'In %n hours on %1$s for the entire day',
|
||||
2,
|
||||
['July 1, 2024'],
|
||||
'In 2 hours on July 1, 2024 for the entire day'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s for the entire day',
|
||||
'In %n day on %1$s for the entire day',
|
||||
'In %n days on %1$s for the entire day',
|
||||
2,
|
||||
['July 1, 2024'],
|
||||
'In 2 days on July 1, 2024 for the entire day'
|
||||
],
|
||||
[
|
||||
'In a week on %1$s for the entire day',
|
||||
'In %n week on %1$s for the entire day',
|
||||
'In %n weeks on %1$s for the entire day',
|
||||
2,
|
||||
['July 1, 2024'],
|
||||
'In 2 weeks on July 1, 2024 for the entire day'
|
||||
],
|
||||
[
|
||||
'In a month on %1$s for the entire day',
|
||||
'In %n month on %1$s for the entire day',
|
||||
'In %n months on %1$s for the entire day',
|
||||
2,
|
||||
['July 1, 2024'],
|
||||
'In 2 months on July 1, 2024 for the entire day'
|
||||
],
|
||||
[
|
||||
'In a year on %1$s for the entire day',
|
||||
'In %n year on %1$s for the entire day',
|
||||
'In %n years on %1$s for the entire day',
|
||||
2,
|
||||
['July 1, 2024'],
|
||||
|
|
@ -446,85 +446,85 @@ class IMipServiceTest extends TestCase {
|
|||
],
|
||||
// singular partial day
|
||||
[
|
||||
'In a minute on %1$s between %2$s - %3$s',
|
||||
'In %n minute on %1$s between %2$s - %3$s',
|
||||
'In %n minutes on %1$s between %2$s - %3$s',
|
||||
1,
|
||||
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
||||
'In a minute on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
'In 1 minute on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
],
|
||||
[
|
||||
'In a hour on %1$s between %2$s - %3$s',
|
||||
'In %n hour on %1$s between %2$s - %3$s',
|
||||
'In %n hours on %1$s between %2$s - %3$s',
|
||||
1,
|
||||
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
||||
'In a hour on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
'In 1 hour on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s between %2$s - %3$s',
|
||||
'In %n day on %1$s between %2$s - %3$s',
|
||||
'In %n days on %1$s between %2$s - %3$s',
|
||||
1,
|
||||
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
||||
'In a day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
'In 1 day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
],
|
||||
[
|
||||
'In a week on %1$s between %2$s - %3$s',
|
||||
'In %n week on %1$s between %2$s - %3$s',
|
||||
'In %n weeks on %1$s between %2$s - %3$s',
|
||||
1,
|
||||
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
||||
'In a week on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
'In 1 week on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
],
|
||||
[
|
||||
'In a month on %1$s between %2$s - %3$s',
|
||||
'In %n month on %1$s between %2$s - %3$s',
|
||||
'In %n months on %1$s between %2$s - %3$s',
|
||||
1,
|
||||
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
||||
'In a month on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
'In 1 month on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
],
|
||||
[
|
||||
'In a year on %1$s between %2$s - %3$s',
|
||||
'In %n year on %1$s between %2$s - %3$s',
|
||||
'In %n years on %1$s between %2$s - %3$s',
|
||||
1,
|
||||
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
||||
'In a year on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
'In 1 year on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
],
|
||||
// plural partial day
|
||||
[
|
||||
'In a minute on %1$s between %2$s - %3$s',
|
||||
'In %n minute on %1$s between %2$s - %3$s',
|
||||
'In %n minutes on %1$s between %2$s - %3$s',
|
||||
2,
|
||||
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
||||
'In 2 minutes on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
],
|
||||
[
|
||||
'In a hour on %1$s between %2$s - %3$s',
|
||||
'In %n hour on %1$s between %2$s - %3$s',
|
||||
'In %n hours on %1$s between %2$s - %3$s',
|
||||
2,
|
||||
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
||||
'In 2 hours on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s between %2$s - %3$s',
|
||||
'In %n day on %1$s between %2$s - %3$s',
|
||||
'In %n days on %1$s between %2$s - %3$s',
|
||||
2,
|
||||
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
||||
'In 2 days on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
],
|
||||
[
|
||||
'In a week on %1$s between %2$s - %3$s',
|
||||
'In %n week on %1$s between %2$s - %3$s',
|
||||
'In %n weeks on %1$s between %2$s - %3$s',
|
||||
2,
|
||||
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
||||
'In 2 weeks on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
],
|
||||
[
|
||||
'In a month on %1$s between %2$s - %3$s',
|
||||
'In %n month on %1$s between %2$s - %3$s',
|
||||
'In %n months on %1$s between %2$s - %3$s',
|
||||
2,
|
||||
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
||||
'In 2 months on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
||||
],
|
||||
[
|
||||
'In a year on %1$s between %2$s - %3$s',
|
||||
'In %n year on %1$s between %2$s - %3$s',
|
||||
'In %n years on %1$s between %2$s - %3$s',
|
||||
2,
|
||||
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
||||
|
|
@ -607,7 +607,7 @@ class IMipServiceTest extends TestCase {
|
|||
$vCalendar = clone $this->vCalendar1a;
|
||||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
$this->assertEquals(
|
||||
'In a minute on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
||||
'In 1 minute on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
||||
$this->service->generateWhenString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -615,7 +615,7 @@ class IMipServiceTest extends TestCase {
|
|||
$vCalendar = clone $this->vCalendar2;
|
||||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
$this->assertEquals(
|
||||
'In a minute on July 1, 2024 for the entire day',
|
||||
'In 1 minute on July 1, 2024 for the entire day',
|
||||
$this->service->generateWhenString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -639,7 +639,7 @@ class IMipServiceTest extends TestCase {
|
|||
$vCalendar = clone $this->vCalendar1a;
|
||||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
$this->assertEquals(
|
||||
'In a hour on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
||||
'In 1 hour on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
||||
$this->service->generateWhenString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -647,7 +647,7 @@ class IMipServiceTest extends TestCase {
|
|||
$vCalendar = clone $this->vCalendar2;
|
||||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
$this->assertEquals(
|
||||
'In a hour on July 1, 2024 for the entire day',
|
||||
'In 1 hour on July 1, 2024 for the entire day',
|
||||
$this->service->generateWhenString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -673,7 +673,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
||||
'In 1 day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
||||
$this->service->generateWhenString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -683,7 +683,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024 for the entire day',
|
||||
'In 1 day on July 1, 2024 for the entire day',
|
||||
$this->service->generateWhenString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -713,7 +713,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a week on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
||||
'In 1 week on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
||||
$this->service->generateWhenString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -723,7 +723,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a week on July 1, 2024 for the entire day',
|
||||
'In 1 week on July 1, 2024 for the entire day',
|
||||
$this->service->generateWhenString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -753,7 +753,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a month on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
||||
'In 1 month on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
||||
$this->service->generateWhenString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -763,7 +763,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a month on July 1, 2024 for the entire day',
|
||||
'In 1 month on July 1, 2024 for the entire day',
|
||||
$this->service->generateWhenString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -793,7 +793,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a year on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
||||
'In 1 year on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
||||
$this->service->generateWhenString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -803,7 +803,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a year on July 1, 2024 for the entire day',
|
||||
'In 1 year on July 1, 2024 for the entire day',
|
||||
$this->service->generateWhenString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -1543,43 +1543,43 @@ class IMipServiceTest extends TestCase {
|
|||
$this->l10n->method('n')->willReturnMap([
|
||||
// singular
|
||||
[
|
||||
'In a day on %1$s',
|
||||
'In %n day on %1$s',
|
||||
'In %n days on %1$s',
|
||||
1,
|
||||
['July 1, 2024'],
|
||||
'In a day on July 1, 2024'
|
||||
'In 1 day on July 1, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s',
|
||||
'In %n day on %1$s then on %2$s',
|
||||
'In %n days on %1$s then on %2$s',
|
||||
1,
|
||||
['July 1, 2024', 'July 3, 2024'],
|
||||
'In a day on July 1, 2024 then on July 3, 2024'
|
||||
'In 1 day on July 1, 2024 then on July 3, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s and %3$s',
|
||||
'In %n day on %1$s then on %2$s and %3$s',
|
||||
'In %n days on %1$s then on %2$s and %3$s',
|
||||
1,
|
||||
['July 1, 2024', 'July 3, 2024', 'July 5, 2024'],
|
||||
'In a day on July 1, 2024 then on July 3, 2024 and July 5, 2024'
|
||||
'In 1 day on July 1, 2024 then on July 3, 2024 and July 5, 2024'
|
||||
],
|
||||
// plural
|
||||
[
|
||||
'In a day on %1$s',
|
||||
'In %n day on %1$s',
|
||||
'In %n days on %1$s',
|
||||
2,
|
||||
['July 1, 2024'],
|
||||
'In 2 days on July 1, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s',
|
||||
'In %n day on %1$s then on %2$s',
|
||||
'In %n days on %1$s then on %2$s',
|
||||
2,
|
||||
['July 1, 2024', 'July 3, 2024'],
|
||||
'In 2 days on July 1, 2024 then on July 3, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s and %3$s',
|
||||
'In %n day on %1$s then on %2$s and %3$s',
|
||||
'In %n days on %1$s then on %2$s and %3$s',
|
||||
2,
|
||||
['July 1, 2024', 'July 3, 2024', 'July 5, 2024'],
|
||||
|
|
@ -1610,7 +1610,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024',
|
||||
'In 1 day on July 1, 2024',
|
||||
$this->service->generateOccurringString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -1621,7 +1621,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024 then on July 3, 2024',
|
||||
'In 1 day on July 1, 2024 then on July 3, 2024',
|
||||
$this->service->generateOccurringString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -1632,7 +1632,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024 then on July 3, 2024 and July 5, 2024',
|
||||
'In 1 day on July 1, 2024 then on July 3, 2024 and July 5, 2024',
|
||||
$this->service->generateOccurringString($eventReader)
|
||||
);
|
||||
|
||||
|
|
@ -1685,43 +1685,43 @@ class IMipServiceTest extends TestCase {
|
|||
$this->l10n->method('n')->willReturnMap([
|
||||
// singular
|
||||
[
|
||||
'In a day on %1$s',
|
||||
'In %n day on %1$s',
|
||||
'In %n days on %1$s',
|
||||
1,
|
||||
['July 1, 2024'],
|
||||
'In a day on July 1, 2024'
|
||||
'In 1 day on July 1, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s',
|
||||
'In %n day on %1$s then on %2$s',
|
||||
'In %n days on %1$s then on %2$s',
|
||||
1,
|
||||
['July 1, 2024', 'July 3, 2024'],
|
||||
'In a day on July 1, 2024 then on July 3, 2024'
|
||||
'In 1 day on July 1, 2024 then on July 3, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s and %3$s',
|
||||
'In %n day on %1$s then on %2$s and %3$s',
|
||||
'In %n days on %1$s then on %2$s and %3$s',
|
||||
1,
|
||||
['July 1, 2024', 'July 3, 2024', 'July 5, 2024'],
|
||||
'In a day on July 1, 2024 then on July 3, 2024 and July 5, 2024'
|
||||
'In 1 day on July 1, 2024 then on July 3, 2024 and July 5, 2024'
|
||||
],
|
||||
// plural
|
||||
[
|
||||
'In a day on %1$s',
|
||||
'In %n day on %1$s',
|
||||
'In %n days on %1$s',
|
||||
2,
|
||||
['July 1, 2024'],
|
||||
'In 2 days on July 1, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s',
|
||||
'In %n day on %1$s then on %2$s',
|
||||
'In %n days on %1$s then on %2$s',
|
||||
2,
|
||||
['July 1, 2024', 'July 3, 2024'],
|
||||
'In 2 days on July 1, 2024 then on July 3, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s and %3$s',
|
||||
'In %n day on %1$s then on %2$s and %3$s',
|
||||
'In %n days on %1$s then on %2$s and %3$s',
|
||||
2,
|
||||
['July 1, 2024', 'July 3, 2024', 'July 5, 2024'],
|
||||
|
|
@ -1752,7 +1752,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024',
|
||||
'In 1 day on July 1, 2024',
|
||||
$this->service->generateOccurringString($eventReader),
|
||||
'test patrial day recurring event in 1 day with single occurrence remaining'
|
||||
);
|
||||
|
|
@ -1764,7 +1764,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024 then on July 3, 2024',
|
||||
'In 1 day on July 1, 2024 then on July 3, 2024',
|
||||
$this->service->generateOccurringString($eventReader),
|
||||
'test patrial day recurring event in 1 day with two occurrences remaining'
|
||||
);
|
||||
|
|
@ -1776,7 +1776,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024 then on July 3, 2024 and July 5, 2024',
|
||||
'In 1 day on July 1, 2024 then on July 3, 2024 and July 5, 2024',
|
||||
$this->service->generateOccurringString($eventReader),
|
||||
''
|
||||
);
|
||||
|
|
@ -1836,43 +1836,43 @@ class IMipServiceTest extends TestCase {
|
|||
$this->l10n->method('n')->willReturnMap([
|
||||
// singular
|
||||
[
|
||||
'In a day on %1$s',
|
||||
'In %n day on %1$s',
|
||||
'In %n days on %1$s',
|
||||
1,
|
||||
['July 1, 2024'],
|
||||
'In a day on July 1, 2024'
|
||||
'In 1 day on July 1, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s',
|
||||
'In %n day on %1$s then on %2$s',
|
||||
'In %n days on %1$s then on %2$s',
|
||||
1,
|
||||
['July 1, 2024', 'July 5, 2024'],
|
||||
'In a day on July 1, 2024 then on July 5, 2024'
|
||||
'In 1 day on July 1, 2024 then on July 5, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s and %3$s',
|
||||
'In %n day on %1$s then on %2$s and %3$s',
|
||||
'In %n days on %1$s then on %2$s and %3$s',
|
||||
1,
|
||||
['July 1, 2024', 'July 5, 2024', 'July 7, 2024'],
|
||||
'In a day on July 1, 2024 then on July 5, 2024 and July 7, 2024'
|
||||
'In 1 day on July 1, 2024 then on July 5, 2024 and July 7, 2024'
|
||||
],
|
||||
// plural
|
||||
[
|
||||
'In a day on %1$s',
|
||||
'In %n day on %1$s',
|
||||
'In %n days on %1$s',
|
||||
2,
|
||||
['July 1, 2024'],
|
||||
'In 2 days on July 1, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s',
|
||||
'In %n day on %1$s then on %2$s',
|
||||
'In %n days on %1$s then on %2$s',
|
||||
2,
|
||||
['July 1, 2024', 'July 5, 2024'],
|
||||
'In 2 days on July 1, 2024 then on July 5, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s and %3$s',
|
||||
'In %n day on %1$s then on %2$s and %3$s',
|
||||
'In %n days on %1$s then on %2$s and %3$s',
|
||||
2,
|
||||
['July 1, 2024', 'July 5, 2024', 'July 7, 2024'],
|
||||
|
|
@ -1908,7 +1908,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024',
|
||||
'In 1 day on July 1, 2024',
|
||||
$this->service->generateOccurringString($eventReader),
|
||||
'test patrial day recurring event in 1 day with single occurrence remaining and one exception'
|
||||
);
|
||||
|
|
@ -1921,7 +1921,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024',
|
||||
'In 1 day on July 1, 2024',
|
||||
$this->service->generateOccurringString($eventReader),
|
||||
'test patrial day recurring event in 1 day with two occurrences remaining and one exception'
|
||||
);
|
||||
|
|
@ -1934,7 +1934,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024 then on July 5, 2024',
|
||||
'In 1 day on July 1, 2024 then on July 5, 2024',
|
||||
$this->service->generateOccurringString($eventReader),
|
||||
'test patrial day recurring event in 1 day with three occurrences remaining and one exception'
|
||||
);
|
||||
|
|
@ -1947,7 +1947,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024 then on July 5, 2024 and July 7, 2024',
|
||||
'In 1 day on July 1, 2024 then on July 5, 2024 and July 7, 2024',
|
||||
$this->service->generateOccurringString($eventReader),
|
||||
'test patrial day recurring event in 1 day with four occurrences remaining and one exception'
|
||||
);
|
||||
|
|
@ -2020,43 +2020,43 @@ class IMipServiceTest extends TestCase {
|
|||
$this->l10n->method('n')->willReturnMap([
|
||||
// singular
|
||||
[
|
||||
'In a day on %1$s',
|
||||
'In %n day on %1$s',
|
||||
'In %n days on %1$s',
|
||||
1,
|
||||
['July 1, 2024'],
|
||||
'In a day on July 1, 2024'
|
||||
'In 1 day on July 1, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s',
|
||||
'In %n day on %1$s then on %2$s',
|
||||
'In %n days on %1$s then on %2$s',
|
||||
1,
|
||||
['July 1, 2024', 'July 5, 2024'],
|
||||
'In a day on July 1, 2024 then on July 5, 2024'
|
||||
'In 1 day on July 1, 2024 then on July 5, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s and %3$s',
|
||||
'In %n day on %1$s then on %2$s and %3$s',
|
||||
'In %n days on %1$s then on %2$s and %3$s',
|
||||
1,
|
||||
['July 1, 2024', 'July 5, 2024', 'July 9, 2024'],
|
||||
'In a day on July 1, 2024 then on July 5, 2024 and July 9, 2024'
|
||||
'In 1 day on July 1, 2024 then on July 5, 2024 and July 9, 2024'
|
||||
],
|
||||
// plural
|
||||
[
|
||||
'In a day on %1$s',
|
||||
'In %n day on %1$s',
|
||||
'In %n days on %1$s',
|
||||
2,
|
||||
['July 1, 2024'],
|
||||
'In 2 days on July 1, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s',
|
||||
'In %n day on %1$s then on %2$s',
|
||||
'In %n days on %1$s then on %2$s',
|
||||
2,
|
||||
['July 1, 2024', 'July 5, 2024'],
|
||||
'In 2 days on July 1, 2024 then on July 5, 2024'
|
||||
],
|
||||
[
|
||||
'In a day on %1$s then on %2$s and %3$s',
|
||||
'In %n day on %1$s then on %2$s and %3$s',
|
||||
'In %n days on %1$s then on %2$s and %3$s',
|
||||
2,
|
||||
['July 1, 2024', 'July 5, 2024', 'July 9, 2024'],
|
||||
|
|
@ -2093,7 +2093,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024',
|
||||
'In 1 day on July 1, 2024',
|
||||
$this->service->generateOccurringString($eventReader),
|
||||
'test patrial day recurring event in 1 day with single occurrence remaining and two exception'
|
||||
);
|
||||
|
|
@ -2107,7 +2107,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024',
|
||||
'In 1 day on July 1, 2024',
|
||||
$this->service->generateOccurringString($eventReader),
|
||||
'test patrial day recurring event in 1 day with two occurrences remaining and two exception'
|
||||
);
|
||||
|
|
@ -2121,7 +2121,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024 then on July 5, 2024',
|
||||
'In 1 day on July 1, 2024 then on July 5, 2024',
|
||||
$this->service->generateOccurringString($eventReader),
|
||||
'test patrial day recurring event in 1 day with three occurrences remaining and two exception'
|
||||
);
|
||||
|
|
@ -2135,7 +2135,7 @@ class IMipServiceTest extends TestCase {
|
|||
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
||||
// test output
|
||||
$this->assertEquals(
|
||||
'In a day on July 1, 2024 then on July 5, 2024 and July 9, 2024',
|
||||
'In 1 day on July 1, 2024 then on July 5, 2024 and July 9, 2024',
|
||||
$this->service->generateOccurringString($eventReader),
|
||||
'test patrial day recurring event in 1 day with four occurrences remaining and two exception'
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue