From d029cfd97316440e8780a34f7f968f8cd723a06b Mon Sep 17 00:00:00 2001 From: Arno Welzel Date: Sun, 3 Nov 2024 16:00:42 +0100 Subject: [PATCH] Add "fifth" weekday ordinal and update WordPress compatibility. --- lang/timed-content-de_DE.mo | Bin 21365 -> 21585 bytes lang/timed-content-de_DE.po | 459 ++++++++++++++++--------------- lang/timed-content.pot | 452 +++++++++++++++--------------- lib/class-timedcontentplugin.php | 51 +++- readme.txt | 9 +- timed-content.php | 4 +- 6 files changed, 506 insertions(+), 469 deletions(-) diff --git a/lang/timed-content-de_DE.mo b/lang/timed-content-de_DE.mo index 4dc2ceb994f6c96ffdc56cb7edc46e0dd1f82080..676fcd01a93e6062c654937dfd80ba9b98f59daa 100644 GIT binary patch delta 3846 zcmYM$YjBj+9mnw#b0=AIAp{U4PnJL~BtQb85UYd`2%!W*xGJ^dk~}dBo6Tl-LjZ9W zwa}I-FUVL&z))t+D?J#tP^z!}joKBgrpL2Ph zbNQeD+2r^|&2taS-R=b*#gD!d8JT=*OKnfUn?lIEV0M;}9ma!?!6U<3+5;5!4Q{SQSN+ zk6L*->dafM-8h5#0o0M5Muq$>R76Iw6t5t2o4dB2H_4bX>Wd~3f9-fH4aadCYNxrA zy$R=Aw^*OGzK*}uthzs#=sP{`*wd#*z8y-SU{2A6^4ZG1e-KdHC zQOTJ&L?J@qRcyrq;_sk~B)Zv;3h~RxSmp!Uf7ABomUy``9r-a8d}x7da1r*S-utQb z3XfU(kRNk{56zRuDl>HdS5TNs!&=lec@~wOg?v1Wi&6bg;}duazlk|yS|x^XHolC! zYTiRVe+xBHF?Vr3ZbqgvFW^(?<4d4S4d0`n7tf$}GK!DjI7V;4W_$^s$1PY=<(>In zOs9SZwa|0cf1+||0jtWu)tHH!Fb4y;5qmMwNZ~yS(#PyNn>I|wPE5sZwjQzdxOF$C z(ZARF9c1n1AnFLtA;)a~fCSB?5*8i7Y}Ao&m`gykqn$Lc26NRukW5PJ!3xwj*;>>< zdoTr$qIUk8?LTF`hFVYxS4RuaLe=xElQ5H=6`^vcyq5Uufu>q7$yTE#a#7dhfUO_5 zj-UpYx zE=?kQsIzS4PG#ex$ajh9M78g;^@G-v=%f98bZ`{4IdU8onaik%euT;RC)AOAj#|haoP__zY+cBS z+?{(XMrGv+BoEDYR0NJ#kD)?6h)UKsP?7o6)^8z+Zi=|OdT$LXmo}jmxCgc1A0c^a zMpf7S&tB{`EXF(3dy(Te!Fuo797TPBjGz|yA8bMY67Rb{f@`S{V=GSJVAo(LDsn%= zGWB9~9Ca%N06iM5w2HwC-{0BaV|H3qUX0m1Ysi;%xJO#|u+YZJEP2dIgv$wWQ35Pi4=)xHKb@kR{k{y{m^@_f}qr>aVcYph8%OdcJA>&|%-g{Ebd)$PL6?C)^WvE1h^(Any1(gPrj% zztbNKg`C*-V8rR}3CFu)l}>+`8+CcebvgpOoM23EIZ-#_2I6jq(;3`BXRzCi6%YNk z=#iXcMj7(WS(@ydUsYXQHFusXm=nybh@TKKW$ks?1r6zTa87D zKwqqX_*hqndfD#2Zl}Qw#v(yC+5JUqL6w$l)d$6aTu8))x} zyWvXK7Gn>?=fj2RaY`oNP;ILLd>z2^(M10lBU b($&=yic^es6c5!etMg_2Z@htBZDaohh^Or- delta 3625 zcmYM$3rv+|9LMoL0tW$6Q4|%E6L%C9L{Ls)2xtXJsY#Tkf;)xfErBexot0u`_vmKg zveYi9%sQFNicH(et=7%9GOVS!G+2vTtEAia$9cBc;e4LwdEfWB{Gb2x!ly5V{q{mw z;G1C)PZ&R6@;jE_E{|$vZE^oQg5nP9x)j6&JdC>kV;qh>I0kL7*~O5Akywm+t_%~g z0w2P99AXx*UJ6w-gi#xY)kt4fhZ=abv&Fd`N7DWZ-i#k0AIl$V_5+sTK%5Y77K>9+ z1DBxMYcUDya2(^?ofLS++AtaS_g^sk2(^M9Y{g%2D{f(yiaC6$9WiyKGcfK zQTxDhAdE=*#4`l})y)JLE~TZARJ5DTykC*x=6!vTbC zJQiaLHef5>kDD-=@D0LU7|;q2PzcA@u>=pJR?vrhYyh*<%txd4yu^6}rc+;!+OnOf zkawUWau_r57&5kXyL#9tvn=Y_qlmv&JdcJwcs**RHaaw5nzPcm*0~LjbK4Qj$E{?Z zCf14B__eD?veBi~Q?MNUI2+qty;t$qg+iY8;s#WR+fbqFboK9?;TM^;(4LNW;9evx zEPY%k7p5U|vQkt87NL^cj~eGy)P#OV=4ieEnUP0f0aoHYNR;ezoPyn`q#EZnn}%7a zkS@jPcrWVtcTx3UaUSNd3Jn}UAAX4HCyG^R;CNJW268B@p-_xhV+VTiUnJ4Z%YG=t z`A8pj6MFGJ)b(~$uDp$D_#SG4=dlRmY1DI-&Xq`>+rwC^^S_G%W7%I=h{LRW)I znkA?tY(^#71E>z4L85POp|bxZD)cdADn&~}U9Uj4+ZvFMZRShk?8SjP|EDSB($I}M zCS#etvhx5I<5#Hbi8L<7D{v9Mj5+AZHk*X`sFl~F?%#?U=uMo8zaYa|CTDX4zKB_B zNabyy2dhvkX~G$}8%yyFK7|>Kwh%i}dp>4j=zURzn&>so$51)+2@b?_7>&KCH)S8z zU@Wr^lvAjuAYVl7O%H~nW)le!sCta64@M951ZNU5M@vD4z8cw0YeIr#+mPVeQPftS zM=fMfE&*XIYam{_;VEY)>J4@l)zMIv8-WEFg+A2vQs+w4gq}uC_*qxqFwa{qJvii#nP*8`3*o?)fy$WJx7{>~=hi5t5gYYNh-C=#G_A#6>)l;3N7)QMh zy|@~+;zv;9bf9wTAYO`rKPc#d0^SlDxC|BIIT(uzT)hsplI5s9Uhl5&L``fTYK3ng zFH1Xx8t?*Y>%uMx=|SBWi`hC5lPM^9uES((!O^$}HPAb#q&$n7=$|+RqnN&Oz=xWE z9~IKI7>>82wqzq}A`jpwY{mWwW2z418x)k4r;vQ>KTC>09%o7xp+Y?qm8=!0$lT%T zEl5J!YpDCbN99rvYJ%~cWli`}B>!x+t3Ri@&i@GtzoX}}&^!Jg)Uhcn3B5R$peFb@ z&cQ=C408r$(I>_bJal8shBw_+wf<2;HP)PKalJ__+=>?d|&0v45rLR5{3 z)EA;w)`$x628_VFP+7hO$6yp`URi&YTtczoHhEW808jv|Y1^e*uMWX{f~! zvqOJuRv}IHJTAaTk|5FO#Z5RK zJ=lTj{~!*+lbC^lA1J89!PTMjo$H*5>S&&G5o&-NQ8}_2n{hKP!waZ^7L$Rx&yR7q z3e~<5HSi`}fsY^uE?|FC&;vd)MwX$Hr;0CvU^{Ruo=08xkn(Z}YJ#J%1yk@^d+)ZhTT8TH&s49DBhqw~L>g7*9_)Lz|(6Y%l=8_bTl_V-Z(eumn^F6U_sqkayx z;vZ2f{=@mN(?bU9xj58#!!cUfpF}|+O~>KrL)}pAtU-ltF=_(0%n!E5O&=DV?wv6t zxN&kxcwGL(+`Ngoh2Ferz9~hm$EQ?9mHV5U8kaQ$lk!W3wbso_&RchEcf$(*DsNW3 ue|h7Y<^C0o>nQlWDgL#MP5zV|Z_0Wa`b*7?>n3GS3J#y`i)*c!-}fKe$(cd` diff --git a/lang/timed-content-de_DE.po b/lang/timed-content-de_DE.po index 10b45ab..d6a088a 100644 --- a/lang/timed-content-de_DE.po +++ b/lang/timed-content-de_DE.po @@ -5,9 +5,9 @@ msgstr "" "Project-Id-Version: Timed Content\n" "Report-Msgid-Bugs-To: http://wordpress.org/tag/timed-content\n" "POT-Creation-Date: 2019-07-06 22:06+0000\n" -"PO-Revision-Date: 2023-01-06 17:29+0000\n" +"PO-Revision-Date: 2024-11-03 14:53+0000\n" "Last-Translator: Arno Welzel \n" -"Language-Team: Deutsch\n" +"Language-Team: German\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -22,49 +22,49 @@ msgstr "" "Language: de_DE\n" "X-Loco-Version: 2.3.0; wp-5.2.3-alpha-45552" -#: lib/class-timed-content.php:1888 lib/class-timed-content.php:2202 +#: lib/class-timedcontentplugin.php:1874 lib/class-timedcontentplugin.php:2184 msgid "- No exceptions set -" msgstr "- keine Ausnahmen definiert -" -#: lib/class-timed-content.php:2209 +#: lib/class-timedcontentplugin.php:2191 msgid "Action" msgstr "Aktion" -#: lib/class-timed-content.php:2462 +#: lib/class-timedcontentplugin.php:2436 msgid "Action/Initial Event" msgstr "Aktion/Erstes Ereignis" -#: lib/class-timed-content.php:2421 +#: lib/class-timedcontentplugin.php:2394 msgid "Add exception date:" msgstr "Ausnahmedatum hinzufügen:" -#: lib/class-timed-content.php:172 +#: lib/class-timedcontentplugin.php:163 msgid "Add new Timed Content rule" msgstr "Neue Timed Content Regel hinzufügen" -#: lib/class-timed-content.php:1967 +#: lib/class-timedcontentplugin.php:1949 msgid "Add Timed Content shortcodes" msgstr "Timed Content Shortcodes hinzufügen" #. %s: timezone -#: lib/class-timed-content.php:1220 +#: lib/class-timedcontentplugin.php:1213 #, php-format msgid "All times are in the %s timezone." msgstr "Alle Zeiten sind in der Zeitzone %s." -#: lib/class-timed-content.php:289 +#: lib/class-timedcontentplugin.php:275 msgid "April" msgstr "April" -#: lib/class-timed-content.php:293 +#: lib/class-timedcontentplugin.php:279 msgid "August" msgstr "August" -#: lib/class-timed-content.php:1913 +#: lib/class-timedcontentplugin.php:1899 msgid "Calculating dates/times" msgstr "Berechne Daten" -#: lib/class-timed-content.php:942 +#: lib/class-timedcontentplugin.php:935 msgid "" "Check that all of the conditions for this rule are correct, and use Show " "projected dates/times to ensure your rule is working properly." @@ -73,48 +73,48 @@ msgstr "" "Daten/Zeiten anzeigen verwenden, um sicherzustellen, dass die Regel " "korrekt funktioniert." -#: lib/class-timed-content.php:1713 +#: lib/class-timedcontentplugin.php:1704 msgid "Content filter:" msgstr "Content-Filter:" -#: lib/class-timed-content.php:184 +#: lib/class-timedcontentplugin.php:175 msgid "" "Create regular schedules to show or hide selected content in a page or post." msgstr "" "Regeln zum anzeigen oder verbergen von ausgewählten Inhalten in einer Seite " "oder Beitrag erstellen" -#: tinymce_plugin/dialog.php:114 +#: tinymce_plugin/dialog.php:112 msgid "Current Date/Time:" msgstr "Aktuelles Datum/Zeit:" -#: lib/class-timed-content.php:1709 +#: lib/class-timedcontentplugin.php:1700 msgid "Current date:" msgstr "Aktuelles Datum:" -#: lib/class-timed-content.php:246 +#: lib/class-timedcontentplugin.php:229 msgid "Custom field deleted." msgstr "Benutzerdefiniertes Feld gelöscht." -#: lib/class-timed-content.php:245 +#: lib/class-timedcontentplugin.php:228 msgid "Custom field updated." msgstr "Benutzerdefiniertes Feld aktualisiert." -#: lib/class-timed-content.php:70 +#: lib/class-timedcontentplugin.php:60 msgid "daily" msgstr "täglich" -#: lib/class-custom-fields-interface.php:476 +#: lib/class-customfieldsinterface.php:482 msgctxt "Date field label" msgid "Date" msgstr "Datum" -#: tinymce_plugin/dialog.php:120 tinymce_plugin/dialog.php:131 +#: tinymce_plugin/dialog.php:118 tinymce_plugin/dialog.php:129 msgctxt "Date field label" msgid "Date:" msgstr "Datum:" -#: lib/class-timed-content.php:2433 +#: lib/class-timedcontentplugin.php:2405 msgid "" "Dates that this Timed Content rule will not be active. Double-click on a " "date to remove it from the list." @@ -122,16 +122,16 @@ msgstr "" "Daten, an denen diese Timed Content Regel nicht aktiv sein wird. Doppelklick " "auf ein Datum entfernt es von der Liste." -#: lib/class-timed-content.php:102 +#: lib/class-timedcontentplugin.php:93 msgid "day" msgstr "Tag" -#: lib/class-timed-content.php:2349 +#: lib/class-timedcontentplugin.php:2331 msgid "Day of the week" msgstr "Wochentag" #. %1$s: shortcode, %2$s attribute in shortcode -#: lib/class-timed-content.php:1663 +#: lib/class-timedcontentplugin.php:1654 #, php-format msgid "" "Debugging has been turned on for a %1$s shortcode on this post/page. Only " @@ -144,48 +144,48 @@ msgstr "" "oder diesen Beitrag bearbeiten können, sehen diese Meldung. Um die Meldung " "zu entfernen, bitte das Attribut %2$s aus dem Shortcode entfernen." -#: lib/class-timed-content.php:297 +#: lib/class-timedcontentplugin.php:283 msgid "December" msgstr "Dezember" -#: lib/class-timed-content.php:2095 +#: lib/class-timedcontentplugin.php:2078 msgid "Description" msgstr "Beschreibung" -#: lib/class-timed-content.php:173 +#: lib/class-timedcontentplugin.php:164 msgid "Edit Timed Content rule" msgstr "Timed Content Regel bearbeiten" -#: lib/class-timed-content.php:2388 +#: lib/class-timedcontentplugin.php:2370 msgid "End Date" msgstr "Enddatum" -#: lib/class-timed-content.php:606 +#: lib/class-timedcontentplugin.php:588 msgid "End date must not be empty." msgstr "Enddatum darf nicht leer sein." -#: lib/class-timed-content.php:588 +#: lib/class-timedcontentplugin.php:570 msgid "Ending date must not be empty." msgstr "Enddatum darf nicht leer sein." -#: lib/class-timed-content.php:2236 +#: lib/class-timedcontentplugin.php:2218 msgid "Ending date/time" msgstr "Enddatum/zeit" -#: lib/class-timed-content.php:616 +#: lib/class-timedcontentplugin.php:598 msgid "Ending date/time must be valid." msgstr "Endzeit/datum muss gültig sein." -#: lib/class-timed-content.php:591 +#: lib/class-timedcontentplugin.php:573 msgid "Ending time must not be empty." msgstr "Endzeit darf nicht leer sein." -#: lib/class-timed-content.php:1917 +#: lib/class-timedcontentplugin.php:1903 msgid "Error" msgstr "Fehler" #. %1$d: month count, %2$s: recurrence, %3$s: weekday -#: lib/class-timed-content.php:1150 +#: lib/class-timedcontentplugin.php:1143 #, php-format msgctxt "" "Example: 'Repeat this action every 2 months on the second Friday of the " @@ -194,50 +194,54 @@ msgid "Repeat this action every %1$d months on the %2$s %3$s of the month." msgstr "Diese Aktion alle %1$d Monate am %2$s %3$s des Monats wiederholen." #. %1$s: recurrence, %2$s: weekday -#: lib/class-timed-content.php:1139 +#: lib/class-timedcontentplugin.php:1132 #, php-format msgctxt "" "Example: 'Repeat this action every month on the second Friday of the month.'" msgid "Repeat this action every month on the %1$s %2$s of the month." msgstr "This Aktion jeden Monat am %1$s %2$s des Monats wiederholen." -#: lib/class-timed-content.php:2432 +#: lib/class-timedcontentplugin.php:2404 msgid "Exception dates list" msgstr "Ausnahmeliste" -#: lib/class-timed-content.php:2492 +#: lib/class-timedcontentplugin.php:2466 msgid "Exceptions" msgstr "Ausnahmen" -#: lib/class-timed-content.php:287 +#: lib/class-timedcontentplugin.php:273 msgid "February" msgstr "Februar" -#: lib/class-timed-content.php:87 +#: lib/class-timedcontentplugin.php:81 +msgid "fifth" +msgstr "fünfter" + +#: lib/class-timedcontentplugin.php:77 msgid "first" msgstr "erster" -#: lib/class-timed-content.php:90 +#: lib/class-timedcontentplugin.php:80 msgid "fourth" msgstr "vierter" -#: lib/class-timed-content.php:2262 +#: lib/class-timedcontentplugin.php:2244 msgid "Frequency" msgstr "Häufigkeit" -#: lib/class-timed-content.php:82 lib/class-timed-content.php:100 +#: lib/class-timedcontentplugin.php:72 lib/class-timedcontentplugin.php:91 msgid "Friday" msgstr "Freitag" -#: lib/class-timed-content.php:951 lib/class-timed-content.php:2214 +#: lib/class-timedcontentplugin.php:944 lib/class-timedcontentplugin.php:2196 msgid "Hide the content" msgstr "Inhalt verbergen" -#: lib/class-timed-content.php:69 +#: lib/class-timedcontentplugin.php:59 msgid "hourly" msgstr "stündlich" -#: lib/class-timed-content.php:2374 +#: lib/class-timedcontentplugin.php:2356 msgid "How often to repeat this action" msgstr "Wie oft ist diese Aktion auszuführen" @@ -247,97 +251,97 @@ msgid "http://wordpress.org/plugins/timed-content/" msgstr "http://wordpress.org/plugins/timed-content/" #. %s: time difference -#: lib/class-timed-content.php:780 lib/class-timed-content.php:1641 -#: lib/class-timed-content.php:1654 +#: lib/class-timedcontentplugin.php:750 lib/class-timedcontentplugin.php:1632 +#: lib/class-timedcontentplugin.php:1645 #, php-format msgctxt "Human readable time difference" msgid "%s ago." msgstr "%s zurück." #. %s: time difference -#: lib/class-timed-content.php:766 lib/class-timed-content.php:1635 -#: lib/class-timed-content.php:1648 +#: lib/class-timedcontentplugin.php:736 lib/class-timedcontentplugin.php:1626 +#: lib/class-timedcontentplugin.php:1639 #, php-format msgctxt "Human readable time difference" msgid "%s from now." msgstr "%s ab jetzt." -#: lib/class-timed-content.php:594 +#: lib/class-timedcontentplugin.php:576 msgid "Interval must not be empty." msgstr "Das Intervall darf nicht leer sein." -#: lib/class-timed-content.php:2273 lib/class-timed-content.php:2284 -#: lib/class-timed-content.php:2295 lib/class-timed-content.php:2317 -#: lib/class-timed-content.php:2360 +#: lib/class-timedcontentplugin.php:2255 lib/class-timedcontentplugin.php:2266 +#: lib/class-timedcontentplugin.php:2277 lib/class-timedcontentplugin.php:2299 +#: lib/class-timedcontentplugin.php:2342 msgid "Interval of recurrences" msgstr "Intervall der Wiederholungen" -#: lib/class-timed-content.php:286 +#: lib/class-timedcontentplugin.php:272 msgid "January" msgstr "Januar" -#: lib/class-timed-content.php:106 +#: lib/class-timedcontentplugin.php:97 msgctxt "jQuery UI Datepicker Close label" msgid "Done" msgstr "Fertig" -#: lib/class-timed-content.php:108 +#: lib/class-timedcontentplugin.php:99 msgctxt "jQuery UI Datepicker Next label" msgid "Next" msgstr "Vorheriger" -#: lib/class-timed-content.php:107 +#: lib/class-timedcontentplugin.php:98 msgctxt "jQuery UI Datepicker Previous label" msgid "Prev" msgstr "Nächster" -#: lib/class-timed-content.php:109 +#: lib/class-timedcontentplugin.php:100 msgctxt "jQuery UI Datepicker Today label" msgid "Today" msgstr "Heute" -#: lib/class-timed-content.php:110 +#: lib/class-timedcontentplugin.php:101 msgctxt "jQuery UI Datepicker Week label" msgid "Wk" msgstr "Woche" -#: lib/class-timed-content.php:145 +#: lib/class-timedcontentplugin.php:136 msgctxt "" "jQuery UI Datepicker: Character used to separate hours and minutes in " "translated language" msgid ":" msgstr ":" -#: lib/class-timed-content.php:148 +#: lib/class-timedcontentplugin.php:139 msgctxt "jQuery UI Timepicker 'Deselect' label" msgid "Deselect" msgstr "Deselektieren" -#: lib/class-timed-content.php:146 +#: lib/class-timedcontentplugin.php:137 msgctxt "jQuery UI Timepicker 'Done' label" msgid "Done" msgstr "Fertig" -#: lib/class-timed-content.php:143 +#: lib/class-timedcontentplugin.php:134 msgctxt "jQuery UI Timepicker 'Hour' label" msgid "Hour" msgstr "Stunde" -#: lib/class-timed-content.php:144 +#: lib/class-timedcontentplugin.php:135 msgctxt "jQuery UI Timepicker 'Minute' label" msgid "Minute" msgstr "Minute" -#: lib/class-timed-content.php:147 +#: lib/class-timedcontentplugin.php:138 msgctxt "jQuery UI Timepicker 'Now' label" msgid "Now" msgstr "Jetzt" -#: lib/class-timed-content.php:292 +#: lib/class-timedcontentplugin.php:278 msgid "July" msgstr "Juli" -#: lib/class-timed-content.php:291 +#: lib/class-timedcontentplugin.php:277 msgid "June" msgstr "Juni" @@ -345,58 +349,58 @@ msgstr "Juni" msgid "K. Tough, Arno Welzel, Enrico Bacis" msgstr "K. Tough, Arno Welzel, Enrico Bacis" -#: lib/class-timed-content.php:2378 +#: lib/class-timedcontentplugin.php:2360 msgid "Keep repeating until a given date" msgstr "Wiederholen bis zu einem bestimmten Datum" -#: lib/class-timed-content.php:91 +#: lib/class-timedcontentplugin.php:82 msgid "last" msgstr "letzter" #. %1$s, %2$s, %3$s, %4$s, %5$s, %6$s, %7$s: weekday -#: lib/class-timed-content.php:1085 +#: lib/class-timedcontentplugin.php:1078 #, php-format msgctxt "List of all weekdays" msgid "%1$s, %2$s, %3$s, %4$s, %5$s, %6$s and %7$s" msgstr "%1$s, %2$s, %3$s, %4$s, %5$s, %6$s und %7$s" #. %1$s, %2$s, %3$s, %4$s, %5$s: weekday -#: lib/class-timed-content.php:1054 +#: lib/class-timedcontentplugin.php:1047 #, php-format msgctxt "List of five weekdays" msgid "%1$s, %2$s, %3$s, %4$s and %5$s" msgstr "%1$s, %2$s, %3$s, %4$s und %5$s" #. %1$s, %2$s, %3$s, %4$s: weekday -#: lib/class-timed-content.php:1040 +#: lib/class-timedcontentplugin.php:1033 #, php-format msgctxt "List of four weekdays" msgid "%1$s, %2$s, %3$s and %4$s" msgstr "%1$s, %2$s, %3$s und %4$s" #. %1$s, %2$s, %3$s, %4$s, %5$s, %6$s: weekday -#: lib/class-timed-content.php:1069 +#: lib/class-timedcontentplugin.php:1062 #, php-format msgctxt "List of six weekdays" msgid "%1$s, %2$s, %3$s, %4$s, %5$s and %6$s" msgstr "%1$s, %2$s, %3$s, %4$s, %5$s und %6$s" #. %1$s, %2$s, %3$s: weekday -#: lib/class-timed-content.php:1027 +#: lib/class-timedcontentplugin.php:1020 #, php-format msgctxt "List of three weekdays" msgid "%1$s, %2$s and %3$s" msgstr "%1$s, %2$s und %3$s" #. %1$s, %2$s: weekday -#: lib/class-timed-content.php:1019 +#: lib/class-timedcontentplugin.php:1012 #, php-format msgctxt "List of two weekdays" msgid "%1$s and %2$s" msgstr "%1$s und %2$s" #. %1$d: number of weeks, %2$s: weekday -#: lib/class-timed-content.php:1113 +#: lib/class-timedcontentplugin.php:1106 #, php-format msgctxt "" "List the weekdays to repeat the rule when frequency is every %1$d weeks. " @@ -405,7 +409,7 @@ msgid "Repeat this action every %1$d weeks on %2$s." msgstr "Diese Action alle %1$d Wochen am %2$s wiederholen." #. %s: weekday -#: lib/class-timed-content.php:1103 +#: lib/class-timedcontentplugin.php:1096 #, php-format msgctxt "" "List the weekdays to repeat the rule when frequency is every week. %s is the " @@ -414,88 +418,88 @@ msgid "Repeat this action every week on %s." msgstr "Diese Aktion jede Woche am %s wiederholen." #. date and time format to activate rule. http://ca2.php.net/manual/en/function.date.php -#: lib/class-timed-content.php:237 +#: lib/class-timedcontentplugin.php:220 msgid "M j, Y @ G:i" msgstr "M j, Y @ G:i" -#: lib/class-timed-content.php:288 +#: lib/class-timedcontentplugin.php:274 msgid "March" msgstr "März" -#: lib/class-timed-content.php:290 +#: lib/class-timedcontentplugin.php:276 msgid "May" msgstr "Mai" -#: lib/class-timed-content.php:167 +#: lib/class-timedcontentplugin.php:158 msgctxt "Menu item/button label on Timed Content Rules admin page" msgid "Add new" msgstr "Neu hinzufügen" -#: lib/class-timed-content.php:78 lib/class-timed-content.php:96 +#: lib/class-timedcontentplugin.php:68 lib/class-timedcontentplugin.php:87 msgid "Monday" msgstr "Montag" -#: lib/class-timed-content.php:72 +#: lib/class-timedcontentplugin.php:62 msgid "monthly" msgstr "monatlich" -#: lib/class-timed-content.php:174 +#: lib/class-timedcontentplugin.php:165 msgid "New Timed Content rule" msgstr "Neue Timed Content Regel" -#: lib/class-timed-content.php:2020 +#: lib/class-timedcontentplugin.php:1992 msgctxt "No Timed Content Rule title" msgid "(no title)" msgstr "(ohne Titel)" -#: lib/class-timed-content.php:2029 +#: lib/class-timedcontentplugin.php:2001 msgid "No Timed Content Rules found" msgstr "Keine Timed Content Regeln gefunden" -#: lib/class-timed-content.php:177 +#: lib/class-timedcontentplugin.php:168 msgid "No Timed Content rules found" msgstr "Keine Timed Content Regel gefunden" -#: lib/class-timed-content.php:178 +#: lib/class-timedcontentplugin.php:169 msgid "No Timed Content rules found in trash" msgstr "Keine Timed Content Regel im Papierkorb gefunden" -#: lib/class-timed-content.php:1714 +#: lib/class-timedcontentplugin.php:1705 msgctxt "Noun" msgid "Content:" msgstr "Inhalt:" -#: lib/class-timed-content.php:1660 +#: lib/class-timedcontentplugin.php:1651 msgctxt "Noun" msgid "Notice" msgstr "Hinweis" -#: lib/class-timed-content.php:296 +#: lib/class-timedcontentplugin.php:282 msgid "November" msgstr "November" -#: lib/class-timed-content.php:596 +#: lib/class-timedcontentplugin.php:578 msgid "Number of recurrences must be a number." msgstr "Anzahl der Wiederholungen muss eine Zahl sein." -#: lib/class-timed-content.php:2398 +#: lib/class-timedcontentplugin.php:2380 msgid "Number of repetitions" msgstr "Häufigkeit" -#: lib/class-timed-content.php:602 +#: lib/class-timedcontentplugin.php:584 msgid "Number of repetitions must be a number." msgstr "Anzahl der Wiederholungen muss eine Zahl sein." -#: lib/class-timed-content.php:600 +#: lib/class-timedcontentplugin.php:582 msgid "Number of repetitions must not be empty." msgstr "Anzahl der Wiederholungen darf nicht leer sein." -#: lib/class-timed-content.php:295 +#: lib/class-timedcontentplugin.php:281 msgid "October" msgstr "Oktober" #. %1$s: action, %2$s: start date, %3$s: start time, %4$s: end date, %5$s: end time -#: lib/class-timed-content.php:971 +#: lib/class-timedcontentplugin.php:964 #, php-format msgctxt "" "Perform action (%1$s) from date/time of first active period (%2$s @ %3$s) " @@ -503,23 +507,23 @@ msgctxt "" msgid "%1$s on %2$s @ %3$s until %4$s @ %5$s." msgstr "%1$s am %2$s @ %3$s bis %4$s @ %5$s." -#: tinymce_plugin/dialog.php:31 tinymce_plugin/dialog.php:37 +#: tinymce_plugin/dialog.php:29 tinymce_plugin/dialog.php:35 msgid "Please select an action to perform." msgstr "Bitte eine Aktion zur Ausführung wählen." -#: tinymce_plugin/dialog.php:34 +#: tinymce_plugin/dialog.php:32 msgid "Please set a date for the Hide action." msgstr "Bitte ein Datum für die Verbergen-Aktion wählen." -#: tinymce_plugin/dialog.php:32 +#: tinymce_plugin/dialog.php:30 msgid "Please set a date for the Show action." msgstr "Bitte ein Datum für die Anzeigen-Aktion wählen." -#: tinymce_plugin/dialog.php:35 +#: tinymce_plugin/dialog.php:33 msgid "Please set a time for the Hide action." msgstr "Bitte eine Zeit für die Verbergen-Aktion wählen." -#: tinymce_plugin/dialog.php:33 +#: tinymce_plugin/dialog.php:31 msgid "Please set a time for the Show action." msgstr "Bitte eine Zeit für die Anzeigen-Aktion wählen." @@ -534,35 +538,34 @@ msgstr "" "können entweder auf Server-Seite oder auf Client-Seite ausgeführt werden, je " "nach gewünschtem Effekt." -#: lib/class-timed-content.php:165 lib/class-timed-content.php:180 +#: lib/class-timedcontentplugin.php:156 lib/class-timedcontentplugin.php:171 msgctxt "post type general name" msgid "Timed Content rules" msgstr "Timed Content Regeln" -#: lib/class-timed-content.php:166 +#: lib/class-timedcontentplugin.php:157 msgctxt "post type singular name" msgid "Timed Content rule" msgstr "Timed Content Regel" -#: lib/class-timed-content.php:609 +#: lib/class-timedcontentplugin.php:591 msgid "Recurrence end date must be after ending date/time." msgstr "Enddatum der Wiederholung muss nach Enddatum/zeit sein." -#: lib/class-timed-content.php:2379 +#: lib/class-timedcontentplugin.php:2361 msgid "Repeat a set number of times" msgstr "Für eine vorgegebene Anzahl wiederholen" -#: lib/class-timed-content.php:2328 +#: lib/class-timedcontentplugin.php:2310 msgid "Repeat on a specific weekday of the month" msgstr "An einem bestimmten Wochentag des Monats wiederholen" -#: lib/class-timed-content.php:2306 +#: lib/class-timedcontentplugin.php:2288 msgid "Repeat on the following days" msgstr "An den folgenden Tagen wiederholen" #. %d numerical days value -#: lib/class-timed-content.php:997 -#, php-format +#: lib/class-timedcontentplugin.php:990 #| msgid "Repeat this action every day." msgid "Repeat this action every %d day." msgid_plural "Repeat this action every %d days." @@ -570,8 +573,7 @@ msgstr[0] "Diese Aktion jeden %d Tag wiederholen." msgstr[1] "Diese Aktion alle %d Tage wiederholen." #. %d numerical hours value -#: lib/class-timed-content.php:986 -#, php-format +#: lib/class-timedcontentplugin.php:979 #| msgid "Repeat this action every hour." msgid "Repeat this action every %d hour." msgid_plural "Repeat this action every %d hours." @@ -579,8 +581,7 @@ msgstr[0] "Diese Aktion jede %d Stunde wiederholen." msgstr[1] "Diese Aktion alle %d Stunden wiederholen." #. %d: month count -#: lib/class-timed-content.php:1163 -#, php-format +#: lib/class-timedcontentplugin.php:1156 #| msgid "Repeat this action every month." msgid "Repeat this action every %d month." msgid_plural "Repeat this action every %d months." @@ -588,8 +589,7 @@ msgstr[0] "Diese Aktion jeden %d Monat wiederholen." msgstr[1] "Diese Aktion alle %d Monate wiederholen." #. %d: number of weeks -#: lib/class-timed-content.php:1125 -#, php-format +#: lib/class-timedcontentplugin.php:1118 #| msgid "Repeat this action every week." msgid "Repeat this action every %d week." msgid_plural "Repeat this action every %d weeks." @@ -597,35 +597,34 @@ msgstr[0] "Diese Aktion jede %d Woche wiederholen." msgstr[1] "Diese Aktion alle %d Wochen wiederholen." #. %d: year count -#: lib/class-timed-content.php:1175 -#, php-format +#: lib/class-timedcontentplugin.php:1168 #| msgid "Repeat this action every year." msgid "Repeat this action every %d year." msgid_plural "Repeat this action every %d years." msgstr[0] "Diese Aktion jedes %d Jahr wiederholen." msgstr[1] "Diese Aktion alle %d Jahre wiederholen." -#: lib/class-timed-content.php:2285 +#: lib/class-timedcontentplugin.php:2267 msgid "Repeat this action every X days." msgstr "Diese Aktion alle X Tage wiederholen." -#: lib/class-timed-content.php:2274 +#: lib/class-timedcontentplugin.php:2256 msgid "Repeat this action every X hours." msgstr "Diese Aktion alle X Stunden wiederholen." -#: lib/class-timed-content.php:2318 +#: lib/class-timedcontentplugin.php:2300 msgid "Repeat this action every X months." msgstr "Diese Aktion alle X Monate wiederholen." -#: lib/class-timed-content.php:2296 +#: lib/class-timedcontentplugin.php:2278 msgid "Repeat this action every X weeks." msgstr "Diese Aktion alle X Wochen wiederholen." -#: lib/class-timed-content.php:2361 +#: lib/class-timedcontentplugin.php:2343 msgid "Repeat this action every X years." msgstr "Diese Aktion alle X Jahre wiederholen." -#: lib/class-timed-content.php:2329 +#: lib/class-timedcontentplugin.php:2311 msgid "" "Repeat this action on a specific weekday of the month (for example, \"every " "third Tuesday\"). Check this box to select a pattern below." @@ -634,7 +633,7 @@ msgstr "" "(beispielsweise \"jeden dritten Donnerstag\"). Diese Einstellung aktivieren, " "um ein Muster unten zu wählen." -#: lib/class-timed-content.php:2307 +#: lib/class-timedcontentplugin.php:2289 msgid "" "Repeat this action on these days of the week instead of the " "day of week the starting date/time falls on." @@ -642,93 +641,95 @@ msgstr "" "Diese Aktion an diesen Tagen der Woche wiederholen statt an " "dem Tag der Woche, auf den Datum/Zeit fallen." -#: lib/class-timed-content.php:2472 +#: lib/class-timedcontentplugin.php:2446 msgid "Repeating Pattern" msgstr "Wiederholungsmuster." -#: lib/class-timed-content.php:775 +#: lib/class-timedcontentplugin.php:745 msgid "Right now!" msgstr "Genau jetzt!" -#: lib/class-timed-content.php:2445 +#: lib/class-timedcontentplugin.php:2425 msgid "Rule description/schedule" msgstr "Regel-Beschreibung/Plan" -#: lib/class-timed-content.php:83 lib/class-timed-content.php:101 +#: lib/class-timedcontentplugin.php:73 lib/class-timedcontentplugin.php:92 msgid "Saturday" msgstr "Samstag" -#: lib/class-timed-content.php:1898 +#: lib/class-timedcontentplugin.php:1884 msgctxt "" "Scheduled Dates/Times dialog - Beginning of active period table header" msgid "Start" msgstr "Start" -#: lib/class-timed-content.php:1908 +#: lib/class-timedcontentplugin.php:1894 msgctxt "Scheduled Dates/Times dialog - dialog header" msgid "Scheduled dates/times" msgstr "Geplante Daten/Zeiten" -#: lib/class-timed-content.php:1903 +#: lib/class-timedcontentplugin.php:1889 msgctxt "Scheduled Dates/Times dialog - End of active period table header" msgid "End" msgstr "Ende" -#: lib/class-timed-content.php:176 +#: lib/class-timedcontentplugin.php:167 msgid "Search Timed Content rules" msgstr "Timed Content Regel suchen" -#: lib/class-timed-content.php:88 +#: lib/class-timedcontentplugin.php:78 msgid "second" msgstr "zweiter" -#: lib/class-timed-content.php:2422 +#: lib/class-timedcontentplugin.php:2395 msgid "Select a date to add to the exception dates list." msgstr "Datum auswählen, um es der Ausnahmeliste hinzuzufügen." -#: lib/class-timed-content.php:2339 +#: lib/class-timedcontentplugin.php:2321 msgid "" "Select a value for week of the month (for example \"first\", \"second\", etc." -")." +"). Please note, that \"fifth\" will skip months, where the day is not " +"repeated five times!" msgstr "" -"Wert für die Woche des Monats wählen (beispielsweise \"erste\", \"zweite\", " -"usw.)." +"Einen Wert für die Woche des Monats auswählen (zum Beispiel \"erster\", " +"\"zweiter\", usw.). Bitte beachten, das \"fünfter\" Monate überspringt, wo " +"der Tag nicht fünfmal wiederholt wird!" -#: lib/class-timed-content.php:2350 +#: lib/class-timedcontentplugin.php:2332 msgid "Select the day of week." msgstr "Tag der Woche wählen." -#: lib/class-timed-content.php:2250 +#: lib/class-timedcontentplugin.php:2232 msgid "Select the timezone you wish to use for this rule." msgstr "Zeitzone auswählen, die für diese Regel verwendet werden soll." -#: lib/class-timed-content.php:294 +#: lib/class-timedcontentplugin.php:280 msgid "September" msgstr "September" -#: lib/class-timed-content.php:2483 +#: lib/class-timedcontentplugin.php:2457 msgid "Set how long or how many times the action should occur." msgstr "Festlegen, wie lange oder wie oft die Aktion erfolgen soll." -#: lib/class-timed-content.php:2473 +#: lib/class-timedcontentplugin.php:2447 msgid "Set how often the action should repeat." msgstr "Legt fest, wie oft die Aktion wiederholt werden soll." -#: lib/class-timed-content.php:2463 +#: lib/class-timedcontentplugin.php:2437 msgid "Set the action to be taken and when it should first run." msgstr "" "Legt die auszuführende Aktion fest und wann sie zum ersten Mal ausgeführt " "werden soll," -#: lib/class-timed-content.php:2493 +#: lib/class-timedcontentplugin.php:2467 msgid "Set up any exceptions to this Timed Content Rule." msgstr "Ausnahmen für diese Timed Content Regel festlegen." -#: lib/class-timed-content.php:2210 +#: lib/class-timedcontentplugin.php:2192 msgid "Sets the action to be performed when the rule is active." msgstr "Legt die Aktion fest, die ausgeführt wird, wenn die Regel aktiv ist." -#: lib/class-timed-content.php:2224 +#: lib/class-timedcontentplugin.php:2206 msgid "" "Sets the date and time for the beginning of the first active period for this " "rule." @@ -736,30 +737,31 @@ msgstr "" "Legt Datum und Zeit für den Beginn der ersten aktiven Periode für diese " "Regel fest." -#: lib/class-timed-content.php:2237 +#: lib/class-timedcontentplugin.php:2219 msgid "" "Sets the date and time for the end of the first active period for this rule." msgstr "" "Legt Datum und Zeit für das Ende der ersten aktiven Periode für diese Regel " "fest." -#: lib/class-timed-content.php:2263 +#: lib/class-timedcontentplugin.php:2245 msgid "Sets the frequency at which the action should be repeated." msgstr "Legt die Häufigkeit fest, mit der diese Aktion wiederholt werden soll." -#: lib/class-timed-content.php:2096 +#: lib/class-timedcontentplugin.php:2079 msgid "Shortcode" msgstr "Shortcode" -#: lib/class-timed-content.php:1914 lib/class-timed-content.php:2450 +#: lib/class-timedcontentplugin.php:1900 +#: lib/class-customfieldsinterface.php:197 msgid "Show projected dates/times" msgstr "Projektierte Daten/Zeiten anzeigen" -#: lib/class-timed-content.php:949 lib/class-timed-content.php:2213 +#: lib/class-timedcontentplugin.php:942 lib/class-timedcontentplugin.php:2195 msgid "Show the content" msgstr "Inhalt anzeigen" -#: lib/class-timed-content.php:936 +#: lib/class-timedcontentplugin.php:933 msgid "" "Some problems have been detected. Although you can still publish this rule, " "it may not work the way you expect." @@ -767,78 +769,77 @@ msgstr "" "Es wurde eine Probleme festgestellt. Obwohl diese Regel veröffentlich werden " "kann, wird sie möglicherweise nicht so funktionieren, wie erwartet." -#: lib/class-timed-content.php:1918 +#: lib/class-timedcontentplugin.php:1904 msgid "" "Something unexpected has happened along the way. The specific details are " "below:" msgstr "Etwas Unerwartetes ist auf dem Weg passiert. Die spezifischen Details:" -#: lib/class-timed-content.php:582 +#: lib/class-timedcontentplugin.php:564 msgid "Starting date must not be empty." msgstr "Anfangsdatum darf nicht leer sein." -#: lib/class-timed-content.php:2223 +#: lib/class-timedcontentplugin.php:2205 msgid "Starting date/time" msgstr "Startdatum/zeit" -#: lib/class-timed-content.php:619 +#: lib/class-timedcontentplugin.php:601 msgid "Starting date/time must be before ending date/time." msgstr "Startdatum/zeit muss vor Enddatum/zeit sein." -#: lib/class-timed-content.php:613 +#: lib/class-timedcontentplugin.php:595 msgid "Starting date/time must be valid." msgstr "Startzeit/datum muss gültig sein." -#: lib/class-timed-content.php:585 +#: lib/class-timedcontentplugin.php:567 msgid "Starting time must not be empty." msgstr "Anfangszeit darf nicht leer sein." -#: lib/class-timed-content.php:2482 +#: lib/class-timedcontentplugin.php:2456 msgid "Stopping Condition" msgstr "Stop-Bedingung" -#: lib/class-timed-content.php:77 lib/class-timed-content.php:95 +#: lib/class-timedcontentplugin.php:67 lib/class-timedcontentplugin.php:86 msgid "Sunday" msgstr "Sonntag" #. %s: attribute name -#: lib/class-timed-content.php:1680 lib/class-timed-content.php:1699 +#: lib/class-timedcontentplugin.php:1671 lib/class-timedcontentplugin.php:1690 #, php-format msgid "The %s attribute is currently set to" msgstr "Das Attribut %s ist aktuell gesetzt auf" #. %s: attribute name -#: lib/class-timed-content.php:1674 lib/class-timed-content.php:1693 +#: lib/class-timedcontentplugin.php:1665 lib/class-timedcontentplugin.php:1684 #, php-format msgid "The %s attribute is not set or invalid." msgstr "Das Attribut %s ist nicht gesetzt oder ungültig." -#: lib/class-timed-content.php:1719 +#: lib/class-timedcontentplugin.php:1710 msgid "The plugin will hide the content." msgstr "Das Plugin wird den Inhalt anzeigen." -#: lib/class-timed-content.php:1717 +#: lib/class-timedcontentplugin.php:1708 msgid "The plugin will show the content." msgstr "Das Plugin wird den Inhalt verbergen." -#: lib/class-timed-content.php:1683 lib/class-timed-content.php:1702 +#: lib/class-timedcontentplugin.php:1674 lib/class-timedcontentplugin.php:1693 msgid "The Timed Content plugin thinks the intended date/time is" msgstr "" "Das Timed Content Plugin glaubt, dass folgendes Datum/Zeit vorgesehen ist" -#: lib/class-timed-content.php:89 +#: lib/class-timedcontentplugin.php:79 msgid "third" msgstr "dritter" -#: lib/class-custom-fields-interface.php:235 -#: lib/class-custom-fields-interface.php:261 -#: lib/class-custom-fields-interface.php:333 +#: lib/class-customfieldsinterface.php:256 +#: lib/class-customfieldsinterface.php:282 +#: lib/class-customfieldsinterface.php:352 msgid "This menu is empty." msgstr "Dieses Menü ist leer." #. %d: number of recurrences -#: lib/class-timed-content.php:1188 -#, php-format +#: lib/class-timedcontentplugin.php:1181 #| msgid "This rule will be active for one recurrence." msgid "This rule will be active for %d recurrence." msgid_plural "This rule will be active for %d recurrences." @@ -846,27 +847,27 @@ msgstr[0] "Diese Regel wird für %d Wiederholung aktiv sein." msgstr[1] "Diese Regel wird für %d Wiederholungen aktiv sein." #. %s: end date -#: lib/class-timed-content.php:1197 +#: lib/class-timedcontentplugin.php:1190 #, php-format msgid "This rule will be active until %s." msgstr "Diese Regel wird bis %s aktiv sein." #. %s: list of dates -#: lib/class-timed-content.php:1209 +#: lib/class-timedcontentplugin.php:1202 #, php-format msgid "This rule will be inactive on the following dates: %s." msgstr "Diese Regel wird an den folgenden Tagen inaktiv sein: %s." -#: lib/class-timed-content.php:81 lib/class-timed-content.php:99 +#: lib/class-timedcontentplugin.php:71 lib/class-timedcontentplugin.php:90 msgid "Thursday" msgstr "Donnerstag" -#: lib/class-custom-fields-interface.php:482 +#: lib/class-customfieldsinterface.php:488 msgctxt "Time field label" msgid "Time" msgstr "Zeit" -#: tinymce_plugin/dialog.php:122 tinymce_plugin/dialog.php:133 +#: tinymce_plugin/dialog.php:120 tinymce_plugin/dialog.php:131 msgctxt "Time field label" msgid "Time:" msgstr "Zeit:" @@ -875,61 +876,61 @@ msgstr "Zeit:" msgid "Timed Content" msgstr "Timed Content" -#: lib/class-timed-content.php:2131 +#: lib/class-timedcontentplugin.php:2115 msgid "Timed Content rule" msgid_plural "Timed Content rules" msgstr[0] "Timed Content Regel" msgstr[1] "Timed Content Regeln" -#: lib/class-timed-content.php:264 +#: lib/class-timedcontentplugin.php:247 msgid "Timed Content Rule draft updated." msgstr "Entwurf der Timed Content Regel aktualisiert." -#: lib/class-timed-content.php:2148 +#: lib/class-timedcontentplugin.php:2131 msgid "Timed Content rule pending" msgid_plural "Timed Content rules pending" msgstr[0] "Wartende Timed Content Regel" msgstr[1] "Wartende Timed Content Regeln" -#: lib/class-timed-content.php:256 +#: lib/class-timedcontentplugin.php:239 msgid "Timed Content Rule published." msgstr "Timed Content Regel veröffentlicht." #. %s: date and time of the revision -#: lib/class-timed-content.php:250 +#: lib/class-timedcontentplugin.php:233 #, php-format msgid "Timed Content Rule restored to revision from %s" msgstr "Timed Content Regel wiederherstellt aus der Version von %s" -#: lib/class-timed-content.php:257 +#: lib/class-timedcontentplugin.php:240 msgid "Timed Content Rule saved." msgstr "Timed Content Regel gespeichert." #. %s: date and time to activate rule. -#: lib/class-timed-content.php:261 +#: lib/class-timedcontentplugin.php:244 #, php-format msgid "Timed Content Rule scheduled for: %s." msgstr "Timed Content Regel geplant für: %s." -#: lib/class-timed-content.php:258 +#: lib/class-timedcontentplugin.php:241 msgid "Timed Content Rule submitted." msgstr "Timed Content Regel abgeschickt." -#: lib/class-timed-content.php:244 lib/class-timed-content.php:247 +#: lib/class-timedcontentplugin.php:227 lib/class-timedcontentplugin.php:230 msgid "Timed Content Rule updated." msgstr "Timed Content Regel aktualisiert." -#: lib/class-timed-content.php:2249 +#: lib/class-timedcontentplugin.php:2231 msgid "Timezone" msgstr "Zeitzone" -#: tinymce_plugin/dialog.php:101 tinymce_plugin/dialog.php:151 -#: tinymce_plugin/dialog.php:173 +#: tinymce_plugin/dialog.php:99 tinymce_plugin/dialog.php:149 +#: tinymce_plugin/dialog.php:171 msgctxt "TinyMCE Dialog - Cancel button HTML label" msgid "Cancel" msgstr "Abbrechen" -#: tinymce_plugin/dialog.php:57 +#: tinymce_plugin/dialog.php:55 msgctxt "TinyMCE Dialog - Client tab instructions" msgid "" "Select the actions you wish to perform and the times after the Page/Post is " @@ -938,7 +939,7 @@ msgstr "" "Aktionen auswählen, die ausgeführt werden sollen nachdem die Seite oder der " "Beitrag geladen wurde und wann diese erfolgen sollen." -#: tinymce_plugin/dialog.php:46 +#: tinymce_plugin/dialog.php:44 msgctxt "TinyMCE Dialog - Client tab label" msgid "Client" msgstr "Client" @@ -949,56 +950,56 @@ msgid "Add Timed Content shortcodes" msgstr "Timed Content Shortcodes hinzufügen" #. %s: tag name -#: tinymce_plugin/dialog.php:94 +#: tinymce_plugin/dialog.php:92 #, php-format msgctxt "TinyMCE Dialog - Display mode
HTML description" msgid "Enclose content using %s tags (block-level)" msgstr "In %s-Tags einschließen (Block-Ebene)" #. %s: tag name -#: tinymce_plugin/dialog.php:96 +#: tinymce_plugin/dialog.php:94 #, php-format msgctxt "TinyMCE Dialog - Display mode HTML description" msgid "Enclose content using %s tags (inline)" msgstr "In %s-Tags einschließen (Inline)" -#: tinymce_plugin/dialog.php:92 +#: tinymce_plugin/dialog.php:90 msgctxt "TinyMCE Dialog - Display Mode label" msgid "Display Mode" msgstr "Anzeigemodus" -#: tinymce_plugin/dialog.php:69 +#: tinymce_plugin/dialog.php:67 msgctxt "TinyMCE Dialog - Fade-in label" msgid "Fade in (ms):" msgstr "Einblenden (ms):" -#: tinymce_plugin/dialog.php:85 +#: tinymce_plugin/dialog.php:83 msgctxt "TinyMCE Dialog - Fade-out label" msgid "Fade out (ms):" msgstr "Ausblenden (ms):" -#: tinymce_plugin/dialog.php:77 tinymce_plugin/dialog.php:129 +#: tinymce_plugin/dialog.php:75 tinymce_plugin/dialog.php:127 msgctxt "TinyMCE Dialog - Hide action label" msgid "Hide" msgstr "Verbergen" -#: tinymce_plugin/dialog.php:100 tinymce_plugin/dialog.php:150 -#: tinymce_plugin/dialog.php:172 +#: tinymce_plugin/dialog.php:98 tinymce_plugin/dialog.php:148 +#: tinymce_plugin/dialog.php:170 msgctxt "TinyMCE Dialog - Insert button HTML label" msgid "Insert" msgstr "Einfügen" -#: tinymce_plugin/dialog.php:71 tinymce_plugin/dialog.php:87 +#: tinymce_plugin/dialog.php:69 tinymce_plugin/dialog.php:85 msgctxt "TinyMCE Dialog - Optional checkbox HTML label" msgid "Optional" msgstr "Optional" -#: tinymce_plugin/dialog.php:50 +#: tinymce_plugin/dialog.php:48 msgctxt "TinyMCE Dialog - Rules tab label" msgid "Timed Content Rules" msgstr "Timed Content Regeln" -#: tinymce_plugin/dialog.php:111 +#: tinymce_plugin/dialog.php:109 msgctxt "TinyMCE Dialog - Server debugging label" msgid "" "Add debugging messages (Only logged-in users who can edit this Post/Page " @@ -1007,7 +1008,7 @@ msgstr "" "Debug-Meldungen hinzufügen (nur angemeldete Benutzer, die diesen " "Beitrag/Seite bearbeiten können, werden sie sehen)" -#: tinymce_plugin/dialog.php:107 +#: tinymce_plugin/dialog.php:105 msgctxt "TinyMCE Dialog - Server tab instructions" msgid "" "Select the actions you wish to perform and the dates/times when they should " @@ -1016,32 +1017,32 @@ msgstr "" "Aktionen auswählen, die ausgeführt werden sollen und die Daten/Zeiten an " "denen das erfolgen soll." -#: tinymce_plugin/dialog.php:48 +#: tinymce_plugin/dialog.php:46 msgctxt "TinyMCE Dialog - Server tab label" msgid "Server" msgstr "Server" -#: tinymce_plugin/dialog.php:61 tinymce_plugin/dialog.php:118 +#: tinymce_plugin/dialog.php:59 tinymce_plugin/dialog.php:116 msgctxt "TinyMCE Dialog - Show action label" msgid "Show" msgstr "Anzeigen" -#: tinymce_plugin/dialog.php:63 tinymce_plugin/dialog.php:79 +#: tinymce_plugin/dialog.php:61 tinymce_plugin/dialog.php:77 msgctxt "TinyMCE Dialog - Time count label" msgid "Time (mm:ss):" msgstr "Zeit (mm:ss):" -#: tinymce_plugin/dialog.php:159 +#: tinymce_plugin/dialog.php:157 msgctxt "TinyMCE Dialog - Timed Content Rules HTML label" msgid "Select a city whose timezone you wish to use:" msgstr "Eine Stadt auswählen, deren Zeitzone verwendet werden soll:" -#: tinymce_plugin/dialog.php:139 +#: tinymce_plugin/dialog.php:137 msgctxt "TinyMCE Dialog - Timezone fieldset label" msgid "Timezone" msgstr "Zeitzone" -#: lib/class-timed-content.php:79 lib/class-timed-content.php:97 +#: lib/class-timedcontentplugin.php:69 lib/class-timedcontentplugin.php:88 msgid "Tuesday" msgstr "Dienstag" -#: lib/class-timed-content.php:2399 +#: lib/class-timedcontentplugin.php:2381 msgid "Using the settings above, repeat this action this many times." msgstr "" "Aktion bis so oft wie angegeben entsprechend der Einstellungen oben " "wiederholen." -#: lib/class-timed-content.php:2389 +#: lib/class-timedcontentplugin.php:2371 msgid "Using the settings above, repeat this action until this date." msgstr "" "Aktion bis zu diesem Datum entsprechend der Einstellungen oben wiederholen." -#: lib/class-timed-content.php:175 +#: lib/class-timedcontentplugin.php:166 msgid "View Timed Content rule" msgstr "Timed Content Regel anzeigen" -#: lib/class-timed-content.php:935 +#: lib/class-timedcontentplugin.php:932 msgid "Warning!" msgstr "Warnung!" -#: lib/class-timed-content.php:80 lib/class-timed-content.php:98 +#: lib/class-timedcontentplugin.php:70 lib/class-timedcontentplugin.php:89 msgid "Wednesday" msgstr "Mittwoch" -#: lib/class-timed-content.php:2338 +#: lib/class-timedcontentplugin.php:2320 msgid "Weekday ordinal" msgstr "Wochentag" -#: lib/class-timed-content.php:71 +#: lib/class-timedcontentplugin.php:61 msgid "weekly" msgstr "wöchentlich" -#: tinymce_plugin/dialog.php:30 tinymce_plugin/dialog.php:36 +#: tinymce_plugin/dialog.php:28 tinymce_plugin/dialog.php:34 msgid "" "When using both Show and Hide actions, the Hide time must be later than the " "Show time." @@ -1103,27 +1104,27 @@ msgstr "" "Wenn beide Aktionen zum Anzeigen und Verbergen verwendet werden, muss die " "Zeit zum Verbergen später sein, als die Zeit zum Anzeigen." -#: tinymce_plugin/dialog.php:29 +#: tinymce_plugin/dialog.php:27 msgid "When using the Hide action, the Hide time must be at least 1 second." msgstr "" "Wenn die Verbergen-Aktion verwendet, muss die Verbergen-Zeit mindestens 1 " "Sekunde sein." -#: tinymce_plugin/dialog.php:28 +#: tinymce_plugin/dialog.php:26 msgid "When using the Show action, the Show time must be at least 1 second." msgstr "" "Wenn die Anzeigen-Aktion verwendet, muss die Anzeigen-Zeit mindestens 1 " "Sekunde sein." -#: tinymce_plugin/dialog.php:147 +#: tinymce_plugin/dialog.php:145 #| msgid "Wordpress Timezone:" msgid "WordPress Timezone:" msgstr "Wordpress-Zeitzone:" -#: lib/class-timed-content.php:73 +#: lib/class-timedcontentplugin.php:63 msgid "yearly" msgstr "jährlich" -#: lib/class-custom-fields-interface.php:317 +#: lib/class-customfieldsinterface.php:336 msgid "Yes" msgstr "Ja" diff --git a/lang/timed-content.pot b/lang/timed-content.pot index 8fbae29..2afeccd 100644 --- a/lang/timed-content.pot +++ b/lang/timed-content.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: Timed Content\n" "Report-Msgid-Bugs-To: http://wordpress.org/tag/timed-content\n" -"POT-Creation-Date: 2023-01-06 17:14+0000\n" +"POT-Creation-Date: 2024-11-03 14:51+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: \n" @@ -22,109 +22,109 @@ msgstr "" "X-Poedit-SearchPath-0: ..\n" "Language: " -#: lib/class-timed-content.php:1888 lib/class-timed-content.php:2202 +#: lib/class-timedcontentplugin.php:1874 lib/class-timedcontentplugin.php:2184 msgid "- No exceptions set -" msgstr "" -#: lib/class-timed-content.php:2209 +#: lib/class-timedcontentplugin.php:2191 msgid "Action" msgstr "" -#: lib/class-timed-content.php:2462 +#: lib/class-timedcontentplugin.php:2436 msgid "Action/Initial Event" msgstr "" -#: lib/class-timed-content.php:2421 +#: lib/class-timedcontentplugin.php:2394 msgid "Add exception date:" msgstr "" -#: lib/class-timed-content.php:172 +#: lib/class-timedcontentplugin.php:163 msgid "Add new Timed Content rule" msgstr "" -#: lib/class-timed-content.php:1967 +#: lib/class-timedcontentplugin.php:1949 msgid "Add Timed Content shortcodes" msgstr "" #. %s: timezone -#: lib/class-timed-content.php:1220 +#: lib/class-timedcontentplugin.php:1213 #, php-format msgid "All times are in the %s timezone." msgstr "" -#: lib/class-timed-content.php:289 +#: lib/class-timedcontentplugin.php:275 msgid "April" msgstr "" -#: lib/class-timed-content.php:293 +#: lib/class-timedcontentplugin.php:279 msgid "August" msgstr "" -#: lib/class-timed-content.php:1913 +#: lib/class-timedcontentplugin.php:1899 msgid "Calculating dates/times" msgstr "" -#: lib/class-timed-content.php:942 +#: lib/class-timedcontentplugin.php:935 msgid "" "Check that all of the conditions for this rule are correct, and use Show " "projected dates/times to ensure your rule is working properly." msgstr "" -#: lib/class-timed-content.php:1713 +#: lib/class-timedcontentplugin.php:1704 msgid "Content filter:" msgstr "" -#: lib/class-timed-content.php:184 +#: lib/class-timedcontentplugin.php:175 msgid "" "Create regular schedules to show or hide selected content in a page or post." msgstr "" -#: tinymce_plugin/dialog.php:114 +#: tinymce_plugin/dialog.php:112 msgid "Current Date/Time:" msgstr "" -#: lib/class-timed-content.php:1709 +#: lib/class-timedcontentplugin.php:1700 msgid "Current date:" msgstr "" -#: lib/class-timed-content.php:246 +#: lib/class-timedcontentplugin.php:229 msgid "Custom field deleted." msgstr "" -#: lib/class-timed-content.php:245 +#: lib/class-timedcontentplugin.php:228 msgid "Custom field updated." msgstr "" -#: lib/class-timed-content.php:70 +#: lib/class-timedcontentplugin.php:60 msgid "daily" msgstr "" -#: lib/class-custom-fields-interface.php:476 +#: lib/class-customfieldsinterface.php:482 msgctxt "Date field label" msgid "Date" msgstr "" -#: tinymce_plugin/dialog.php:120 tinymce_plugin/dialog.php:131 +#: tinymce_plugin/dialog.php:118 tinymce_plugin/dialog.php:129 msgctxt "Date field label" msgid "Date:" msgstr "" -#: lib/class-timed-content.php:2433 +#: lib/class-timedcontentplugin.php:2405 msgid "" "Dates that this Timed Content rule will not be active. Double-click on a " "date to remove it from the list." msgstr "" -#: lib/class-timed-content.php:102 +#: lib/class-timedcontentplugin.php:93 msgid "day" msgstr "" -#: lib/class-timed-content.php:2349 +#: lib/class-timedcontentplugin.php:2331 msgid "Day of the week" msgstr "" #. %1$s: shortcode, %2$s attribute in shortcode -#: lib/class-timed-content.php:1663 +#: lib/class-timedcontentplugin.php:1654 #, php-format msgid "" "Debugging has been turned on for a %1$s shortcode on this post/page. Only " @@ -133,48 +133,48 @@ msgid "" "shortcode." msgstr "" -#: lib/class-timed-content.php:297 +#: lib/class-timedcontentplugin.php:283 msgid "December" msgstr "" -#: lib/class-timed-content.php:2095 +#: lib/class-timedcontentplugin.php:2078 msgid "Description" msgstr "" -#: lib/class-timed-content.php:173 +#: lib/class-timedcontentplugin.php:164 msgid "Edit Timed Content rule" msgstr "" -#: lib/class-timed-content.php:2388 +#: lib/class-timedcontentplugin.php:2370 msgid "End Date" msgstr "" -#: lib/class-timed-content.php:606 +#: lib/class-timedcontentplugin.php:588 msgid "End date must not be empty." msgstr "" -#: lib/class-timed-content.php:588 +#: lib/class-timedcontentplugin.php:570 msgid "Ending date must not be empty." msgstr "" -#: lib/class-timed-content.php:2236 +#: lib/class-timedcontentplugin.php:2218 msgid "Ending date/time" msgstr "" -#: lib/class-timed-content.php:616 +#: lib/class-timedcontentplugin.php:598 msgid "Ending date/time must be valid." msgstr "" -#: lib/class-timed-content.php:591 +#: lib/class-timedcontentplugin.php:573 msgid "Ending time must not be empty." msgstr "" -#: lib/class-timed-content.php:1917 +#: lib/class-timedcontentplugin.php:1903 msgid "Error" msgstr "" #. %1$d: month count, %2$s: recurrence, %3$s: weekday -#: lib/class-timed-content.php:1150 +#: lib/class-timedcontentplugin.php:1143 #, php-format msgctxt "" "Example: 'Repeat this action every 2 months on the second Friday of the " @@ -183,50 +183,54 @@ msgid "Repeat this action every %1$d months on the %2$s %3$s of the month." msgstr "" #. %1$s: recurrence, %2$s: weekday -#: lib/class-timed-content.php:1139 +#: lib/class-timedcontentplugin.php:1132 #, php-format msgctxt "" "Example: 'Repeat this action every month on the second Friday of the month.'" msgid "Repeat this action every month on the %1$s %2$s of the month." msgstr "" -#: lib/class-timed-content.php:2432 +#: lib/class-timedcontentplugin.php:2404 msgid "Exception dates list" msgstr "" -#: lib/class-timed-content.php:2492 +#: lib/class-timedcontentplugin.php:2466 msgid "Exceptions" msgstr "" -#: lib/class-timed-content.php:287 +#: lib/class-timedcontentplugin.php:273 msgid "February" msgstr "" -#: lib/class-timed-content.php:87 +#: lib/class-timedcontentplugin.php:81 +msgid "fifth" +msgstr "" + +#: lib/class-timedcontentplugin.php:77 msgid "first" msgstr "" -#: lib/class-timed-content.php:90 +#: lib/class-timedcontentplugin.php:80 msgid "fourth" msgstr "" -#: lib/class-timed-content.php:2262 +#: lib/class-timedcontentplugin.php:2244 msgid "Frequency" msgstr "" -#: lib/class-timed-content.php:82 lib/class-timed-content.php:100 +#: lib/class-timedcontentplugin.php:72 lib/class-timedcontentplugin.php:91 msgid "Friday" msgstr "" -#: lib/class-timed-content.php:951 lib/class-timed-content.php:2214 +#: lib/class-timedcontentplugin.php:944 lib/class-timedcontentplugin.php:2196 msgid "Hide the content" msgstr "" -#: lib/class-timed-content.php:69 +#: lib/class-timedcontentplugin.php:59 msgid "hourly" msgstr "" -#: lib/class-timed-content.php:2374 +#: lib/class-timedcontentplugin.php:2356 msgid "How often to repeat this action" msgstr "" @@ -236,97 +240,97 @@ msgid "http://wordpress.org/plugins/timed-content/" msgstr "" #. %s: time difference -#: lib/class-timed-content.php:780 lib/class-timed-content.php:1641 -#: lib/class-timed-content.php:1654 +#: lib/class-timedcontentplugin.php:750 lib/class-timedcontentplugin.php:1632 +#: lib/class-timedcontentplugin.php:1645 #, php-format msgctxt "Human readable time difference" msgid "%s ago." msgstr "" #. %s: time difference -#: lib/class-timed-content.php:766 lib/class-timed-content.php:1635 -#: lib/class-timed-content.php:1648 +#: lib/class-timedcontentplugin.php:736 lib/class-timedcontentplugin.php:1626 +#: lib/class-timedcontentplugin.php:1639 #, php-format msgctxt "Human readable time difference" msgid "%s from now." msgstr "" -#: lib/class-timed-content.php:594 +#: lib/class-timedcontentplugin.php:576 msgid "Interval must not be empty." msgstr "" -#: lib/class-timed-content.php:2273 lib/class-timed-content.php:2284 -#: lib/class-timed-content.php:2295 lib/class-timed-content.php:2317 -#: lib/class-timed-content.php:2360 +#: lib/class-timedcontentplugin.php:2255 lib/class-timedcontentplugin.php:2266 +#: lib/class-timedcontentplugin.php:2277 lib/class-timedcontentplugin.php:2299 +#: lib/class-timedcontentplugin.php:2342 msgid "Interval of recurrences" msgstr "" -#: lib/class-timed-content.php:286 +#: lib/class-timedcontentplugin.php:272 msgid "January" msgstr "" -#: lib/class-timed-content.php:106 +#: lib/class-timedcontentplugin.php:97 msgctxt "jQuery UI Datepicker Close label" msgid "Done" msgstr "" -#: lib/class-timed-content.php:108 +#: lib/class-timedcontentplugin.php:99 msgctxt "jQuery UI Datepicker Next label" msgid "Next" msgstr "" -#: lib/class-timed-content.php:107 +#: lib/class-timedcontentplugin.php:98 msgctxt "jQuery UI Datepicker Previous label" msgid "Prev" msgstr "" -#: lib/class-timed-content.php:109 +#: lib/class-timedcontentplugin.php:100 msgctxt "jQuery UI Datepicker Today label" msgid "Today" msgstr "" -#: lib/class-timed-content.php:110 +#: lib/class-timedcontentplugin.php:101 msgctxt "jQuery UI Datepicker Week label" msgid "Wk" msgstr "" -#: lib/class-timed-content.php:145 +#: lib/class-timedcontentplugin.php:136 msgctxt "" "jQuery UI Datepicker: Character used to separate hours and minutes in " "translated language" msgid ":" msgstr "" -#: lib/class-timed-content.php:148 +#: lib/class-timedcontentplugin.php:139 msgctxt "jQuery UI Timepicker 'Deselect' label" msgid "Deselect" msgstr "" -#: lib/class-timed-content.php:146 +#: lib/class-timedcontentplugin.php:137 msgctxt "jQuery UI Timepicker 'Done' label" msgid "Done" msgstr "" -#: lib/class-timed-content.php:143 +#: lib/class-timedcontentplugin.php:134 msgctxt "jQuery UI Timepicker 'Hour' label" msgid "Hour" msgstr "" -#: lib/class-timed-content.php:144 +#: lib/class-timedcontentplugin.php:135 msgctxt "jQuery UI Timepicker 'Minute' label" msgid "Minute" msgstr "" -#: lib/class-timed-content.php:147 +#: lib/class-timedcontentplugin.php:138 msgctxt "jQuery UI Timepicker 'Now' label" msgid "Now" msgstr "" -#: lib/class-timed-content.php:292 +#: lib/class-timedcontentplugin.php:278 msgid "July" msgstr "" -#: lib/class-timed-content.php:291 +#: lib/class-timedcontentplugin.php:277 msgid "June" msgstr "" @@ -334,58 +338,58 @@ msgstr "" msgid "K. Tough, Arno Welzel, Enrico Bacis" msgstr "" -#: lib/class-timed-content.php:2378 +#: lib/class-timedcontentplugin.php:2360 msgid "Keep repeating until a given date" msgstr "" -#: lib/class-timed-content.php:91 +#: lib/class-timedcontentplugin.php:82 msgid "last" msgstr "" #. %1$s, %2$s, %3$s, %4$s, %5$s, %6$s, %7$s: weekday -#: lib/class-timed-content.php:1085 +#: lib/class-timedcontentplugin.php:1078 #, php-format msgctxt "List of all weekdays" msgid "%1$s, %2$s, %3$s, %4$s, %5$s, %6$s and %7$s" msgstr "" #. %1$s, %2$s, %3$s, %4$s, %5$s: weekday -#: lib/class-timed-content.php:1054 +#: lib/class-timedcontentplugin.php:1047 #, php-format msgctxt "List of five weekdays" msgid "%1$s, %2$s, %3$s, %4$s and %5$s" msgstr "" #. %1$s, %2$s, %3$s, %4$s: weekday -#: lib/class-timed-content.php:1040 +#: lib/class-timedcontentplugin.php:1033 #, php-format msgctxt "List of four weekdays" msgid "%1$s, %2$s, %3$s and %4$s" msgstr "" #. %1$s, %2$s, %3$s, %4$s, %5$s, %6$s: weekday -#: lib/class-timed-content.php:1069 +#: lib/class-timedcontentplugin.php:1062 #, php-format msgctxt "List of six weekdays" msgid "%1$s, %2$s, %3$s, %4$s, %5$s and %6$s" msgstr "" #. %1$s, %2$s, %3$s: weekday -#: lib/class-timed-content.php:1027 +#: lib/class-timedcontentplugin.php:1020 #, php-format msgctxt "List of three weekdays" msgid "%1$s, %2$s and %3$s" msgstr "" #. %1$s, %2$s: weekday -#: lib/class-timed-content.php:1019 +#: lib/class-timedcontentplugin.php:1012 #, php-format msgctxt "List of two weekdays" msgid "%1$s and %2$s" msgstr "" #. %1$d: number of weeks, %2$s: weekday -#: lib/class-timed-content.php:1113 +#: lib/class-timedcontentplugin.php:1106 #, php-format msgctxt "" "List the weekdays to repeat the rule when frequency is every %1$d weeks. " @@ -394,7 +398,7 @@ msgid "Repeat this action every %1$d weeks on %2$s." msgstr "" #. %s: weekday -#: lib/class-timed-content.php:1103 +#: lib/class-timedcontentplugin.php:1096 #, php-format msgctxt "" "List the weekdays to repeat the rule when frequency is every week. %s is the " @@ -403,88 +407,88 @@ msgid "Repeat this action every week on %s." msgstr "" #. date and time format to activate rule. http://ca2.php.net/manual/en/function.date.php -#: lib/class-timed-content.php:237 +#: lib/class-timedcontentplugin.php:220 msgid "M j, Y @ G:i" msgstr "" -#: lib/class-timed-content.php:288 +#: lib/class-timedcontentplugin.php:274 msgid "March" msgstr "" -#: lib/class-timed-content.php:290 +#: lib/class-timedcontentplugin.php:276 msgid "May" msgstr "" -#: lib/class-timed-content.php:167 +#: lib/class-timedcontentplugin.php:158 msgctxt "Menu item/button label on Timed Content Rules admin page" msgid "Add new" msgstr "" -#: lib/class-timed-content.php:78 lib/class-timed-content.php:96 +#: lib/class-timedcontentplugin.php:68 lib/class-timedcontentplugin.php:87 msgid "Monday" msgstr "" -#: lib/class-timed-content.php:72 +#: lib/class-timedcontentplugin.php:62 msgid "monthly" msgstr "" -#: lib/class-timed-content.php:174 +#: lib/class-timedcontentplugin.php:165 msgid "New Timed Content rule" msgstr "" -#: lib/class-timed-content.php:2020 +#: lib/class-timedcontentplugin.php:1992 msgctxt "No Timed Content Rule title" msgid "(no title)" msgstr "" -#: lib/class-timed-content.php:2029 +#: lib/class-timedcontentplugin.php:2001 msgid "No Timed Content Rules found" msgstr "" -#: lib/class-timed-content.php:177 +#: lib/class-timedcontentplugin.php:168 msgid "No Timed Content rules found" msgstr "" -#: lib/class-timed-content.php:178 +#: lib/class-timedcontentplugin.php:169 msgid "No Timed Content rules found in trash" msgstr "" -#: lib/class-timed-content.php:1714 +#: lib/class-timedcontentplugin.php:1705 msgctxt "Noun" msgid "Content:" msgstr "" -#: lib/class-timed-content.php:1660 +#: lib/class-timedcontentplugin.php:1651 msgctxt "Noun" msgid "Notice" msgstr "" -#: lib/class-timed-content.php:296 +#: lib/class-timedcontentplugin.php:282 msgid "November" msgstr "" -#: lib/class-timed-content.php:596 +#: lib/class-timedcontentplugin.php:578 msgid "Number of recurrences must be a number." msgstr "" -#: lib/class-timed-content.php:2398 +#: lib/class-timedcontentplugin.php:2380 msgid "Number of repetitions" msgstr "" -#: lib/class-timed-content.php:602 +#: lib/class-timedcontentplugin.php:584 msgid "Number of repetitions must be a number." msgstr "" -#: lib/class-timed-content.php:600 +#: lib/class-timedcontentplugin.php:582 msgid "Number of repetitions must not be empty." msgstr "" -#: lib/class-timed-content.php:295 +#: lib/class-timedcontentplugin.php:281 msgid "October" msgstr "" #. %1$s: action, %2$s: start date, %3$s: start time, %4$s: end date, %5$s: end time -#: lib/class-timed-content.php:971 +#: lib/class-timedcontentplugin.php:964 #, php-format msgctxt "" "Perform action (%1$s) from date/time of first active period (%2$s @ %3$s) " @@ -492,23 +496,23 @@ msgctxt "" msgid "%1$s on %2$s @ %3$s until %4$s @ %5$s." msgstr "" -#: tinymce_plugin/dialog.php:31 tinymce_plugin/dialog.php:37 +#: tinymce_plugin/dialog.php:29 tinymce_plugin/dialog.php:35 msgid "Please select an action to perform." msgstr "" -#: tinymce_plugin/dialog.php:34 +#: tinymce_plugin/dialog.php:32 msgid "Please set a date for the Hide action." msgstr "" -#: tinymce_plugin/dialog.php:32 +#: tinymce_plugin/dialog.php:30 msgid "Please set a date for the Show action." msgstr "" -#: tinymce_plugin/dialog.php:35 +#: tinymce_plugin/dialog.php:33 msgid "Please set a time for the Hide action." msgstr "" -#: tinymce_plugin/dialog.php:33 +#: tinymce_plugin/dialog.php:31 msgid "Please set a time for the Show action." msgstr "" @@ -519,317 +523,313 @@ msgid "" "server-side or client-side, depending on the desired effect." msgstr "" -#: lib/class-timed-content.php:165 lib/class-timed-content.php:180 +#: lib/class-timedcontentplugin.php:156 lib/class-timedcontentplugin.php:171 msgctxt "post type general name" msgid "Timed Content rules" msgstr "" -#: lib/class-timed-content.php:166 +#: lib/class-timedcontentplugin.php:157 msgctxt "post type singular name" msgid "Timed Content rule" msgstr "" -#: lib/class-timed-content.php:609 +#: lib/class-timedcontentplugin.php:591 msgid "Recurrence end date must be after ending date/time." msgstr "" -#: lib/class-timed-content.php:2379 +#: lib/class-timedcontentplugin.php:2361 msgid "Repeat a set number of times" msgstr "" -#: lib/class-timed-content.php:2328 +#: lib/class-timedcontentplugin.php:2310 msgid "Repeat on a specific weekday of the month" msgstr "" -#: lib/class-timed-content.php:2306 +#: lib/class-timedcontentplugin.php:2288 msgid "Repeat on the following days" msgstr "" #. %d numerical days value -#: lib/class-timed-content.php:997 -#, php-format +#: lib/class-timedcontentplugin.php:990 msgid "Repeat this action every %d day." msgid_plural "Repeat this action every %d days." msgstr[0] "" msgstr[1] "" #. %d numerical hours value -#: lib/class-timed-content.php:986 -#, php-format +#: lib/class-timedcontentplugin.php:979 msgid "Repeat this action every %d hour." msgid_plural "Repeat this action every %d hours." msgstr[0] "" msgstr[1] "" #. %d: month count -#: lib/class-timed-content.php:1163 -#, php-format +#: lib/class-timedcontentplugin.php:1156 msgid "Repeat this action every %d month." msgid_plural "Repeat this action every %d months." msgstr[0] "" msgstr[1] "" #. %d: number of weeks -#: lib/class-timed-content.php:1125 -#, php-format +#: lib/class-timedcontentplugin.php:1118 msgid "Repeat this action every %d week." msgid_plural "Repeat this action every %d weeks." msgstr[0] "" msgstr[1] "" #. %d: year count -#: lib/class-timed-content.php:1175 -#, php-format +#: lib/class-timedcontentplugin.php:1168 msgid "Repeat this action every %d year." msgid_plural "Repeat this action every %d years." msgstr[0] "" msgstr[1] "" -#: lib/class-timed-content.php:2285 +#: lib/class-timedcontentplugin.php:2267 msgid "Repeat this action every X days." msgstr "" -#: lib/class-timed-content.php:2274 +#: lib/class-timedcontentplugin.php:2256 msgid "Repeat this action every X hours." msgstr "" -#: lib/class-timed-content.php:2318 +#: lib/class-timedcontentplugin.php:2300 msgid "Repeat this action every X months." msgstr "" -#: lib/class-timed-content.php:2296 +#: lib/class-timedcontentplugin.php:2278 msgid "Repeat this action every X weeks." msgstr "" -#: lib/class-timed-content.php:2361 +#: lib/class-timedcontentplugin.php:2343 msgid "Repeat this action every X years." msgstr "" -#: lib/class-timed-content.php:2329 +#: lib/class-timedcontentplugin.php:2311 msgid "" "Repeat this action on a specific weekday of the month (for example, \"every " "third Tuesday\"). Check this box to select a pattern below." msgstr "" -#: lib/class-timed-content.php:2307 +#: lib/class-timedcontentplugin.php:2289 msgid "" "Repeat this action on these days of the week instead of the " "day of week the starting date/time falls on." msgstr "" -#: lib/class-timed-content.php:2472 +#: lib/class-timedcontentplugin.php:2446 msgid "Repeating Pattern" msgstr "" -#: lib/class-timed-content.php:775 +#: lib/class-timedcontentplugin.php:745 msgid "Right now!" msgstr "" -#: lib/class-timed-content.php:2445 +#: lib/class-timedcontentplugin.php:2425 msgid "Rule description/schedule" msgstr "" -#: lib/class-timed-content.php:83 lib/class-timed-content.php:101 +#: lib/class-timedcontentplugin.php:73 lib/class-timedcontentplugin.php:92 msgid "Saturday" msgstr "" -#: lib/class-timed-content.php:1898 +#: lib/class-timedcontentplugin.php:1884 msgctxt "" "Scheduled Dates/Times dialog - Beginning of active period table header" msgid "Start" msgstr "" -#: lib/class-timed-content.php:1908 +#: lib/class-timedcontentplugin.php:1894 msgctxt "Scheduled Dates/Times dialog - dialog header" msgid "Scheduled dates/times" msgstr "" -#: lib/class-timed-content.php:1903 +#: lib/class-timedcontentplugin.php:1889 msgctxt "Scheduled Dates/Times dialog - End of active period table header" msgid "End" msgstr "" -#: lib/class-timed-content.php:176 +#: lib/class-timedcontentplugin.php:167 msgid "Search Timed Content rules" msgstr "" -#: lib/class-timed-content.php:88 +#: lib/class-timedcontentplugin.php:78 msgid "second" msgstr "" -#: lib/class-timed-content.php:2422 +#: lib/class-timedcontentplugin.php:2395 msgid "Select a date to add to the exception dates list." msgstr "" -#: lib/class-timed-content.php:2339 +#: lib/class-timedcontentplugin.php:2321 msgid "" "Select a value for week of the month (for example \"first\", \"second\", etc." -")." +"). Please note, that \"fifth\" will skip months, where the day is not " +"repeated five times!" msgstr "" -#: lib/class-timed-content.php:2350 +#: lib/class-timedcontentplugin.php:2332 msgid "Select the day of week." msgstr "" -#: lib/class-timed-content.php:2250 +#: lib/class-timedcontentplugin.php:2232 msgid "Select the timezone you wish to use for this rule." msgstr "" -#: lib/class-timed-content.php:294 +#: lib/class-timedcontentplugin.php:280 msgid "September" msgstr "" -#: lib/class-timed-content.php:2483 +#: lib/class-timedcontentplugin.php:2457 msgid "Set how long or how many times the action should occur." msgstr "" -#: lib/class-timed-content.php:2473 +#: lib/class-timedcontentplugin.php:2447 msgid "Set how often the action should repeat." msgstr "" -#: lib/class-timed-content.php:2463 +#: lib/class-timedcontentplugin.php:2437 msgid "Set the action to be taken and when it should first run." msgstr "" -#: lib/class-timed-content.php:2493 +#: lib/class-timedcontentplugin.php:2467 msgid "Set up any exceptions to this Timed Content Rule." msgstr "" -#: lib/class-timed-content.php:2210 +#: lib/class-timedcontentplugin.php:2192 msgid "Sets the action to be performed when the rule is active." msgstr "" -#: lib/class-timed-content.php:2224 +#: lib/class-timedcontentplugin.php:2206 msgid "" "Sets the date and time for the beginning of the first active period for this " "rule." msgstr "" -#: lib/class-timed-content.php:2237 +#: lib/class-timedcontentplugin.php:2219 msgid "" "Sets the date and time for the end of the first active period for this rule." msgstr "" -#: lib/class-timed-content.php:2263 +#: lib/class-timedcontentplugin.php:2245 msgid "Sets the frequency at which the action should be repeated." msgstr "" -#: lib/class-timed-content.php:2096 +#: lib/class-timedcontentplugin.php:2079 msgid "Shortcode" msgstr "" -#: lib/class-timed-content.php:1914 lib/class-timed-content.php:2450 +#: lib/class-timedcontentplugin.php:1900 +#: lib/class-customfieldsinterface.php:197 msgid "Show projected dates/times" msgstr "" -#: lib/class-timed-content.php:949 lib/class-timed-content.php:2213 +#: lib/class-timedcontentplugin.php:942 lib/class-timedcontentplugin.php:2195 msgid "Show the content" msgstr "" -#: lib/class-timed-content.php:936 +#: lib/class-timedcontentplugin.php:933 msgid "" "Some problems have been detected. Although you can still publish this rule, " "it may not work the way you expect." msgstr "" -#: lib/class-timed-content.php:1918 +#: lib/class-timedcontentplugin.php:1904 msgid "" "Something unexpected has happened along the way. The specific details are " "below:" msgstr "" -#: lib/class-timed-content.php:582 +#: lib/class-timedcontentplugin.php:564 msgid "Starting date must not be empty." msgstr "" -#: lib/class-timed-content.php:2223 +#: lib/class-timedcontentplugin.php:2205 msgid "Starting date/time" msgstr "" -#: lib/class-timed-content.php:619 +#: lib/class-timedcontentplugin.php:601 msgid "Starting date/time must be before ending date/time." msgstr "" -#: lib/class-timed-content.php:613 +#: lib/class-timedcontentplugin.php:595 msgid "Starting date/time must be valid." msgstr "" -#: lib/class-timed-content.php:585 +#: lib/class-timedcontentplugin.php:567 msgid "Starting time must not be empty." msgstr "" -#: lib/class-timed-content.php:2482 +#: lib/class-timedcontentplugin.php:2456 msgid "Stopping Condition" msgstr "" -#: lib/class-timed-content.php:77 lib/class-timed-content.php:95 +#: lib/class-timedcontentplugin.php:67 lib/class-timedcontentplugin.php:86 msgid "Sunday" msgstr "" #. %s: attribute name -#: lib/class-timed-content.php:1680 lib/class-timed-content.php:1699 +#: lib/class-timedcontentplugin.php:1671 lib/class-timedcontentplugin.php:1690 #, php-format msgid "The %s attribute is currently set to" msgstr "" #. %s: attribute name -#: lib/class-timed-content.php:1674 lib/class-timed-content.php:1693 +#: lib/class-timedcontentplugin.php:1665 lib/class-timedcontentplugin.php:1684 #, php-format msgid "The %s attribute is not set or invalid." msgstr "" -#: lib/class-timed-content.php:1719 +#: lib/class-timedcontentplugin.php:1710 msgid "The plugin will hide the content." msgstr "" -#: lib/class-timed-content.php:1717 +#: lib/class-timedcontentplugin.php:1708 msgid "The plugin will show the content." msgstr "" -#: lib/class-timed-content.php:1683 lib/class-timed-content.php:1702 +#: lib/class-timedcontentplugin.php:1674 lib/class-timedcontentplugin.php:1693 msgid "The Timed Content plugin thinks the intended date/time is" msgstr "" -#: lib/class-timed-content.php:89 +#: lib/class-timedcontentplugin.php:79 msgid "third" msgstr "" -#: lib/class-custom-fields-interface.php:235 -#: lib/class-custom-fields-interface.php:261 -#: lib/class-custom-fields-interface.php:333 +#: lib/class-customfieldsinterface.php:256 +#: lib/class-customfieldsinterface.php:282 +#: lib/class-customfieldsinterface.php:352 msgid "This menu is empty." msgstr "" #. %d: number of recurrences -#: lib/class-timed-content.php:1188 -#, php-format +#: lib/class-timedcontentplugin.php:1181 msgid "This rule will be active for %d recurrence." msgid_plural "This rule will be active for %d recurrences." msgstr[0] "" msgstr[1] "" #. %s: end date -#: lib/class-timed-content.php:1197 +#: lib/class-timedcontentplugin.php:1190 #, php-format msgid "This rule will be active until %s." msgstr "" #. %s: list of dates -#: lib/class-timed-content.php:1209 +#: lib/class-timedcontentplugin.php:1202 #, php-format msgid "This rule will be inactive on the following dates: %s." msgstr "" -#: lib/class-timed-content.php:81 lib/class-timed-content.php:99 +#: lib/class-timedcontentplugin.php:71 lib/class-timedcontentplugin.php:90 msgid "Thursday" msgstr "" -#: lib/class-custom-fields-interface.php:482 +#: lib/class-customfieldsinterface.php:488 msgctxt "Time field label" msgid "Time" msgstr "" -#: tinymce_plugin/dialog.php:122 tinymce_plugin/dialog.php:133 +#: tinymce_plugin/dialog.php:120 tinymce_plugin/dialog.php:131 msgctxt "Time field label" msgid "Time:" msgstr "" @@ -838,68 +838,68 @@ msgstr "" msgid "Timed Content" msgstr "" -#: lib/class-timed-content.php:2131 +#: lib/class-timedcontentplugin.php:2115 msgid "Timed Content rule" msgid_plural "Timed Content rules" msgstr[0] "" msgstr[1] "" -#: lib/class-timed-content.php:264 +#: lib/class-timedcontentplugin.php:247 msgid "Timed Content Rule draft updated." msgstr "" -#: lib/class-timed-content.php:2148 +#: lib/class-timedcontentplugin.php:2131 msgid "Timed Content rule pending" msgid_plural "Timed Content rules pending" msgstr[0] "" msgstr[1] "" -#: lib/class-timed-content.php:256 +#: lib/class-timedcontentplugin.php:239 msgid "Timed Content Rule published." msgstr "" #. %s: date and time of the revision -#: lib/class-timed-content.php:250 +#: lib/class-timedcontentplugin.php:233 #, php-format msgid "Timed Content Rule restored to revision from %s" msgstr "" -#: lib/class-timed-content.php:257 +#: lib/class-timedcontentplugin.php:240 msgid "Timed Content Rule saved." msgstr "" #. %s: date and time to activate rule. -#: lib/class-timed-content.php:261 +#: lib/class-timedcontentplugin.php:244 #, php-format msgid "Timed Content Rule scheduled for: %s." msgstr "" -#: lib/class-timed-content.php:258 +#: lib/class-timedcontentplugin.php:241 msgid "Timed Content Rule submitted." msgstr "" -#: lib/class-timed-content.php:244 lib/class-timed-content.php:247 +#: lib/class-timedcontentplugin.php:227 lib/class-timedcontentplugin.php:230 msgid "Timed Content Rule updated." msgstr "" -#: lib/class-timed-content.php:2249 +#: lib/class-timedcontentplugin.php:2231 msgid "Timezone" msgstr "" -#: tinymce_plugin/dialog.php:101 tinymce_plugin/dialog.php:151 -#: tinymce_plugin/dialog.php:173 +#: tinymce_plugin/dialog.php:99 tinymce_plugin/dialog.php:149 +#: tinymce_plugin/dialog.php:171 msgctxt "TinyMCE Dialog - Cancel button HTML label" msgid "Cancel" msgstr "" -#: tinymce_plugin/dialog.php:57 +#: tinymce_plugin/dialog.php:55 msgctxt "TinyMCE Dialog - Client tab instructions" msgid "" "Select the actions you wish to perform and the times after the Page/Post is " "loaded when they should occur." msgstr "" -#: tinymce_plugin/dialog.php:46 +#: tinymce_plugin/dialog.php:44 msgctxt "TinyMCE Dialog - Client tab label" msgid "Client" msgstr "" @@ -910,165 +910,165 @@ msgid "Add Timed Content shortcodes" msgstr "" #. %s: tag name -#: tinymce_plugin/dialog.php:94 +#: tinymce_plugin/dialog.php:92 #, php-format msgctxt "TinyMCE Dialog - Display mode
HTML description" msgid "Enclose content using %s tags (block-level)" msgstr "" #. %s: tag name -#: tinymce_plugin/dialog.php:96 +#: tinymce_plugin/dialog.php:94 #, php-format msgctxt "TinyMCE Dialog - Display mode HTML description" msgid "Enclose content using %s tags (inline)" msgstr "" -#: tinymce_plugin/dialog.php:92 +#: tinymce_plugin/dialog.php:90 msgctxt "TinyMCE Dialog - Display Mode label" msgid "Display Mode" msgstr "" -#: tinymce_plugin/dialog.php:69 +#: tinymce_plugin/dialog.php:67 msgctxt "TinyMCE Dialog - Fade-in label" msgid "Fade in (ms):" msgstr "" -#: tinymce_plugin/dialog.php:85 +#: tinymce_plugin/dialog.php:83 msgctxt "TinyMCE Dialog - Fade-out label" msgid "Fade out (ms):" msgstr "" -#: tinymce_plugin/dialog.php:77 tinymce_plugin/dialog.php:129 +#: tinymce_plugin/dialog.php:75 tinymce_plugin/dialog.php:127 msgctxt "TinyMCE Dialog - Hide action label" msgid "Hide" msgstr "" -#: tinymce_plugin/dialog.php:100 tinymce_plugin/dialog.php:150 -#: tinymce_plugin/dialog.php:172 +#: tinymce_plugin/dialog.php:98 tinymce_plugin/dialog.php:148 +#: tinymce_plugin/dialog.php:170 msgctxt "TinyMCE Dialog - Insert button HTML label" msgid "Insert" msgstr "" -#: tinymce_plugin/dialog.php:71 tinymce_plugin/dialog.php:87 +#: tinymce_plugin/dialog.php:69 tinymce_plugin/dialog.php:85 msgctxt "TinyMCE Dialog - Optional checkbox HTML label" msgid "Optional" msgstr "" -#: tinymce_plugin/dialog.php:50 +#: tinymce_plugin/dialog.php:48 msgctxt "TinyMCE Dialog - Rules tab label" msgid "Timed Content Rules" msgstr "" -#: tinymce_plugin/dialog.php:111 +#: tinymce_plugin/dialog.php:109 msgctxt "TinyMCE Dialog - Server debugging label" msgid "" "Add debugging messages (Only logged-in users who can edit this Post/Page " "will see them)" msgstr "" -#: tinymce_plugin/dialog.php:107 +#: tinymce_plugin/dialog.php:105 msgctxt "TinyMCE Dialog - Server tab instructions" msgid "" "Select the actions you wish to perform and the dates/times when they should " "occur." msgstr "" -#: tinymce_plugin/dialog.php:48 +#: tinymce_plugin/dialog.php:46 msgctxt "TinyMCE Dialog - Server tab label" msgid "Server" msgstr "" -#: tinymce_plugin/dialog.php:61 tinymce_plugin/dialog.php:118 +#: tinymce_plugin/dialog.php:59 tinymce_plugin/dialog.php:116 msgctxt "TinyMCE Dialog - Show action label" msgid "Show" msgstr "" -#: tinymce_plugin/dialog.php:63 tinymce_plugin/dialog.php:79 +#: tinymce_plugin/dialog.php:61 tinymce_plugin/dialog.php:77 msgctxt "TinyMCE Dialog - Time count label" msgid "Time (mm:ss):" msgstr "" -#: tinymce_plugin/dialog.php:159 +#: tinymce_plugin/dialog.php:157 msgctxt "TinyMCE Dialog - Timed Content Rules HTML label" msgid "Select a city whose timezone you wish to use:" msgstr "" -#: tinymce_plugin/dialog.php:139 +#: tinymce_plugin/dialog.php:137 msgctxt "TinyMCE Dialog - Timezone fieldset label" msgid "Timezone" msgstr "" -#: lib/class-timed-content.php:79 lib/class-timed-content.php:97 +#: lib/class-timedcontentplugin.php:69 lib/class-timedcontentplugin.php:88 msgid "Tuesday" msgstr "" -#: lib/class-timed-content.php:2399 +#: lib/class-timedcontentplugin.php:2381 msgid "Using the settings above, repeat this action this many times." msgstr "" -#: lib/class-timed-content.php:2389 +#: lib/class-timedcontentplugin.php:2371 msgid "Using the settings above, repeat this action until this date." msgstr "" -#: lib/class-timed-content.php:175 +#: lib/class-timedcontentplugin.php:166 msgid "View Timed Content rule" msgstr "" -#: lib/class-timed-content.php:935 +#: lib/class-timedcontentplugin.php:932 msgid "Warning!" msgstr "" -#: lib/class-timed-content.php:80 lib/class-timed-content.php:98 +#: lib/class-timedcontentplugin.php:70 lib/class-timedcontentplugin.php:89 msgid "Wednesday" msgstr "" -#: lib/class-timed-content.php:2338 +#: lib/class-timedcontentplugin.php:2320 msgid "Weekday ordinal" msgstr "" -#: lib/class-timed-content.php:71 +#: lib/class-timedcontentplugin.php:61 msgid "weekly" msgstr "" -#: tinymce_plugin/dialog.php:30 tinymce_plugin/dialog.php:36 +#: tinymce_plugin/dialog.php:28 tinymce_plugin/dialog.php:34 msgid "" "When using both Show and Hide actions, the Hide time must be later than the " "Show time." msgstr "" -#: tinymce_plugin/dialog.php:29 +#: tinymce_plugin/dialog.php:27 msgid "When using the Hide action, the Hide time must be at least 1 second." msgstr "" -#: tinymce_plugin/dialog.php:28 +#: tinymce_plugin/dialog.php:26 msgid "When using the Show action, the Show time must be at least 1 second." msgstr "" -#: tinymce_plugin/dialog.php:147 +#: tinymce_plugin/dialog.php:145 msgid "WordPress Timezone:" msgstr "" -#: lib/class-timed-content.php:73 +#: lib/class-timedcontentplugin.php:63 msgid "yearly" msgstr "" -#: lib/class-custom-fields-interface.php:317 +#: lib/class-customfieldsinterface.php:336 msgid "Yes" msgstr "" diff --git a/lib/class-timedcontentplugin.php b/lib/class-timedcontentplugin.php index 222cdbf..1ef5f6e 100644 --- a/lib/class-timedcontentplugin.php +++ b/lib/class-timedcontentplugin.php @@ -79,6 +79,7 @@ function init() { 2 => __( 'third', 'timed-content' ), 3 => __( 'fourth', 'timed-content' ), 4 => __( 'last', 'timed-content' ), + 5 => __( 'fifth', 'timed-content' ), ); $this->rule_ordinal_days_array = array( @@ -424,17 +425,20 @@ function get_next_month( $current, $start, $interval_multiplier ) { /** * Advances a date to the 'n'th weekday of the next month (eg., first Wednesday, third Monday, last Friday, etc.). * - * Note: If $ordinal is set to '4' and $day is set to '7', it wil return the last day of the month. + * Note: If $ordinal is set to '4' and $day is set to '7', it will return the last day of the month. */ function get_nth_weekday_of_month( $current, $ordinal, $day ) { // First, get the month/year we need to work with - $the_month = $this->format_timestamp( 'F', $current ); + $the_month = $this->format_timestamp( 'm', $current ); $the_year = $this->format_timestamp( 'Y', $current ); $last_day_this_month = $this->format_timestamp( 't', $current ); // Get the time for the $current timestamp - $current_time = $this->format_timestamp( 'g:i A', $current ); - $the_day = ''; + $the_hour = $this->format_timestamp( 'H', $current ); + $the_minute = $this->format_timestamp( 'i', $current ); + + // The target day + $the_day = ''; if ( 7 === $day ) { // If $day is "day of the month", get the day of month based on the ordinal switch ( $ordinal ) { @@ -451,6 +455,7 @@ function get_nth_weekday_of_month( $current, $ordinal, $day ) { $the_day = '4'; break; // Fourth day of the month // case 4: + case 5: $the_day = $last_day_this_month; break; // Last day of the month // default: @@ -473,6 +478,7 @@ function get_nth_weekday_of_month( $current, $ordinal, $day ) { $day_range = range( 22, 28 ); break; // Fourth 7 days of the month // case 4: + case 5: $day_range = range( $last_day_this_month - 6, $last_day_this_month ); break; // Last 7 days of the month // default: @@ -480,18 +486,43 @@ function get_nth_weekday_of_month( $current, $ordinal, $day ) { break; } foreach ( $day_range as $a_day ) { // ...and find the matching weekday in that range. - if ( $this->format_timestamp( 'w', strtotime( $the_month . ' ' . $a_day . ', ' . $the_year ) ) === $day ) { + $date_test = date_create_from_format('Y-m-d H:i', sprintf( '%04d-%02d-%02d 00:00', $the_year, $the_month, $a_day ) ); + if ( $date_test->format( 'w') === $day ) { $the_day = $a_day; break; } } - } - // Build the date string for the correct day and return its timestamp - $pattern = $the_month . ' ' . $the_day . ', ' . $the_year . ', ' . $current_time; + // If this should be the fifth day of the month, it may happen + // that the fourth and last day are identical - then you gave + // go on to the next month + if ('5' === $ordinal) { + $day_range = range( 22, 28 ); + foreach ( $day_range as $a_day ) { // ...and find the matching weekday in that range. + $date_test = date_create_from_format('Y-m-d H:i', sprintf( '%04d-%02d-%02d 00:00', $the_year, $the_month, $a_day ) ); + if ( $date_test->format( 'w') === $day ) { + $the_day_previous = $a_day; + break; + } + } + + if ($the_day_previous === $the_day) { + $the_day = 1; + $the_month++; + if ($the_month > 12) { + $the_month = 1; + $the_year++; + } + $date = date_create_from_format( 'Y-m-d H:i', sprintf( '%04d-%02d-%02d %02d:%02d', $the_year, $the_month, $the_day, $the_hour, $the_minute ) ); + $current_next_month = $date->getTimestamp(); - return strtotime( $pattern ); + return $this->get_nth_weekday_of_month( $current_next_month, $ordinal, $day ); + } + } + } + $date = date_create_from_format( 'Y-m-d H:i', sprintf( '%04d-%02d-%02d %02d:%02d', $the_year, $the_month, $the_day, $the_hour, $the_minute ) ); + return $date->getTimestamp(); } /** @@ -2284,7 +2315,7 @@ function setup_custom_fields() { 'name' => 'monthly_nth_weekday_of_month_nth', 'display' => 'none', 'title' => __( 'Weekday ordinal', 'timed-content' ), - 'description' => __( 'Select a value for week of the month (for example "first", "second", etc.).', 'timed-content' ), + 'description' => __( 'Select a value for week of the month (for example "first", "second", etc.). Please note, that "fifth" will skip months, where the day is not repeated five times!', 'timed-content' ), 'type' => 'list', 'default' => 0, 'values' => $this->rule_ordinal_array, diff --git a/readme.txt b/readme.txt index b33e10a..aef8c78 100644 --- a/readme.txt +++ b/readme.txt @@ -3,8 +3,8 @@ Contributors: kjvtough, awelzel Tags: timed content, marketing tool, schedule Requires at least: 3.8 -Tested up to: 6.6 -Stable tag: 2.90 +Tested up to: 6.7 +Stable tag: 2.91 License: GPL2 Plugin to show or hide portions of a Page or Post based on specific date/time characteristics. @@ -62,6 +62,11 @@ If you want to use Timed Content with Gutenberg you have to add a "Classic" bloc == Changelog == += 2.91 = + +* Updated compatibility information for WordPress. +* Added additional weekday ordinal "fifth", where only the fifth ordinal of a weekday of a month will be used if it exists and not the last ordinal, regardless if the weekday is repeated four or five times. + = 2.90 = * Use WordPress timezone setting as default for new server side rules and when server side shortcodes don't contain a diff --git a/timed-content.php b/timed-content.php index c8af520..bc93aad 100644 --- a/timed-content.php +++ b/timed-content.php @@ -6,7 +6,7 @@ Plugin URI: http://wordpress.org/plugins/timed-content/ Description: Plugin to show or hide portions of a Page or Post based on specific date/time characteristics. These actions can either be processed either server-side or client-side, depending on the desired effect. Author: K. Tough, Arno Welzel, Enrico Bacis -Version: 2.90 +Version: 2.91 Author URI: http://wordpress.org/plugins/timed-content/ */ defined( 'ABSPATH' ) or die(); @@ -14,7 +14,7 @@ require 'lib/class-customfieldsinterface.php'; require 'lib/class-timedcontentplugin.php'; -define( 'TIMED_CONTENT_VERSION', '2.90' ); +define( 'TIMED_CONTENT_VERSION', '2.91' ); define( 'TIMED_CONTENT_SLUG', 'timed-content' ); define( 'TIMED_CONTENT_PLUGIN_URL', plugins_url() . '/' . TIMED_CONTENT_SLUG ); define( 'TIMED_CONTENT_SHORTCODE_CLIENT', 'timed-content-client' );