Version Description
(25 Feb 2017) = * Updated German translation * Fixed admin menu items not translating * Removed possible conflict between Debug Bar Console plugin (#) * Corrected editor alignment on RTL sites (#) * Fixed bulk actions running when Filter button is clicked (#) * Updated CodeMirror to version 5.24.0
Download this release
Release Info
Developer | bungeshea |
Plugin | Code Snippets |
Version | 2.8.1 |
Comparing to | |
See all releases |
Code changes from version 2.8.0 to 2.8.1
- code-snippets.php +3 -3
- css/min/cmthemes/duotone-dark.css +1 -0
- css/min/cmthemes/duotone-light.css +1 -0
- css/min/edit.css +1 -1
- languages/code-snippets-de_DE.mo +0 -0
- languages/code-snippets-de_DE.po +97 -39
- languages/code-snippets.pot +52 -52
- license.txt +1 -1
- php/admin-menus/class-admin-menu.php +5 -0
- php/admin-menus/class-edit-menu.php +17 -6
- php/admin-menus/class-import-menu.php +6 -0
- php/admin-menus/class-manage-menu.php +6 -0
- php/admin-menus/class-settings-menu.php +3 -0
- php/class-admin.php +8 -3
- php/class-code-snippets.php +2 -1
- php/class-list-table.php +1 -1
- php/editor.php +1 -1
- readme.txt +10 -2
code-snippets.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* @author Shea Bunge <shea@bungeshea.com>
|
11 |
* @copyright 2012-2016 Shea Bunge
|
12 |
* @license MIT http://opensource.org/licenses/MIT
|
13 |
-
* @version 2.8.
|
14 |
* @link https://github.com/sheabunge/code-snippets
|
15 |
*/
|
16 |
|
@@ -20,7 +20,7 @@ Plugin URI: https://github.com/sheabunge/code-snippets
|
|
20 |
Description: An easy, clean and simple way to add code snippets to your site. No need to edit to your theme's functions.php file again!
|
21 |
Author: Shea Bunge
|
22 |
Author URI: https://bungeshea.com
|
23 |
-
Version: 2.8.
|
24 |
License: MIT
|
25 |
License URI: license.txt
|
26 |
Text Domain: code-snippets
|
@@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
42 |
* @since 2.0
|
43 |
* @var string A PHP-standardized version number string
|
44 |
*/
|
45 |
-
define( 'CODE_SNIPPETS_VERSION', '2.8.
|
46 |
|
47 |
/**
|
48 |
* The full path to the main file of this plugin
|
10 |
* @author Shea Bunge <shea@bungeshea.com>
|
11 |
* @copyright 2012-2016 Shea Bunge
|
12 |
* @license MIT http://opensource.org/licenses/MIT
|
13 |
+
* @version 2.8.1
|
14 |
* @link https://github.com/sheabunge/code-snippets
|
15 |
*/
|
16 |
|
20 |
Description: An easy, clean and simple way to add code snippets to your site. No need to edit to your theme's functions.php file again!
|
21 |
Author: Shea Bunge
|
22 |
Author URI: https://bungeshea.com
|
23 |
+
Version: 2.8.1
|
24 |
License: MIT
|
25 |
License URI: license.txt
|
26 |
Text Domain: code-snippets
|
42 |
* @since 2.0
|
43 |
* @var string A PHP-standardized version number string
|
44 |
*/
|
45 |
+
define( 'CODE_SNIPPETS_VERSION', '2.8.1' );
|
46 |
|
47 |
/**
|
48 |
* The full path to the main file of this plugin
|
css/min/cmthemes/duotone-dark.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.cm-s-duotone-dark.CodeMirror{background:#2a2734;color:#6c6783}.cm-s-duotone-dark div.CodeMirror-selected{background:#545167!important}.cm-s-duotone-dark .CodeMirror-gutters{background:#2a2734;border-right:0}.cm-s-duotone-dark .CodeMirror-linenumber{color:#545167}.cm-s-duotone-dark .CodeMirror-cursor{border-left:1px solid #ffad5c;border-right:.5em solid #ffad5c;opacity:.5}.cm-s-duotone-dark .CodeMirror-activeline-background{background:#363342;opacity:.5}.cm-s-duotone-dark .cm-fat-cursor .CodeMirror-cursor{background:#ffad5c;opacity:.5}.cm-s-duotone-dark span.cm-atom,.cm-s-duotone-dark span.cm-attribute,.cm-s-duotone-dark span.cm-hr,.cm-s-duotone-dark span.cm-keyword,.cm-s-duotone-dark span.cm-link,.cm-s-duotone-dark span.cm-number,.cm-s-duotone-dark span.cm-quote,.cm-s-duotone-dark span.cm-variable{color:#fc9}.cm-s-duotone-dark span.cm-property{color:#9a86fd}.cm-s-duotone-dark span.cm-negative,.cm-s-duotone-dark span.cm-punctuation,.cm-s-duotone-dark span.cm-unit{color:#e09142}.cm-s-duotone-dark span.cm-string{color:#ffb870}.cm-s-duotone-dark span.cm-operator{color:#ffad5c}.cm-s-duotone-dark span.cm-positive{color:#6a51e6}.cm-s-duotone-dark span.cm-string-2,.cm-s-duotone-dark span.cm-url,.cm-s-duotone-dark span.cm-variable-2,.cm-s-duotone-dark span.cm-variable-3{color:#7a63ee}.cm-s-duotone-dark span.cm-builtin,.cm-s-duotone-dark span.cm-def,.cm-s-duotone-dark span.cm-em,.cm-s-duotone-dark span.cm-header,.cm-s-duotone-dark span.cm-qualifier,.cm-s-duotone-dark span.cm-tag{color:#eeebff}.cm-s-duotone-dark span.cm-bracket,.cm-s-duotone-dark span.cm-comment{color:#6c6783}.cm-s-duotone-dark span.cm-error,.cm-s-duotone-dark span.cm-invalidchar{color:red}.cm-s-duotone-dark span.cm-header{font-weight:400}.cm-s-duotone-dark .CodeMirror-matchingbracket{text-decoration:underline;color:#eeebff!important}
|
css/min/cmthemes/duotone-light.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.cm-s-duotone-light.CodeMirror{background:#faf8f5;color:#b29762}.cm-s-duotone-light div.CodeMirror-selected{background:#e3dcce!important}.cm-s-duotone-light .CodeMirror-gutters{background:#faf8f5;border-right:0}.cm-s-duotone-light .CodeMirror-linenumber{color:#cdc4b1}.cm-s-duotone-light .CodeMirror-cursor{border-left:1px solid #93abdc;border-right:.5em solid #93abdc;opacity:.5}.cm-s-duotone-light .CodeMirror-activeline-background{background:#e3dcce;opacity:.5}.cm-s-duotone-light .cm-fat-cursor .CodeMirror-cursor{background:#93abdc;opacity:.5}.cm-s-duotone-light span.cm-atom,.cm-s-duotone-light span.cm-attribute,.cm-s-duotone-light span.cm-keyword,.cm-s-duotone-light span.cm-number,.cm-s-duotone-light span.cm-quote,.cm-s-duotone-light span.cm-variable,.cm-s-duotone-light-light span.cm-hr,.cm-s-duotone-light-light span.cm-link{color:#063289}.cm-s-duotone-light span.cm-property{color:#b29762}.cm-s-duotone-light span.cm-negative,.cm-s-duotone-light span.cm-punctuation,.cm-s-duotone-light span.cm-unit{color:#063289}.cm-s-duotone-light span.cm-operator,.cm-s-duotone-light span.cm-string{color:#1659df}.cm-s-duotone-light span.cm-positive,.cm-s-duotone-light span.cm-string-2,.cm-s-duotone-light span.cm-url,.cm-s-duotone-light span.cm-variable-2,.cm-s-duotone-light span.cm-variable-3{color:#896724}.cm-s-duotone-light span.cm-builtin,.cm-s-duotone-light span.cm-def,.cm-s-duotone-light span.cm-em,.cm-s-duotone-light span.cm-header,.cm-s-duotone-light span.cm-qualifier,.cm-s-duotone-light span.cm-tag{color:#2d2006}.cm-s-duotone-light span.cm-bracket,.cm-s-duotone-light span.cm-comment{color:#b6ad9a}.cm-s-duotone-light span.cm-error,.cm-s-duotone-light span.cm-invalidchar{color:red}.cm-s-duotone-light span.cm-header{font-weight:400}.cm-s-duotone-light .CodeMirror-matchingbracket{text-decoration:underline;color:#faf8f5!important}
|
css/min/edit.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.form-table th{width:auto}h3{margin:1em 0}label{cursor:auto}label[for=snippet_description] h3 div{position:absolute}ul.tagit{background-color:#fff!important}.submit .button{margin-right:.5em}.snippet-scope div{margin-right:30px;display:inline-block}.CodeMirror{width:100%;height:auto!important;border:1px solid #dfdfdf;border-radius:3px;background-color:#fff}.CodeMirror-sizer{min-height:300px!important}.CodeMirror-focused .cm-matchhighlight{color:#fff!important;outline:1px solid green}.cm-s-rubyblue .CodeMirror-cursor{border-left:1px solid #fff!important}
|
1 |
+
.form-table th{width:auto}h3{margin:1em 0}label{cursor:auto}label[for=snippet_description] h3 div{position:absolute}ul.tagit{background-color:#fff!important}.submit .button{margin-right:.5em}.snippet-scope div{margin-right:30px;display:inline-block}.CodeMirror{width:100%;height:auto!important;border:1px solid #dfdfdf;border-radius:3px;background-color:#fff}.CodeMirror-code{outline:none;direction:ltr;text-align:left}.CodeMirror-sizer{min-height:300px!important}.CodeMirror-focused .cm-matchhighlight{color:#fff!important;outline:1px solid green}.cm-s-rubyblue .CodeMirror-cursor{border-left:1px solid #fff!important}
|
languages/code-snippets-de_DE.mo
CHANGED
Binary file
|
languages/code-snippets-de_DE.po
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Code Snippets v2.
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: Mario Siegmann <mario_siegmann@web.de>\n"
|
8 |
"Language-Team: Mario Siegmann <mario_siegmann@web.de>\n"
|
9 |
"Language: de_DE\n"
|
@@ -11,7 +11,7 @@ msgstr ""
|
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
-
"X-Generator: Poedit 1.8.
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
17 |
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
@@ -30,12 +30,13 @@ msgid "Edit Snippet"
|
|
30 |
msgstr "Codeschnipsel bearbeiten"
|
31 |
|
32 |
# @ code-snippets
|
33 |
-
#: php/admin-menus/class-edit-menu.php:
|
|
|
34 |
msgid "Add New"
|
35 |
msgstr "Hinzufügen"
|
36 |
|
37 |
# @ code-snippets
|
38 |
-
#: php/admin-menus/class-edit-menu.php:
|
39 |
msgid "Add New Snippet"
|
40 |
msgstr "Neuen Codeschnipsel hinzufügen"
|
41 |
|
@@ -156,8 +157,8 @@ msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
|
|
156 |
msgstr ""
|
157 |
"Codeschnipsel <strong>aktualisiert</strong> und <strong>deaktiviert</strong>."
|
158 |
|
159 |
-
# @ code-snippets
|
160 |
#: php/admin-menus/class-import-menu.php:15
|
|
|
161 |
msgid "Import"
|
162 |
msgstr "Importieren"
|
163 |
|
@@ -194,16 +195,20 @@ msgstr[1] ""
|
|
194 |
msgid "An error occurred when processing the import file."
|
195 |
msgstr "Ein Fehler trat bei der Verarbeitung der importierten Datei auf."
|
196 |
|
197 |
-
|
198 |
-
|
199 |
-
msgid "
|
200 |
-
msgstr "
|
201 |
|
202 |
# @ code-snippets
|
203 |
#: php/admin-menus/class-manage-menu.php:23
|
204 |
-
#: php/admin-menus/class-manage-menu.php:39
|
205 |
-
#: php/
|
206 |
-
|
|
|
|
|
|
|
|
|
207 |
msgid "Snippets"
|
208 |
msgstr "Codeschnipsel"
|
209 |
|
@@ -251,7 +256,7 @@ msgid "Selected snippets <strong>deleted</strong>."
|
|
251 |
msgstr "Ausgewählte Codeschnipsel wurden <strong>gelöscht</strong>."
|
252 |
|
253 |
#: php/admin-menus/class-settings-menu.php:16
|
254 |
-
|
255 |
msgid "Settings"
|
256 |
msgstr "Einstellungen"
|
257 |
|
@@ -259,6 +264,10 @@ msgstr "Einstellungen"
|
|
259 |
msgid "Snippets Settings"
|
260 |
msgstr "Codeschnipsel Einstellungen"
|
261 |
|
|
|
|
|
|
|
|
|
262 |
# @ code-snippets
|
263 |
#: php/class-admin.php:110
|
264 |
msgid "Manage your existing snippets"
|
@@ -543,14 +552,13 @@ msgstr ""
|
|
543 |
"Auf dieser Seite können Sie Ihre Codeschnipsel von einer Codeschnipsel-"
|
544 |
"Exportdatei (<code>.xml</code>) laden."
|
545 |
|
546 |
-
# @ code-snippets
|
547 |
#: php/class-contextual-help.php:122
|
548 |
#, php-format
|
549 |
msgid ""
|
550 |
"Snippets will be added to the database along with your existing snippets. "
|
551 |
"Regardless of whether the snippets were active on the previous site, "
|
552 |
"imported snippets are always inactive until activated using the <a href=\"%s"
|
553 |
-
"\">
|
554 |
msgstr ""
|
555 |
"Codeschnipsel werden der Datenbank hinzugefügt, zusammen mit Ihren bereits "
|
556 |
"bestehenden Codeschnipseln. Unabhängig davon, ob diese Codeschnipsel auf der "
|
@@ -623,7 +631,7 @@ msgstr ""
|
|
623 |
|
624 |
#: php/class-export.php:96
|
625 |
msgid ""
|
626 |
-
"7. You will then have to visit the 'Snippets:
|
627 |
"activate desired snippets."
|
628 |
msgstr ""
|
629 |
"7. Nach dem Import besuche die Seite 'Codeschnipsel: Verwalten' im "
|
@@ -669,17 +677,18 @@ msgstr "Exportieren"
|
|
669 |
|
670 |
# @ code-snippets
|
671 |
#: php/class-list-table.php:151 php/class-list-table.php:214
|
672 |
-
#: php/class-list-table.php:372 php/views/edit.php:
|
673 |
msgid "Delete"
|
674 |
msgstr "Löschen"
|
675 |
|
676 |
#: php/class-list-table.php:158 php/class-list-table.php:224
|
677 |
-
msgid ""
|
678 |
-
"
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
"
|
|
|
683 |
|
684 |
#: php/class-list-table.php:244
|
685 |
#, php-format
|
@@ -691,7 +700,7 @@ msgid "Shared on Network"
|
|
691 |
msgstr "Im Netzwerk teilen"
|
692 |
|
693 |
# @ code-snippets
|
694 |
-
#: php/class-list-table.php:322
|
695 |
msgid "Name"
|
696 |
msgstr "Name"
|
697 |
|
@@ -944,10 +953,9 @@ msgctxt "snippet"
|
|
944 |
msgid "Add New"
|
945 |
msgstr "Hinzufügen"
|
946 |
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
msgstr "Name (Kurztitel)"
|
951 |
|
952 |
# @ code-snippets
|
953 |
#: php/views/edit.php:54
|
@@ -963,12 +971,8 @@ msgid "Save Changes and Deactivate"
|
|
963 |
msgstr "Speichere Änderungen und Deaktiviere"
|
964 |
|
965 |
#: php/views/edit.php:118
|
966 |
-
msgid ""
|
967 |
-
"
|
968 |
-
"'Cancel' to stop, 'OK' to delete."
|
969 |
-
msgstr ""
|
970 |
-
"Du bist dabei diesen Codeschnipsel endgültig zu löschen.\n"
|
971 |
-
"'Abbrechen' um zu stoppen, 'OK' um zu löschen."
|
972 |
|
973 |
# @ code-snippets
|
974 |
#: php/views/import.php:21
|
@@ -979,12 +983,11 @@ msgstr ""
|
|
979 |
"Servus! Laden Sie hier Ihre Codeschnipsel-XML-Exportdatei hoch und wir "
|
980 |
"werden die Codeschnipsel dieser Installation hinzufügen."
|
981 |
|
982 |
-
# @ code-snippets
|
983 |
#: php/views/import.php:23
|
984 |
#, php-format
|
985 |
msgid ""
|
986 |
-
"You will need to go to the <a href=\"%s\">
|
987 |
-
"
|
988 |
msgstr ""
|
989 |
"Danach müssen Sie zur <a href=\"%s\">Codeschnispel verwalten-Seite</a> gehen "
|
990 |
"und die importierten Codeschnipsel entsprechend aktivieren."
|
@@ -1018,6 +1021,61 @@ msgstr "Datei hochladen & importieren"
|
|
1018 |
msgid "Search Installed Snippets"
|
1019 |
msgstr "Installierte Codeschnipsel suchen"
|
1020 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1021 |
#~ msgid "Plugin Website</a>"
|
1022 |
#~ msgstr "Plugin-Webseite</a>"
|
1023 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Code Snippets v2.8.0\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2017-02-18 15:58+1100\n"
|
6 |
+
"PO-Revision-Date: 2017-02-18 16:00+1100\n"
|
7 |
"Last-Translator: Mario Siegmann <mario_siegmann@web.de>\n"
|
8 |
"Language-Team: Mario Siegmann <mario_siegmann@web.de>\n"
|
9 |
"Language: de_DE\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
+
"X-Generator: Poedit 1.8.11\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
17 |
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
30 |
msgstr "Codeschnipsel bearbeiten"
|
31 |
|
32 |
# @ code-snippets
|
33 |
+
#: php/admin-menus/class-edit-menu.php:37
|
34 |
+
msgctxt "menu label"
|
35 |
msgid "Add New"
|
36 |
msgstr "Hinzufügen"
|
37 |
|
38 |
# @ code-snippets
|
39 |
+
#: php/admin-menus/class-edit-menu.php:38 php/views/edit.php:31
|
40 |
msgid "Add New Snippet"
|
41 |
msgstr "Neuen Codeschnipsel hinzufügen"
|
42 |
|
157 |
msgstr ""
|
158 |
"Codeschnipsel <strong>aktualisiert</strong> und <strong>deaktiviert</strong>."
|
159 |
|
|
|
160 |
#: php/admin-menus/class-import-menu.php:15
|
161 |
+
msgctxt "menu label"
|
162 |
msgid "Import"
|
163 |
msgstr "Importieren"
|
164 |
|
195 |
msgid "An error occurred when processing the import file."
|
196 |
msgstr "Ein Fehler trat bei der Verarbeitung der importierten Datei auf."
|
197 |
|
198 |
+
#: php/admin-menus/class-manage-menu.php:22
|
199 |
+
msgctxt "menu label"
|
200 |
+
msgid "All Snippets"
|
201 |
+
msgstr "Alle Codeschnipsel"
|
202 |
|
203 |
# @ code-snippets
|
204 |
#: php/admin-menus/class-manage-menu.php:23
|
205 |
+
#: php/admin-menus/class-manage-menu.php:39 php/class-admin.php:52
|
206 |
+
#: php/class-admin.php:111 php/views/manage.php:19
|
207 |
+
msgid "Snippets"
|
208 |
+
msgstr "Codeschnipsel"
|
209 |
+
|
210 |
+
#: php/admin-menus/class-manage-menu.php:40
|
211 |
+
msgctxt "top-level menu label"
|
212 |
msgid "Snippets"
|
213 |
msgstr "Codeschnipsel"
|
214 |
|
256 |
msgstr "Ausgewählte Codeschnipsel wurden <strong>gelöscht</strong>."
|
257 |
|
258 |
#: php/admin-menus/class-settings-menu.php:16
|
259 |
+
msgctxt "menu label"
|
260 |
msgid "Settings"
|
261 |
msgstr "Einstellungen"
|
262 |
|
264 |
msgid "Snippets Settings"
|
265 |
msgstr "Codeschnipsel Einstellungen"
|
266 |
|
267 |
+
#: php/admin-menus/class-settings-menu.php:36 php/views/edit.php:135
|
268 |
+
msgid "Settings"
|
269 |
+
msgstr "Einstellungen"
|
270 |
+
|
271 |
# @ code-snippets
|
272 |
#: php/class-admin.php:110
|
273 |
msgid "Manage your existing snippets"
|
552 |
"Auf dieser Seite können Sie Ihre Codeschnipsel von einer Codeschnipsel-"
|
553 |
"Exportdatei (<code>.xml</code>) laden."
|
554 |
|
|
|
555 |
#: php/class-contextual-help.php:122
|
556 |
#, php-format
|
557 |
msgid ""
|
558 |
"Snippets will be added to the database along with your existing snippets. "
|
559 |
"Regardless of whether the snippets were active on the previous site, "
|
560 |
"imported snippets are always inactive until activated using the <a href=\"%s"
|
561 |
+
"\">All Snippets</a> page.</p>"
|
562 |
msgstr ""
|
563 |
"Codeschnipsel werden der Datenbank hinzugefügt, zusammen mit Ihren bereits "
|
564 |
"bestehenden Codeschnipseln. Unabhängig davon, ob diese Codeschnipsel auf der "
|
631 |
|
632 |
#: php/class-export.php:96
|
633 |
msgid ""
|
634 |
+
"7. You will then have to visit the 'Snippets: All Snippets' admin menu and "
|
635 |
"activate desired snippets."
|
636 |
msgstr ""
|
637 |
"7. Nach dem Import besuche die Seite 'Codeschnipsel: Verwalten' im "
|
677 |
|
678 |
# @ code-snippets
|
679 |
#: php/class-list-table.php:151 php/class-list-table.php:214
|
680 |
+
#: php/class-list-table.php:372 php/views/edit.php:124
|
681 |
msgid "Delete"
|
682 |
msgstr "Löschen"
|
683 |
|
684 |
#: php/class-list-table.php:158 php/class-list-table.php:224
|
685 |
+
msgid "You are about to permanently delete the selected item."
|
686 |
+
msgstr "Du bist dabei diesen Codeschnipsel endgültig zu löschen."
|
687 |
+
|
688 |
+
#: php/class-list-table.php:159 php/class-list-table.php:225
|
689 |
+
#: php/views/edit.php:119
|
690 |
+
msgid "'Cancel' to stop, 'OK' to delete."
|
691 |
+
msgstr "'Abbrechen' um zu stoppen, 'OK' um zu löschen."
|
692 |
|
693 |
#: php/class-list-table.php:244
|
694 |
#, php-format
|
700 |
msgstr "Im Netzwerk teilen"
|
701 |
|
702 |
# @ code-snippets
|
703 |
+
#: php/class-list-table.php:322 php/views/edit.php:48
|
704 |
msgid "Name"
|
705 |
msgstr "Name"
|
706 |
|
953 |
msgid "Add New"
|
954 |
msgstr "Hinzufügen"
|
955 |
|
956 |
+
#: php/views/edit.php:49
|
957 |
+
msgid "Enter title here"
|
958 |
+
msgstr "Titel hier eingeben"
|
|
|
959 |
|
960 |
# @ code-snippets
|
961 |
#: php/views/edit.php:54
|
971 |
msgstr "Speichere Änderungen und Deaktiviere"
|
972 |
|
973 |
#: php/views/edit.php:118
|
974 |
+
msgid "You are about to permanently delete this snippet."
|
975 |
+
msgstr "Du bist dabei diesen Codeschnipsel endgültig zu löschen."
|
|
|
|
|
|
|
|
|
976 |
|
977 |
# @ code-snippets
|
978 |
#: php/views/import.php:21
|
983 |
"Servus! Laden Sie hier Ihre Codeschnipsel-XML-Exportdatei hoch und wir "
|
984 |
"werden die Codeschnipsel dieser Installation hinzufügen."
|
985 |
|
|
|
986 |
#: php/views/import.php:23
|
987 |
#, php-format
|
988 |
msgid ""
|
989 |
+
"You will need to go to the <a href=\"%s\">All Snippets</a> page to activate "
|
990 |
+
"the imported snippets."
|
991 |
msgstr ""
|
992 |
"Danach müssen Sie zur <a href=\"%s\">Codeschnispel verwalten-Seite</a> gehen "
|
993 |
"und die importierten Codeschnipsel entsprechend aktivieren."
|
1021 |
msgid "Search Installed Snippets"
|
1022 |
msgstr "Installierte Codeschnipsel suchen"
|
1023 |
|
1024 |
+
# @ code-snippets
|
1025 |
+
#~ msgid "Import"
|
1026 |
+
#~ msgstr "Importieren"
|
1027 |
+
|
1028 |
+
# @ code-snippets
|
1029 |
+
#~ msgid "Manage"
|
1030 |
+
#~ msgstr "Verwalten"
|
1031 |
+
|
1032 |
+
# @ code-snippets
|
1033 |
+
#~ msgid ""
|
1034 |
+
#~ "Snippets will be added to the database along with your existing snippets. "
|
1035 |
+
#~ "Regardless of whether the snippets were active on the previous site, "
|
1036 |
+
#~ "imported snippets are always inactive until activated using the <a href="
|
1037 |
+
#~ "\"%s\">Manage Snippets</a> page.</p>"
|
1038 |
+
#~ msgstr ""
|
1039 |
+
#~ "Codeschnipsel werden der Datenbank hinzugefügt, zusammen mit Ihren "
|
1040 |
+
#~ "bereits bestehenden Codeschnipseln. Unabhängig davon, ob diese "
|
1041 |
+
#~ "Codeschnipsel auf der vorherigen Installation aktiv waren, sind "
|
1042 |
+
#~ "importierte Codeschnipsel standardmäßig immer deaktiviert, solange Sie "
|
1043 |
+
#~ "von Ihnen auf der <a href=\"%s\">Codeschnispel verwalten-Seite</a> "
|
1044 |
+
#~ "aktiviert werden.</p>"
|
1045 |
+
|
1046 |
+
#~ msgid ""
|
1047 |
+
#~ "7. You will then have to visit the 'Snippets: Manage' admin menu and "
|
1048 |
+
#~ "activate desired snippets."
|
1049 |
+
#~ msgstr ""
|
1050 |
+
#~ "7. Nach dem Import besuche die Seite 'Codeschnipsel: Verwalten' im "
|
1051 |
+
#~ "Administrationsmenü und aktiviere die gewünschten Codeschnipsel."
|
1052 |
+
|
1053 |
+
#~ msgid ""
|
1054 |
+
#~ "You are about to permanently delete the selected item.\n"
|
1055 |
+
#~ "\t\t\t\t\t'Cancel' to stop, 'OK' to delete."
|
1056 |
+
#~ msgstr ""
|
1057 |
+
#~ "Sie sind dabei die ausgewählten Einträge zu löschen.\n"
|
1058 |
+
#~ "\t\t\t\t\t'Abbrechen zum Stoppen, 'OK' zum Löschen."
|
1059 |
+
|
1060 |
+
# @ code-snippets
|
1061 |
+
#~ msgid "Name (short title)"
|
1062 |
+
#~ msgstr "Name (Kurztitel)"
|
1063 |
+
|
1064 |
+
#~ msgid ""
|
1065 |
+
#~ "You are about to permanently delete this snippet.\n"
|
1066 |
+
#~ "'Cancel' to stop, 'OK' to delete."
|
1067 |
+
#~ msgstr ""
|
1068 |
+
#~ "Du bist dabei diesen Codeschnipsel endgültig zu löschen.\n"
|
1069 |
+
#~ "'Abbrechen' um zu stoppen, 'OK' um zu löschen."
|
1070 |
+
|
1071 |
+
# @ code-snippets
|
1072 |
+
#~ msgid ""
|
1073 |
+
#~ "You will need to go to the <a href=\"%s\">Manage Snippets</a> page to "
|
1074 |
+
#~ "activate the imported snippets."
|
1075 |
+
#~ msgstr ""
|
1076 |
+
#~ "Danach müssen Sie zur <a href=\"%s\">Codeschnispel verwalten-Seite</a> "
|
1077 |
+
#~ "gehen und die importierten Codeschnipsel entsprechend aktivieren."
|
1078 |
+
|
1079 |
#~ msgid "Plugin Website</a>"
|
1080 |
#~ msgstr "Plugin-Webseite</a>"
|
1081 |
|
languages/code-snippets.pot
CHANGED
@@ -6,9 +6,9 @@
|
|
6 |
#, fuzzy
|
7 |
msgid ""
|
8 |
msgstr ""
|
9 |
-
"Project-Id-Version: code-snippets 2.8.
|
10 |
"Report-Msgid-Bugs-To: \n"
|
11 |
-
"POT-Creation-Date:
|
12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
@@ -18,7 +18,7 @@ msgstr ""
|
|
18 |
"Content-Transfer-Encoding: 8bit\n"
|
19 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
20 |
|
21 |
-
#: php/admin-menus/class-admin-menu.php:
|
22 |
msgid "You are not authorized to access this page."
|
23 |
msgstr ""
|
24 |
|
@@ -27,109 +27,109 @@ msgstr ""
|
|
27 |
msgid "Edit Snippet"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: php/admin-menus/class-edit-menu.php:
|
31 |
msgctxt "menu label"
|
32 |
msgid "Add New"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: php/admin-menus/class-edit-menu.php:
|
36 |
msgid "Add New Snippet"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: php/admin-menus/class-edit-menu.php:
|
40 |
msgid "Don't Panic"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: php/admin-menus/class-edit-menu.php:
|
44 |
#, php-format
|
45 |
msgid ""
|
46 |
"The code snippet you are trying to save produced a fatal error on line %d:"
|
47 |
msgstr ""
|
48 |
|
49 |
-
#: php/admin-menus/class-edit-menu.php:
|
50 |
msgid ""
|
51 |
"The previous version of the snippet is unchanged, and the rest of this site "
|
52 |
"should be functioning normally as before."
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: php/admin-menus/class-edit-menu.php:
|
56 |
msgid ""
|
57 |
"Please use the back button in your browser to return to the previous page "
|
58 |
"and try to fix the code error."
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: php/admin-menus/class-edit-menu.php:
|
62 |
msgid ""
|
63 |
"If you prefer, you can close this page and discard the changes you just "
|
64 |
"made. No changes will be made to this site."
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: php/admin-menus/class-edit-menu.php:
|
68 |
msgid "Description"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: php/admin-menus/class-edit-menu.php:
|
72 |
msgid "Tags"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: php/admin-menus/class-edit-menu.php:
|
76 |
msgid "Enter a list of tags; separated by commas"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: php/admin-menus/class-edit-menu.php:
|
80 |
msgid "Run snippet everywhere"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: php/admin-menus/class-edit-menu.php:
|
84 |
msgid "Only run in administration area"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: php/admin-menus/class-edit-menu.php:
|
88 |
msgid "Only run on site front-end"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: php/admin-menus/class-edit-menu.php:
|
92 |
msgid "Scope"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: php/admin-menus/class-edit-menu.php:
|
96 |
msgid "Sharing"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: php/admin-menus/class-edit-menu.php:
|
100 |
msgid "Allow this snippet to be activated on individual sites on the network"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: php/admin-menus/class-edit-menu.php:
|
104 |
#, php-format
|
105 |
msgid "The snippet has been deactivated due to an error on line %d:"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: php/admin-menus/class-edit-menu.php:
|
109 |
msgid "The snippet has been deactivated due to an error in the code."
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: php/admin-menus/class-edit-menu.php:
|
113 |
msgid "An error occurred when saving the snippet."
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: php/admin-menus/class-edit-menu.php:
|
117 |
msgid "Snippet <strong>added</strong>."
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: php/admin-menus/class-edit-menu.php:
|
121 |
msgid "Snippet <strong>updated</strong>."
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: php/admin-menus/class-edit-menu.php:
|
125 |
msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: php/admin-menus/class-edit-menu.php:
|
129 |
msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: php/admin-menus/class-edit-menu.php:
|
133 |
msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
|
134 |
msgstr ""
|
135 |
|
@@ -142,15 +142,15 @@ msgstr ""
|
|
142 |
msgid "Import Snippets"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: php/admin-menus/class-import-menu.php:
|
146 |
msgid "Code Snippets"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: php/admin-menus/class-import-menu.php:
|
150 |
msgid "Import snippets from a code snippets export file"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: php/admin-menus/class-import-menu.php:
|
154 |
#, php-format
|
155 |
msgid ""
|
156 |
"Successfully imported <strong>%d</strong> snippet. <a href=\"%s\">Have fun!</"
|
@@ -161,7 +161,7 @@ msgid_plural ""
|
|
161 |
msgstr[0] ""
|
162 |
msgstr[1] ""
|
163 |
|
164 |
-
#: php/admin-menus/class-import-menu.php:
|
165 |
msgid "An error occurred when processing the import file."
|
166 |
msgstr ""
|
167 |
|
@@ -171,17 +171,17 @@ msgid "All Snippets"
|
|
171 |
msgstr ""
|
172 |
|
173 |
#: php/admin-menus/class-manage-menu.php:23
|
174 |
-
#: php/admin-menus/class-manage-menu.php:
|
175 |
-
#: php/class-admin.php:
|
176 |
msgid "Snippets"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: php/admin-menus/class-manage-menu.php:
|
180 |
msgctxt "top-level menu label"
|
181 |
msgid "Snippets"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: php/admin-menus/class-manage-menu.php:
|
185 |
msgid ""
|
186 |
"<strong>Warning:</strong> Safe mode is active and snippets will not execute! "
|
187 |
"Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-"
|
@@ -189,27 +189,27 @@ msgid ""
|
|
189 |
"sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Help</a>"
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: php/admin-menus/class-manage-menu.php:
|
193 |
msgid "Snippet <strong>activated</strong>."
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: php/admin-menus/class-manage-menu.php:
|
197 |
msgid "Selected snippets <strong>activated</strong>."
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: php/admin-menus/class-manage-menu.php:
|
201 |
msgid "Snippet <strong>deactivated</strong>."
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: php/admin-menus/class-manage-menu.php:
|
205 |
msgid "Selected snippets <strong>deactivated</strong>."
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: php/admin-menus/class-manage-menu.php:
|
209 |
msgid "Snippet <strong>deleted</strong>."
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: php/admin-menus/class-manage-menu.php:
|
213 |
msgid "Selected snippets <strong>deleted</strong>."
|
214 |
msgstr ""
|
215 |
|
@@ -222,50 +222,50 @@ msgstr ""
|
|
222 |
msgid "Snippets Settings"
|
223 |
msgstr ""
|
224 |
|
225 |
-
#: php/admin-menus/class-settings-menu.php:
|
226 |
msgid "Settings"
|
227 |
msgstr ""
|
228 |
|
229 |
-
#: php/class-admin.php:
|
230 |
msgid "Manage your existing snippets"
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: php/class-admin.php:
|
234 |
msgid "Visit the WordPress.org plugin page"
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: php/class-admin.php:
|
238 |
msgid "About"
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: php/class-admin.php:
|
242 |
msgid "Visit the support forums"
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: php/class-admin.php:
|
246 |
msgid "Support"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: php/class-admin.php:
|
250 |
msgid "Support this plugin's development"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: php/class-admin.php:
|
254 |
msgid "Donate"
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: php/class-admin.php:
|
258 |
msgid ""
|
259 |
"<strong>Have feedback on Code Snippets?</strong> Please take the time to "
|
260 |
"answer a short survey on how you use this plugin and what you'd like to see "
|
261 |
"changed or added in the future."
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: php/class-admin.php:
|
265 |
msgid "Take the survey now"
|
266 |
msgstr ""
|
267 |
|
268 |
-
#: php/class-admin.php:
|
269 |
msgid "Dismiss"
|
270 |
msgstr ""
|
271 |
|
6 |
#, fuzzy
|
7 |
msgid ""
|
8 |
msgstr ""
|
9 |
+
"Project-Id-Version: code-snippets 2.8.1\n"
|
10 |
"Report-Msgid-Bugs-To: \n"
|
11 |
+
"POT-Creation-Date: 2017-02-25 20:30+1100\n"
|
12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
18 |
"Content-Transfer-Encoding: 8bit\n"
|
19 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
20 |
|
21 |
+
#: php/admin-menus/class-admin-menu.php:103
|
22 |
msgid "You are not authorized to access this page."
|
23 |
msgstr ""
|
24 |
|
27 |
msgid "Edit Snippet"
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: php/admin-menus/class-edit-menu.php:44
|
31 |
msgctxt "menu label"
|
32 |
msgid "Add New"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: php/admin-menus/class-edit-menu.php:45 php/views/edit.php:31
|
36 |
msgid "Add New Snippet"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: php/admin-menus/class-edit-menu.php:185
|
40 |
msgid "Don't Panic"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: php/admin-menus/class-edit-menu.php:186
|
44 |
#, php-format
|
45 |
msgid ""
|
46 |
"The code snippet you are trying to save produced a fatal error on line %d:"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: php/admin-menus/class-edit-menu.php:188
|
50 |
msgid ""
|
51 |
"The previous version of the snippet is unchanged, and the rest of this site "
|
52 |
"should be functioning normally as before."
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: php/admin-menus/class-edit-menu.php:189
|
56 |
msgid ""
|
57 |
"Please use the back button in your browser to return to the previous page "
|
58 |
"and try to fix the code error."
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: php/admin-menus/class-edit-menu.php:190
|
62 |
msgid ""
|
63 |
"If you prefer, you can close this page and discard the changes you just "
|
64 |
"made. No changes will be made to this site."
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: php/admin-menus/class-edit-menu.php:310 php/class-list-table.php:324
|
68 |
msgid "Description"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: php/admin-menus/class-edit-menu.php:341 php/class-list-table.php:325
|
72 |
msgid "Tags"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: php/admin-menus/class-edit-menu.php:345
|
76 |
msgid "Enter a list of tags; separated by commas"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: php/admin-menus/class-edit-menu.php:365
|
80 |
msgid "Run snippet everywhere"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: php/admin-menus/class-edit-menu.php:366
|
84 |
msgid "Only run in administration area"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: php/admin-menus/class-edit-menu.php:367
|
88 |
msgid "Only run on site front-end"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: php/admin-menus/class-edit-menu.php:371
|
92 |
msgid "Scope"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: php/admin-menus/class-edit-menu.php:391
|
96 |
msgid "Sharing"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: php/admin-menus/class-edit-menu.php:395
|
100 |
msgid "Allow this snippet to be activated on individual sites on the network"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: php/admin-menus/class-edit-menu.php:455
|
104 |
#, php-format
|
105 |
msgid "The snippet has been deactivated due to an error on line %d:"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: php/admin-menus/class-edit-menu.php:460
|
109 |
msgid "The snippet has been deactivated due to an error in the code."
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: php/admin-menus/class-edit-menu.php:467
|
113 |
msgid "An error occurred when saving the snippet."
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: php/admin-menus/class-edit-menu.php:472
|
117 |
msgid "Snippet <strong>added</strong>."
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: php/admin-menus/class-edit-menu.php:473
|
121 |
msgid "Snippet <strong>updated</strong>."
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: php/admin-menus/class-edit-menu.php:474
|
125 |
msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
|
126 |
msgstr ""
|
127 |
|
128 |
+
#: php/admin-menus/class-edit-menu.php:475
|
129 |
msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: php/admin-menus/class-edit-menu.php:476
|
133 |
msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
|
134 |
msgstr ""
|
135 |
|
142 |
msgid "Import Snippets"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: php/admin-menus/class-import-menu.php:84
|
146 |
msgid "Code Snippets"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: php/admin-menus/class-import-menu.php:85
|
150 |
msgid "Import snippets from a code snippets export file"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: php/admin-menus/class-import-menu.php:99
|
154 |
#, php-format
|
155 |
msgid ""
|
156 |
"Successfully imported <strong>%d</strong> snippet. <a href=\"%s\">Have fun!</"
|
161 |
msgstr[0] ""
|
162 |
msgstr[1] ""
|
163 |
|
164 |
+
#: php/admin-menus/class-import-menu.php:112
|
165 |
msgid "An error occurred when processing the import file."
|
166 |
msgstr ""
|
167 |
|
171 |
msgstr ""
|
172 |
|
173 |
#: php/admin-menus/class-manage-menu.php:23
|
174 |
+
#: php/admin-menus/class-manage-menu.php:45 php/class-admin.php:57
|
175 |
+
#: php/class-admin.php:116 php/views/manage.php:19
|
176 |
msgid "Snippets"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: php/admin-menus/class-manage-menu.php:46
|
180 |
msgctxt "top-level menu label"
|
181 |
msgid "Snippets"
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: php/admin-menus/class-manage-menu.php:81
|
185 |
msgid ""
|
186 |
"<strong>Warning:</strong> Safe mode is active and snippets will not execute! "
|
187 |
"Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-"
|
189 |
"sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Help</a>"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: php/admin-menus/class-manage-menu.php:87
|
193 |
msgid "Snippet <strong>activated</strong>."
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: php/admin-menus/class-manage-menu.php:88
|
197 |
msgid "Selected snippets <strong>activated</strong>."
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: php/admin-menus/class-manage-menu.php:89
|
201 |
msgid "Snippet <strong>deactivated</strong>."
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: php/admin-menus/class-manage-menu.php:90
|
205 |
msgid "Selected snippets <strong>deactivated</strong>."
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: php/admin-menus/class-manage-menu.php:91
|
209 |
msgid "Snippet <strong>deleted</strong>."
|
210 |
msgstr ""
|
211 |
|
212 |
+
#: php/admin-menus/class-manage-menu.php:92
|
213 |
msgid "Selected snippets <strong>deleted</strong>."
|
214 |
msgstr ""
|
215 |
|
222 |
msgid "Snippets Settings"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: php/admin-menus/class-settings-menu.php:39 php/views/edit.php:135
|
226 |
msgid "Settings"
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: php/class-admin.php:115
|
230 |
msgid "Manage your existing snippets"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: php/class-admin.php:146
|
234 |
msgid "Visit the WordPress.org plugin page"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: php/class-admin.php:147
|
238 |
msgid "About"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: php/class-admin.php:151
|
242 |
msgid "Visit the support forums"
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: php/class-admin.php:152
|
246 |
msgid "Support"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: php/class-admin.php:156
|
250 |
msgid "Support this plugin's development"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: php/class-admin.php:157
|
254 |
msgid "Donate"
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: php/class-admin.php:188
|
258 |
msgid ""
|
259 |
"<strong>Have feedback on Code Snippets?</strong> Please take the time to "
|
260 |
"answer a short survey on how you use this plugin and what you'd like to see "
|
261 |
"changed or added in the future."
|
262 |
msgstr ""
|
263 |
|
264 |
+
#: php/class-admin.php:192
|
265 |
msgid "Take the survey now"
|
266 |
msgstr ""
|
267 |
|
268 |
+
#: php/class-admin.php:195
|
269 |
msgid "Dismiss"
|
270 |
msgstr ""
|
271 |
|
license.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
Copyright (c) 2012-
|
2 |
|
3 |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4 |
|
1 |
+
Copyright (c) 2012-2017 Shea Bunge
|
2 |
|
3 |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4 |
|
php/admin-menus/class-admin-menu.php
CHANGED
@@ -17,7 +17,12 @@ class Code_Snippets_Admin_Menu {
|
|
17 |
$this->name = $name;
|
18 |
$this->label = $label;
|
19 |
$this->title = $title;
|
|
|
20 |
|
|
|
|
|
|
|
|
|
21 |
add_action( 'admin_menu', array( $this, 'register' ) );
|
22 |
add_action( 'network_admin_menu', array( $this, 'register' ) );
|
23 |
}
|
17 |
$this->name = $name;
|
18 |
$this->label = $label;
|
19 |
$this->title = $title;
|
20 |
+
}
|
21 |
|
22 |
+
/**
|
23 |
+
* Register action and filter hooks
|
24 |
+
*/
|
25 |
+
public function run() {
|
26 |
add_action( 'admin_menu', array( $this, 'register' ) );
|
27 |
add_action( 'network_admin_menu', array( $this, 'register' ) );
|
28 |
}
|
php/admin-menus/class-edit-menu.php
CHANGED
@@ -13,12 +13,19 @@ class Code_Snippets_Edit_Menu extends Code_Snippets_Admin_Menu {
|
|
13 |
__( 'Edit Snippet', 'code-snippets' ),
|
14 |
__( 'Edit Snippet', 'code-snippets' )
|
15 |
);
|
|
|
16 |
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
if ( isset( $_POST['save_snippet'] ) && $_POST['save_snippet'] ) {
|
20 |
add_action( 'code_snippets/allow_execute_snippet', array( $this, 'prevent_exec_on_save' ), 10, 2 );
|
21 |
}
|
|
|
22 |
}
|
23 |
|
24 |
/**
|
@@ -507,13 +514,17 @@ class Code_Snippets_Edit_Menu extends Code_Snippets_Admin_Menu {
|
|
507 |
* Remove the old CodeMirror version used by the Debug Bar Console plugin
|
508 |
* that is messing up the snippet editor
|
509 |
*/
|
510 |
-
function
|
511 |
-
global $pagenow;
|
512 |
|
513 |
/* Try to discern if we are on the single snippet page as best as we can at this early time */
|
514 |
-
is_admin()
|
|
|
|
|
|
|
|
|
|
|
|
|
515 |
|
516 |
-
|
517 |
-
&& remove_action( 'debug_bar_enqueue_scripts', 'debug_bar_console_scripts' );
|
518 |
}
|
519 |
}
|
13 |
__( 'Edit Snippet', 'code-snippets' ),
|
14 |
__( 'Edit Snippet', 'code-snippets' )
|
15 |
);
|
16 |
+
}
|
17 |
|
18 |
+
/**
|
19 |
+
* Register action and filter hooks
|
20 |
+
*/
|
21 |
+
public function run() {
|
22 |
+
parent::run();
|
23 |
+
$this->remove_debug_bar_codemirror();
|
24 |
|
25 |
if ( isset( $_POST['save_snippet'] ) && $_POST['save_snippet'] ) {
|
26 |
add_action( 'code_snippets/allow_execute_snippet', array( $this, 'prevent_exec_on_save' ), 10, 2 );
|
27 |
}
|
28 |
+
|
29 |
}
|
30 |
|
31 |
/**
|
514 |
* Remove the old CodeMirror version used by the Debug Bar Console plugin
|
515 |
* that is messing up the snippet editor
|
516 |
*/
|
517 |
+
function remove_debug_bar_codemirror() {
|
|
|
518 |
|
519 |
/* Try to discern if we are on the single snippet page as best as we can at this early time */
|
520 |
+
if ( ! is_admin() || 'admin.php' !== $GLOBALS['pagenow'] ) {
|
521 |
+
return;
|
522 |
+
}
|
523 |
+
|
524 |
+
if ( ! isset( $_GET['page'] ) || code_snippets()->get_menu_slug( 'edit' ) !== $_GET['page'] && code_snippets()->get_menu_slug( 'settings' ) ) {
|
525 |
+
return;
|
526 |
+
}
|
527 |
|
528 |
+
remove_action( 'debug_bar_enqueue_scripts', 'debug_bar_console_scripts' );
|
|
|
529 |
}
|
530 |
}
|
php/admin-menus/class-import-menu.php
CHANGED
@@ -15,7 +15,13 @@ class Code_Snippets_Import_Menu extends Code_Snippets_Admin_Menu {
|
|
15 |
_x( 'Import', 'menu label', 'code-snippets' ),
|
16 |
__( 'Import Snippets', 'code-snippets' )
|
17 |
);
|
|
|
18 |
|
|
|
|
|
|
|
|
|
|
|
19 |
add_action( 'admin_init', array( $this, 'register_importer' ) );
|
20 |
add_action( 'load-importer-code-snippets', array( $this, 'load' ) );
|
21 |
}
|
15 |
_x( 'Import', 'menu label', 'code-snippets' ),
|
16 |
__( 'Import Snippets', 'code-snippets' )
|
17 |
);
|
18 |
+
}
|
19 |
|
20 |
+
/**
|
21 |
+
* Register action and filter hooks
|
22 |
+
*/
|
23 |
+
public function run() {
|
24 |
+
parent::run();
|
25 |
add_action( 'admin_init', array( $this, 'register_importer' ) );
|
26 |
add_action( 'load-importer-code-snippets', array( $this, 'load' ) );
|
27 |
}
|
php/admin-menus/class-manage-menu.php
CHANGED
@@ -22,7 +22,13 @@ class Code_Snippets_Manage_Menu extends Code_Snippets_Admin_Menu {
|
|
22 |
_x( 'All Snippets', 'menu label', 'code-snippets' ),
|
23 |
__( 'Snippets', 'code-snippets' )
|
24 |
);
|
|
|
25 |
|
|
|
|
|
|
|
|
|
|
|
26 |
add_filter( 'set-screen-option', array( $this, 'save_screen_option' ), 10, 3 );
|
27 |
}
|
28 |
|
22 |
_x( 'All Snippets', 'menu label', 'code-snippets' ),
|
23 |
__( 'Snippets', 'code-snippets' )
|
24 |
);
|
25 |
+
}
|
26 |
|
27 |
+
/**
|
28 |
+
* Register action and filter hooks
|
29 |
+
*/
|
30 |
+
public function run() {
|
31 |
+
parent::run();
|
32 |
add_filter( 'set-screen-option', array( $this, 'save_screen_option' ), 10, 3 );
|
33 |
}
|
34 |
|
php/admin-menus/class-settings-menu.php
CHANGED
@@ -18,6 +18,9 @@ class Code_Snippets_Settings_Menu extends Code_Snippets_Admin_Menu {
|
|
18 |
);
|
19 |
}
|
20 |
|
|
|
|
|
|
|
21 |
function load() {
|
22 |
parent::load();
|
23 |
|
18 |
);
|
19 |
}
|
20 |
|
21 |
+
/**
|
22 |
+
* Executed when the admin page is loaded
|
23 |
+
*/
|
24 |
function load() {
|
25 |
parent::load();
|
26 |
|
php/class-admin.php
CHANGED
@@ -12,12 +12,11 @@ class Code_Snippets_Admin {
|
|
12 |
function __construct() {
|
13 |
|
14 |
if ( is_admin() ) {
|
15 |
-
$this->load_classes();
|
16 |
$this->run();
|
17 |
}
|
18 |
}
|
19 |
|
20 |
-
|
21 |
$this->menus['manage'] = new Code_Snippets_Manage_Menu();
|
22 |
$this->menus['edit'] = new Code_Snippets_Edit_Menu();
|
23 |
$this->menus['import'] = new Code_Snippets_Import_Menu();
|
@@ -25,9 +24,15 @@ class Code_Snippets_Admin {
|
|
25 |
if ( ! is_network_admin() ) {
|
26 |
$this->menus['settings'] = new Code_Snippets_Settings_Menu();
|
27 |
}
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
|
30 |
-
function run() {
|
|
|
|
|
31 |
add_filter( 'mu_menu_items', array( $this, 'mu_menu_items' ) );
|
32 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_stylesheet' ) );
|
33 |
add_filter( 'plugin_action_links_' . plugin_basename( CODE_SNIPPETS_FILE ), array( $this, 'plugin_settings_link' ) );
|
12 |
function __construct() {
|
13 |
|
14 |
if ( is_admin() ) {
|
|
|
15 |
$this->run();
|
16 |
}
|
17 |
}
|
18 |
|
19 |
+
public function load_classes() {
|
20 |
$this->menus['manage'] = new Code_Snippets_Manage_Menu();
|
21 |
$this->menus['edit'] = new Code_Snippets_Edit_Menu();
|
22 |
$this->menus['import'] = new Code_Snippets_Import_Menu();
|
24 |
if ( ! is_network_admin() ) {
|
25 |
$this->menus['settings'] = new Code_Snippets_Settings_Menu();
|
26 |
}
|
27 |
+
|
28 |
+
foreach ( $this->menus as $menu ) {
|
29 |
+
$menu->run();
|
30 |
+
}
|
31 |
}
|
32 |
|
33 |
+
public function run() {
|
34 |
+
add_action( 'init', array( $this, 'load_classes' ), 11 );
|
35 |
+
|
36 |
add_filter( 'mu_menu_items', array( $this, 'mu_menu_items' ) );
|
37 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_stylesheet' ) );
|
38 |
add_filter( 'plugin_action_links_' . plugin_basename( CODE_SNIPPETS_FILE ), array( $this, 'plugin_settings_link' ) );
|
php/class-code-snippets.php
CHANGED
@@ -41,7 +41,8 @@ class Code_Snippets {
|
|
41 |
|
42 |
add_action( 'grant_super_admin', array( $this, 'grant_network_cap' ) );
|
43 |
add_action( 'remove_super_admin', array( $this, 'remove_network_cap' ) );
|
44 |
-
|
|
|
45 |
}
|
46 |
|
47 |
function load_plugin() {
|
41 |
|
42 |
add_action( 'grant_super_admin', array( $this, 'grant_network_cap' ) );
|
43 |
add_action( 'remove_super_admin', array( $this, 'remove_network_cap' ) );
|
44 |
+
|
45 |
+
add_action( 'init', array( $this, 'load_textdomain' ), 9 );
|
46 |
}
|
47 |
|
48 |
function load_plugin() {
|
php/class-list-table.php
CHANGED
@@ -488,7 +488,7 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
488 |
|
489 |
echo '</select>';
|
490 |
|
491 |
-
submit_button( __( 'Filter', 'code-snippets' ), 'button',
|
492 |
echo '</div>';
|
493 |
}
|
494 |
}
|
488 |
|
489 |
echo '</select>';
|
490 |
|
491 |
+
submit_button( __( 'Filter', 'code-snippets' ), 'button', 'filter_action', false );
|
492 |
echo '</div>';
|
493 |
}
|
494 |
}
|
php/editor.php
CHANGED
@@ -46,7 +46,7 @@ function code_snippets_get_editor_atts( $override_atts, $json_encode ) {
|
|
46 |
* @uses wp_enqueue_script() to add the scripts to the queue
|
47 |
*/
|
48 |
function code_snippets_enqueue_codemirror() {
|
49 |
-
$codemirror_version = '5.
|
50 |
$url = plugin_dir_url( CODE_SNIPPETS_FILE );
|
51 |
|
52 |
/* Remove other CodeMirror styles */
|
46 |
* @uses wp_enqueue_script() to add the scripts to the queue
|
47 |
*/
|
48 |
function code_snippets_enqueue_codemirror() {
|
49 |
+
$codemirror_version = '5.24.0';
|
50 |
$url = plugin_dir_url( CODE_SNIPPETS_FILE );
|
51 |
|
52 |
/* Remove other CodeMirror styles */
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: bungeshea
|
|
3 |
Donate link: https://bungeshea.com/donate/
|
4 |
Tags: code-snippets, snippets, code, php, network, multisite
|
5 |
Requires at least: 3.6
|
6 |
-
Tested up to: 4.7
|
7 |
-
Stable tag: 2.8.
|
8 |
License: MIT
|
9 |
License URI: license.txt
|
10 |
|
@@ -108,6 +108,14 @@ That's fantastic! Fork the [repository on GitHub](http://github.com/sheabunge/co
|
|
108 |
|
109 |
== Changelog ==
|
110 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
= 2.8.0 (14 Dec 2016) =
|
112 |
* Fixed Italian translation errors. Props to @arsenalemusica
|
113 |
* Renamed 'Manage' admin menu label to 'All Snippets' to keep in line with other admin menu labels
|
3 |
Donate link: https://bungeshea.com/donate/
|
4 |
Tags: code-snippets, snippets, code, php, network, multisite
|
5 |
Requires at least: 3.6
|
6 |
+
Tested up to: 4.7.2
|
7 |
+
Stable tag: 2.8.1
|
8 |
License: MIT
|
9 |
License URI: license.txt
|
10 |
|
108 |
|
109 |
== Changelog ==
|
110 |
|
111 |
+
= 2.8.1 (25 Feb 2017) =
|
112 |
+
* Updated German translation
|
113 |
+
* Fixed admin menu items not translating
|
114 |
+
* Removed possible conflict between Debug Bar Console plugin ([#](https://github.com/sheabunge/code-snippets/issues/52))
|
115 |
+
* Corrected editor alignment on RTL sites ([#](https://wordpress.org/support/topic/suggestion-css-fix-for-rtl-sites/))
|
116 |
+
* Fixed bulk actions running when Filter button is clicked ([#](https://wordpress.org/support/topic/bug-with-filtering-action-buttons/))
|
117 |
+
* Updated CodeMirror to version 5.24.0
|
118 |
+
|
119 |
= 2.8.0 (14 Dec 2016) =
|
120 |
* Fixed Italian translation errors. Props to @arsenalemusica
|
121 |
* Renamed 'Manage' admin menu label to 'All Snippets' to keep in line with other admin menu labels
|