https://it.michalczyk.pro/https://it.michalczyk.pro/favicon.ico?15431677302020-07-07T13:52:58ZIssue trackerIssue recurring - task #29: Localization monthly_dow_from_first etchttps://it.michalczyk.pro/issues/29?journal_id=972020-07-07T13:52:58Zcryptogopher
<ul><li><strong>Status</strong> changed from <i>new</i> to <i>feedback</i></li></ul><blockquote>
<p>I'm just putting together a german translation, but I can't get my head around mode_modifiers -> monthly_*_to_last</p>
</blockquote>
<p><code>monthly_*_to_last</code> is working like <code>monthly_*_from_first</code>, except all counting is from the other end of the month.</p>
Example: let's say that issue has start date set to 2020-07-07 (today):
<ul>
<li><code>monthly_day_from_first</code> will repeat this issue on every 7th day of month (August 7th, September 7th and so on);</li>
<li><code>monthly_day_to_last</code> will repeat this issue on every 25th to last day of the month as July has 31 days; 31st of July is last day of month, 30th July is 2nd to last day and so on; issue will then repeat on August 7th, but September 6th, as September is only 30 days long and we're counting days from the end of month;</li>
<li><code>monthly_dow_from_first</code> (dow stands for <em>day of week</em>) will repeat this issue on 1st Tuesday of month (as July 7th is indeed on Tuesday); issue will repeat on August 4th, September 1st and so on;</li>
<li><code>monthly_dow_to_last</code> is like above, except - again - counted from the end of month; so it will repeat on 4th to last Tuesday of month (last Tuesday of month is on July 28th, second to last Tuesday of month is on July 21st and so on); next recurrences will be on August 4th and September 8th;</li>
<li>similar reasoning goes for <code>monthly_wday_from_first</code> and <code>monthly_wday_to_last</code>, except as a distance from beginning/end of month only working days are counted</li>
</ul>
<blockquote>
<p>For example, what exactly means "on 5th to last Monday"</p>
</blockquote>
<p>According to the rules described above it means "5th Monday in the month, when seeking from the end of month". Actually July 2020 does not have 5 Mondays, but in August 2020 it would be August 3rd.</p>
<blockquote>
<p>I think that's the last monday of a month, or is it the last monday of a month -5 days? Something else?</p>
</blockquote>
<p>In other words it's "the last Monday of the month -4 Mondays".</p>
<p>If you can read Ruby there is at least one test devoted to each modifier in <em>test/integration/issue_recurrences_test.rb</em>, e.g. <code>monthly_dow_to_last</code> is checked in <code>test_renew_anchor_mode_fixed_mode_monthly_dow_to_last</code></p>
<p>Of course you're welcome to ask questions here :)</p>
<p>Regarding German translation I noticed, that one of the forks contains some translated strings: <a class="external" href="https://github.com/cryptogopher/issue_recurring/compare/master...OliverFriedrich:master">https://github.com/cryptogopher/issue_recurring/compare/master...OliverFriedrich:master</a> Maybe they can be of any help to you. I've sent message to the author previously asking if he wants to complete translations according to the newest plugin version so I can pull them, but received no reply.</p>
<p>Please let me know if everything is clear now regarding the meaning of modifiers.</p> Issue recurring - task #29: Localization monthly_dow_from_first etchttps://it.michalczyk.pro/issues/29?journal_id=1022020-10-01T14:06:07Zcryptogopher
<ul><li><strong>Status</strong> changed from <i>feedback</i> to <i>closed</i></li></ul> Issue recurring - task #29: Localization monthly_dow_from_first etchttps://it.michalczyk.pro/issues/29?journal_id=1722023-06-08T13:30:34Zadmin
<ul><li><strong>Tracker</strong> changed from <i>3</i> to <i>task</i></li></ul>