From 9726a9deea5afa6ebf07c83931d36cf3c8ed71ce Mon Sep 17 00:00:00 2001 From: Aricura Date: Thu, 22 May 2014 13:45:52 +0000 Subject: [PATCH] - Update: Translation for support link and new setting option - Add: Label to display the user the short code to not display the 'love me' slug git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@919411 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- classes/footnotes_settings.php | 24 +++++++- languages/footnotes-de.mo | Bin 3227 -> 3509 bytes languages/footnotes-de.po | 105 +++++++++++++++++++-------------- languages/footnotes-en.mo | Bin 3183 -> 3479 bytes languages/footnotes-en.po | 105 +++++++++++++++++++-------------- readme.txt | 8 ++- 6 files changed, 149 insertions(+), 93 deletions(-) diff --git a/classes/footnotes_settings.php b/classes/footnotes_settings.php index 5d48a72..e8181b0 100644 --- a/classes/footnotes_settings.php +++ b/classes/footnotes_settings.php @@ -251,6 +251,16 @@ class Class_FootnotesSettings echo '

'; } + /** + * outputs a simple text + * @param string $p_str_Text + * @since 1.1.1 + */ + function AddText($p_str_Text) + { + echo '' . $p_str_Text . ''; + } + /** * outputs a label for a specific input/select box * @param string $p_str_SettingsID @@ -272,10 +282,11 @@ class Class_FootnotesSettings * @param string $p_str_SettingsID [id of the settings field] * @param string $p_str_ClassName [css class name] * @param int $p_str_MaxLength [max length for the input value] + * @param bool $p_bool_Readonly [input is readonly] in version 1.1.1 * @since 1.0-beta * removed optional paremter for a label in version 1.0.7 */ - function AddTextbox($p_str_SettingsID, $p_str_ClassName = "", $p_str_MaxLength = 0) + function AddTextbox($p_str_SettingsID, $p_str_ClassName = "", $p_str_MaxLength = 0, $p_bool_Readonly = false) { /* collect data for given settings field */ $l_arr_Data = $this->LoadSetting($p_str_SettingsID); @@ -288,8 +299,12 @@ class Class_FootnotesSettings if (!empty($p_str_MaxLength)) { $p_str_MaxLength = ' maxlength="' . $p_str_MaxLength . '"'; } + + if ($p_bool_Readonly) { + $p_bool_Readonly = ' readonly="readonly"'; + } /* outputs an input field type TEXT */ - echo ''; + echo ''; } /** @@ -469,6 +484,11 @@ class Class_FootnotesSettings ); $this->AddLabel(FOOTNOTE_INPUTFIELD_LOVE, sprintf(__("Tell the world you're using %s:", FOOTNOTES_PLUGIN_NAME), FOOTNOTES_PLUGIN_PUBLIC_NAME)); $this->AddSelectbox(FOOTNOTE_INPUTFIELD_LOVE, $l_arr_Options, "footnote_plugin_50"); + $this->AddNewline(); + + /* no 'love me' on specific pages */ + $this->AddLabel("", sprintf(__("Don't tell the world you're using %s on specific pages by adding the following short code:", FOOTNOTES_PLUGIN_NAME), FOOTNOTES_PLUGIN_PUBLIC_NAME)); + $this->AddText(FOOTNOTES_NO_SLUGME_PLUG); } /** diff --git a/languages/footnotes-de.mo b/languages/footnotes-de.mo index 125fe9988c6247ecf3c8a2f9332ce15dd0cd5aae..552eddffe291e8f5489694c5c0bf148860f914ca 100755 GIT binary patch delta 1180 zcmZY7O-vI(6u|K*U*$tUP(cKAL_Pwwq!gME3^6fyK@x#tFhmb)JHVP{+jN&UHpY^e zc;VP^@?gCAanUqfOpG@#B!0w;Clb9F4jQi>O#HtVz4*fHZ)e%gy!U1wcI|c-_SB1FXdXE|)Nbl9+qwHcDM9A2V2J(IEH@;rvN(!)9LA?83w=VV@ay6H7dA7mXSH_hz!Nx(c{00*N14BBP^uUA za0n0ZEVeaP5*^0~`>V^`j9?bK@iEH6ukjjwKuKVbbC61>k+sw!p2HhRacT=E@d2L3 zH;3*cO;x{<+*Q>PrCPB83-V$YH`2OEl*(pNo?l0bQ8^sJ0?LNZP>$doPUAfyv3$`| zp=KN_)mAqLf-@<1$k%>xtG0JSr(Er&O~PKa6FP0J8BgE3qpf7pcGtAOZuDx(aZ)*% zdF!c+uM??cskJ5@2*x+lX&w~s)qZcc-SWFRJGo|jZDovAyj{026V+p}sflPPG8Tz6 z&R-2Lnyl^FDK|W0`DRK-BV!ZcNGu$!yfnPMzBP>KY9R4vUj z&#zmKZ!&swLnmR`IBe%?W4n3dxW?6SWBcIRiFIFZ*nWP~H@0Kk^EzpHo{rl_4|qCj qGCAWWja%wzjQ=a88;n>3p?O|{WRV{J{1sBLZCR7*?!fwV!2v{GrVA^}qi)}(AAcyg_x zcwfBKL;r|Sya|GMDd}Phe%)Il?><&$bWVN3s^>Svqw0Gk8uRwbo`7I$9^I?*>6064(F!t22hE3sEsUi##b>I zXP{0;3+;^V4(T6L)km>R<3CyrSpzE>{}O z$+BOmH8v~Fx<8*^YgX4Qwfs`muif3O`uWR^hg(~9zj-E{UJY*JS8 diff --git a/languages/footnotes-de.po b/languages/footnotes-de.po index 38dbb5c..541fab5 100755 --- a/languages/footnotes-de.po +++ b/languages/footnotes-de.po @@ -1,9 +1,9 @@ msgid "" msgstr "" "Project-Id-Version: footnotes\n" -"POT-Creation-Date: 2014-05-21 20:28+0100\n" -"PO-Revision-Date: 2014-05-21 20:30+0100\n" -"Last-Translator: Stefan Herndler \n" +"POT-Creation-Date: 2014-05-22 15:42+0100\n" +"PO-Revision-Date: 2014-05-22 15:43+0100\n" +"Last-Translator: SHE \n" "Language-Team: SHE \n" "Language: de\n" "MIME-Version: 1.0\n" @@ -18,127 +18,148 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Poedit-SearchPath-0: .\n" -#: classes/footnotes_settings.php:366 +#: classes/footnotes.php:68 +msgid "You must be logged in to run this script." +msgstr "Sie müssen angemeldet sein um diese Funktion ausführen zu können." + +#: classes/footnotes.php:73 +msgid "You do not have permission to run this script." +msgstr "Sie haben nicht die Berechtigung diese Funktion auszuführen." + +#: classes/footnotes_settings.php:381 msgid "General" msgstr "Allgemein" -#: classes/footnotes_settings.php:368 +#: classes/footnotes_settings.php:383 #, php-format msgid "%s Settings" msgstr "%s Einstellungen" -#: classes/footnotes_settings.php:369 +#: classes/footnotes_settings.php:384 msgid "References Container" msgstr "Einzelnachweise" -#: classes/footnotes_settings.php:370 +#: classes/footnotes_settings.php:385 msgid "Footnotes styling" msgstr "Layout der Fußnoten" -#: classes/footnotes_settings.php:371 +#: classes/footnotes_settings.php:386 msgid "Other" msgstr "Andere" -#: classes/footnotes_settings.php:391 +#: classes/footnotes_settings.php:406 msgid "References label:" msgstr "Überschrift \"Einzelnachweis\":" -#: classes/footnotes_settings.php:396 +#: classes/footnotes_settings.php:411 msgid "Collapse references by default:" msgstr "Verstecke Einzelnachweise standardmäßig:" -#: classes/footnotes_settings.php:405 +#: classes/footnotes_settings.php:420 msgid "in the footer" msgstr "am Ende der Seite" -#: classes/footnotes_settings.php:406 +#: classes/footnotes_settings.php:421 msgid "at the end of the post" msgstr "nach einem Beitrag" -#: classes/footnotes_settings.php:408 +#: classes/footnotes_settings.php:422 +msgid "in the widget area" +msgstr "im Widget" + +#: classes/footnotes_settings.php:424 msgid "Where shall the reference container appear:" msgstr "Positionierung der Einzelnachweise:" -#: classes/footnotes_settings.php:420 classes/footnotes_settings.php:457 -#: classes/footnotes_settings.php:466 +#: classes/footnotes_settings.php:436 classes/footnotes_settings.php:473 +#: classes/footnotes_settings.php:482 msgid "Yes" msgstr "Ja" -#: classes/footnotes_settings.php:421 classes/footnotes_settings.php:458 -#: classes/footnotes_settings.php:467 +#: classes/footnotes_settings.php:437 classes/footnotes_settings.php:474 +#: classes/footnotes_settings.php:483 msgid "No" msgstr "Nein" -#: classes/footnotes_settings.php:423 +#: classes/footnotes_settings.php:439 msgid "Combine identical footnotes:" msgstr "Kombiniere meine Fußnoten:" -#: classes/footnotes_settings.php:428 +#: classes/footnotes_settings.php:444 msgid "Footnote tag starts with:" msgstr "Fußnoten starten mit:" -#: classes/footnotes_settings.php:432 +#: classes/footnotes_settings.php:448 msgid "and ends with:" msgstr "und endet mit:" -#: classes/footnotes_settings.php:439 +#: classes/footnotes_settings.php:455 msgid "Arabic Numbers - Plain" msgstr "arabische Ziffern" -#: classes/footnotes_settings.php:440 +#: classes/footnotes_settings.php:456 msgid "Arabic Numbers - Leading 0" msgstr "arabisch Ziffern - führende Null" -#: classes/footnotes_settings.php:441 +#: classes/footnotes_settings.php:457 msgid "Latin Character - lower case" msgstr "alphabetisch - Kleinschreibung" -#: classes/footnotes_settings.php:442 +#: classes/footnotes_settings.php:458 msgid "Latin Character - upper case" msgstr "alphabetisch - Großschreibung" -#: classes/footnotes_settings.php:443 +#: classes/footnotes_settings.php:459 msgid "Roman Numerals" msgstr "Römische Ziffern" -#: classes/footnotes_settings.php:445 +#: classes/footnotes_settings.php:461 msgid "Counter style:" msgstr "Fußnoten Zähler:" -#: classes/footnotes_settings.php:460 +#: classes/footnotes_settings.php:476 msgid "Allow footnotes on Summarized Posts:" msgstr "Erlaube Fußnoten in Zusammenfassungen:" -#: classes/footnotes_settings.php:469 +#: classes/footnotes_settings.php:485 #, php-format msgid "Tell the world you're using %s:" msgstr "Teile der Welt mit, dass du %s verwendest:" -#: classes/footnotes_settings.php:482 +#: classes/footnotes_settings.php:490 +#, php-format +msgid "" +"Don't tell the world you're using %s on specific pages by adding the " +"following short code:" +msgstr "" +"Platzhalter um der Welt an einzelnen Seiten nicht mitzuteilen, dass Sie %s " +"verwenden:" + +#: classes/footnotes_settings.php:503 msgid "HowTo" msgstr "Hilfe" -#: classes/footnotes_settings.php:485 +#: classes/footnotes_settings.php:506 msgid "Brief introduction in how to use the plugin" msgstr "Kurze Anleitung für die Verwendung des Plugins." -#: classes/footnotes_settings.php:511 +#: classes/footnotes_settings.php:532 msgid "Start your footnote with the following shortcode:" msgstr "Starten Sie eine Fußnote mit:" -#: classes/footnotes_settings.php:517 +#: classes/footnotes_settings.php:538 msgid "...and end your footnote with this shortcode:" msgstr "...und beenden Sie diese mit:" -#: classes/footnotes_settings.php:525 classes/footnotes_settings.php:528 +#: classes/footnotes_settings.php:546 classes/footnotes_settings.php:549 msgid "example string" msgstr "Beispieltext" -#: classes/footnotes_settings.php:526 +#: classes/footnotes_settings.php:547 msgid "will be displayed as:" msgstr "wird dargestellt als:" -#: classes/footnotes_settings.php:533 +#: classes/footnotes_settings.php:554 #, php-format msgid "If you have any questions, please don't hesitate to %se-mail%s us." msgstr "Bei Fragen können Sie uns gerne eine %se-Mail%s senden." @@ -147,19 +168,15 @@ msgstr "Bei Fragen können Sie uns gerne eine %se-Mail%s senden." msgid "Settings" msgstr "Einstellungen" -#: includes/replacer.php:180 +#: includes/plugin-settings.php:24 +msgid "Support" +msgstr "Support" + +#: includes/replacer.php:187 #, php-format msgid "Hey there, I'm using the awesome WordPress Plugin called %s" msgstr "Diese Seite verwendet das %s Plugin" -#: includes/uninstall.php:26 -msgid "You must be logged in to run this script." -msgstr "Sie müssen angemeldet sein um diese Funktion ausführen zu können." - -#: includes/uninstall.php:31 -msgid "You do not have permission to run this script." -msgstr "Sie haben nicht die Berechtigung diese Funktion auszuführen." - #~ msgid "starts with:" #~ msgstr "beginnt mit:" diff --git a/languages/footnotes-en.mo b/languages/footnotes-en.mo index e7f4e84b7fd995307884fc1a4ed6574691f77ec9..12831600b294e6c0afa0a8a4334fa328471b4321 100755 GIT binary patch delta 1172 zcmbu;KTH#07{~Fq&{9AFMMV(7R|E}QO0G?tm^zS{4hBf%kAopG@t_BsY3`cdNkgOJ zpOLXK>`odNO?7cK>0+XZE>0%kU>uANE^dCGUL6RdPx{{H-sX7U=lxyz*}pTm^`$rZ zSW)L0rx~*mr80P@g$p&;s?;Hz#{}NMQQXE;_yYUz9U8cYXRtdOt~ZI@%x7>3mv8`I z<58uy)CX?je6fp{@H@tEjLT&-P#SZaZlm<}6#1yo z+QJ4W&|rTx%?(Yf4V=UZj^i_wg+8I2aIZQ4gI&zqS*;iQ@C1%yh0dl>5_{7TCRWE$ z=D$%A8|VzzOQXU5YK9w$tc-Hf9h8k_E6I}feXmt)LoRs9-*vL zZ~7G_F?Be6t`#M*4&0Ijhq;jrO_a!{P$Ij6vQY)4!G~zz6O_c>qa^kbC9w#x$T|i} zV%g?=9{H%7TqH3UC9wxxUU62P6xmX4@x|N4B41SR#eVcUZsXaqlV7s~ZIx`RdaG?dm(s~hHk~req-l1}T}>?5 z8;1-)$RyyF)O)~21;mY-FB0qgjnI{*Lx delta 908 zcmX}qzi$$87{~DkC_M^=3bu$=@hUa3ViAZ&L+g*UYD{dqsDp_PBx0LbfgI?H#l*Nc z5o2`mk6`NHs7nVov5A9;lQF(OaQaOiUf;W1zV|$ze_LS``>!+D&-SzN{gxPfVWf_Z$6hw(k?yswzR(1_W7OkomFpkvmt^K2Hl zaRtNJ#U*@(I$+258>*);59zrGKa-e19hgJC=rl&~5|(fk)ldi3;2WeT+ra|ww-0RQ zxbX*dz_HQcL}yUfYZ%8nIEDA|DV=Pgl8KBBlbOU>u9r~BtfP|YqF($8)yO;4U|%r7 z`z;t9Mw3KMl1HMkb9fvtBfVJ@mCPg50o%SGQOW#7J@*Th%x~0rNxIY^IaD%bR5AOP&rB+YLU)hsiCaD*OZD@v1&psC9#jvOErN>^)i z&<-1Q@Ag+i@jx#dyV;M1Gl5=re7Cn1Pxmf36{qBui\n" +"POT-Creation-Date: 2014-05-22 15:42+0100\n" +"PO-Revision-Date: 2014-05-22 15:42+0100\n" +"Last-Translator: SHE \n" "Language-Team: SHE \n" "Language: en\n" "MIME-Version: 1.0\n" @@ -18,127 +18,148 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Poedit-SearchPath-0: .\n" -#: classes/footnotes_settings.php:366 +#: classes/footnotes.php:68 +msgid "You must be logged in to run this script." +msgstr "You must be logged in to run this script." + +#: classes/footnotes.php:73 +msgid "You do not have permission to run this script." +msgstr "You do not have permission to run this script." + +#: classes/footnotes_settings.php:381 msgid "General" msgstr "General" -#: classes/footnotes_settings.php:368 +#: classes/footnotes_settings.php:383 #, php-format msgid "%s Settings" msgstr "%s Settings" -#: classes/footnotes_settings.php:369 +#: classes/footnotes_settings.php:384 msgid "References Container" msgstr "References Container" -#: classes/footnotes_settings.php:370 +#: classes/footnotes_settings.php:385 msgid "Footnotes styling" msgstr "Footnotes styling" -#: classes/footnotes_settings.php:371 +#: classes/footnotes_settings.php:386 msgid "Other" msgstr "Other" -#: classes/footnotes_settings.php:391 +#: classes/footnotes_settings.php:406 msgid "References label:" msgstr "References label:" -#: classes/footnotes_settings.php:396 +#: classes/footnotes_settings.php:411 msgid "Collapse references by default:" msgstr "Collapse references by default:" -#: classes/footnotes_settings.php:405 +#: classes/footnotes_settings.php:420 msgid "in the footer" msgstr "in the footer" -#: classes/footnotes_settings.php:406 +#: classes/footnotes_settings.php:421 msgid "at the end of the post" msgstr "at the end of the post" -#: classes/footnotes_settings.php:408 +#: classes/footnotes_settings.php:422 +msgid "in the widget area" +msgstr "in the widget area" + +#: classes/footnotes_settings.php:424 msgid "Where shall the reference container appear:" msgstr "Where shall the reference container appear:" -#: classes/footnotes_settings.php:420 classes/footnotes_settings.php:457 -#: classes/footnotes_settings.php:466 +#: classes/footnotes_settings.php:436 classes/footnotes_settings.php:473 +#: classes/footnotes_settings.php:482 msgid "Yes" msgstr "Yes" -#: classes/footnotes_settings.php:421 classes/footnotes_settings.php:458 -#: classes/footnotes_settings.php:467 +#: classes/footnotes_settings.php:437 classes/footnotes_settings.php:474 +#: classes/footnotes_settings.php:483 msgid "No" msgstr "No" -#: classes/footnotes_settings.php:423 +#: classes/footnotes_settings.php:439 msgid "Combine identical footnotes:" msgstr "Combine identical footnotes:" -#: classes/footnotes_settings.php:428 +#: classes/footnotes_settings.php:444 msgid "Footnote tag starts with:" msgstr "Footnote tag starts with:" -#: classes/footnotes_settings.php:432 +#: classes/footnotes_settings.php:448 msgid "and ends with:" msgstr "and ends with:" -#: classes/footnotes_settings.php:439 +#: classes/footnotes_settings.php:455 msgid "Arabic Numbers - Plain" msgstr "Arabic Numbers - Plain" -#: classes/footnotes_settings.php:440 +#: classes/footnotes_settings.php:456 msgid "Arabic Numbers - Leading 0" msgstr "Arabic Numbers - Leading 0" -#: classes/footnotes_settings.php:441 +#: classes/footnotes_settings.php:457 msgid "Latin Character - lower case" msgstr "Latin Character - lower case" -#: classes/footnotes_settings.php:442 +#: classes/footnotes_settings.php:458 msgid "Latin Character - upper case" msgstr "Latin Character - upper case" -#: classes/footnotes_settings.php:443 +#: classes/footnotes_settings.php:459 msgid "Roman Numerals" msgstr "Roman Numerals" -#: classes/footnotes_settings.php:445 +#: classes/footnotes_settings.php:461 msgid "Counter style:" msgstr "Counter style:" -#: classes/footnotes_settings.php:460 +#: classes/footnotes_settings.php:476 msgid "Allow footnotes on Summarized Posts:" msgstr "Allow footnotes on Summarized Posts:" -#: classes/footnotes_settings.php:469 +#: classes/footnotes_settings.php:485 #, php-format msgid "Tell the world you're using %s:" msgstr "Tell the world you're using %s:" -#: classes/footnotes_settings.php:482 +#: classes/footnotes_settings.php:490 +#, php-format +msgid "" +"Don't tell the world you're using %s on specific pages by adding the " +"following short code:" +msgstr "" +"Don't tell the world you're using %s on specific pages by adding the " +"following short code:" + +#: classes/footnotes_settings.php:503 msgid "HowTo" msgstr "HowTo" -#: classes/footnotes_settings.php:485 +#: classes/footnotes_settings.php:506 msgid "Brief introduction in how to use the plugin" msgstr "Brief introduction in how to use the plugin" -#: classes/footnotes_settings.php:511 +#: classes/footnotes_settings.php:532 msgid "Start your footnote with the following shortcode:" msgstr "Start your footnote with the following shortcode:" -#: classes/footnotes_settings.php:517 +#: classes/footnotes_settings.php:538 msgid "...and end your footnote with this shortcode:" msgstr "...and end your footnote with this shortcode:" -#: classes/footnotes_settings.php:525 classes/footnotes_settings.php:528 +#: classes/footnotes_settings.php:546 classes/footnotes_settings.php:549 msgid "example string" msgstr "example string" -#: classes/footnotes_settings.php:526 +#: classes/footnotes_settings.php:547 msgid "will be displayed as:" msgstr "will be displayed as:" -#: classes/footnotes_settings.php:533 +#: classes/footnotes_settings.php:554 #, php-format msgid "If you have any questions, please don't hesitate to %se-mail%s us." msgstr "If you have any questions, please don't hesitate to %se-mail%s us." @@ -147,19 +168,15 @@ msgstr "If you have any questions, please don't hesitate to %se-mail%s us." msgid "Settings" msgstr "Settings" -#: includes/replacer.php:180 +#: includes/plugin-settings.php:24 +msgid "Support" +msgstr "Support" + +#: includes/replacer.php:187 #, php-format msgid "Hey there, I'm using the awesome WordPress Plugin called %s" msgstr "Hey there, I'm using the awesome %s Plugin" -#: includes/uninstall.php:26 -msgid "You must be logged in to run this script." -msgstr "You must be logged in to run this script." - -#: includes/uninstall.php:31 -msgid "You do not have permission to run this script." -msgstr "You do not have permission to run this script." - #~ msgid "starts with:" #~ msgstr "starts with:" diff --git a/readme.txt b/readme.txt index 88beebc..76ee76a 100755 --- a/readme.txt +++ b/readme.txt @@ -41,10 +41,12 @@ No, this Plugin has been written from scratch. Of course some inspirations on ho = 1.1.1 = - Feature: Short code to not display the 'love me' slug on specific pages ( short code = [[no footnotes: love]] ) - Update: Setting where the reference container appears on public pages can also be set to the widget area -- Add: link to the wordpress.org support page in the plugin main page +- Add: Link to the wordpress.org support page in the plugin main page - Update: Changed plugin URL from GitHub to WordPress -- Bugfix: uninstall function to really remove all settings done in the settings page -- Bugfix: load default settings after plugin is installed +- Bugfix: Uninstall function to really remove all settings done in the settings page +- Bugfix: Load default settings after plugin is installed +- Update: Translation for support link and new setting option +- Add: Label to display the user the short code to not display the 'love me' slug = 1.1.0 = - Update: Global styling for the public plugin name