From a6c889689420581b426b38d9cdc3ecdb040bf640 Mon Sep 17 00:00:00 2001 From: rlanvin Date: Sun, 4 Jul 2021 16:23:13 +0200 Subject: [PATCH] Update examples rules in review_translations script --- bin/review_translations.php | 71 +++++++++++++++++++++++-------------- src/i18n/fa.php | 6 +--- 2 files changed, 45 insertions(+), 32 deletions(-) diff --git a/bin/review_translations.php b/bin/review_translations.php index fb6cf36..a925b82 100644 --- a/bin/review_translations.php +++ b/bin/review_translations.php @@ -43,47 +43,64 @@ if ($args['locale']) { 'DTSTART' => '2015-06-01', 'COUNT' => 6 ), + array( + 'FREQ' => 'YEARLY', + 'COUNT' => 2, + 'BYDAY' => 'TU', + 'DTSTART' => date_create('1997-09-02 09:00') + ), + array( + 'FREQ' => 'YEARLY', + 'COUNT' => 2, + 'BYMONTH' => '1,5,8', + 'DTSTART' => date_create('1997-09-02 09:00') + ), + array( + 'FREQ' => 'YEARLY', + 'BYYEARDAY' => [1,42,-1], + 'DTSTART' => date_create('1997-09-02 09:00') + ), + array( + 'FREQ' => 'YEARLY', + 'BYWEEKNO' => '10,42', + 'DTSTART' => date_create('1997-09-02 09:00') + ), + array( + 'FREQ' => 'MONTHLY', + 'DTSTART' => date_create('1997-09-02 09:00') + ), array( 'FREQ' => 'MONTHLY', 'INTERVAL' => 3, - 'DTSTART' => date_create('1997-01-01') + 'BYMONTHDAY' => [5,10,-5,-1], + 'DTSTART' => date_create('1997-01-01'), + 'UNTIL' => date_create('1997-12-31') ), array( - 'FREQ' => 'YEARLY', + 'FREQ' => 'MONTHLY', + 'BYDAY' => '1MO,-1TU', + ), + array( + 'FREQ' => 'WEEKLY', 'COUNT' => 2, - 'BYDAY' => 'TU', 'DTSTART' => date_create('1997-09-02 09:00') ), array( - 'FREQ' => 'YEARLY', - 'COUNT' => 2, - 'BYDAY' => 'TU', - 'DTSTART' => date_create('1997-09-02 09:00') + 'FREQ' => 'WEEKLY', + 'INTERVAL' => 2 ), array( - 'FREQ' => 'YEARLY', + 'FREQ' => 'WEEKLY', + 'INTERVAL' => 3, + 'BYDAY' => 'MO,TU,FR', + 'BYSETPOS' => 1 + ), + array( + 'FREQ' => 'DAILY', 'COUNT' => 2, 'BYDAY' => 'TU,FR', 'DTSTART' => date_create('1997-09-02 09:00') ), - array( - 'FREQ' => 'YEARLY', - 'COUNT' => 1, - 'BYDAY' => 'TU', - 'DTSTART' => date_create('1997-09-02 09:00') - ), - array( - 'FREQ' => 'YEARLY', - 'COUNT' => 1, - 'BYDAY' => 'TU', - 'DTSTART' => date_create('1997-09-02 09:00') - ), - array( - 'FREQ' => 'YEARLY', - 'COUNT' => 1, - 'BYDAY' => 'TU', - 'DTSTART' => date_create('1997-09-02 09:00') - ), array( 'FREQ' => 'HOURLY', 'COUNT' => 1, @@ -101,7 +118,7 @@ if ($args['locale']) { array( 'FREQ' => 'MINUTELY', 'BYHOUR' => 21, - 'BYMINUTE' => 10, + 'BYMINUTE' => [0,10,20,30,40,50], ), array( 'FREQ' => 'SECONDLY', diff --git a/src/i18n/fa.php b/src/i18n/fa.php index b72bab0..41f6f91 100644 --- a/src/i18n/fa.php +++ b/src/i18n/fa.php @@ -1,11 +1,7 @@