Version Description
- Fixed CodeMirror themes not being detected on settings page
Download this release
Release Info
Developer | bungeshea |
Plugin | Code Snippets |
Version | 2.4.1 |
Comparing to | |
See all releases |
Code changes from version 2.4.0 to 2.4.1
- code-snippets.php +4 -4
- languages/code-snippets.pot +161 -163
- {includes → php}/admin-menus/class-admin-menu.php +0 -0
- {includes → php}/admin-menus/class-edit-menu.php +0 -0
- {includes → php}/admin-menus/class-import-menu.php +0 -0
- {includes → php}/admin-menus/class-manage-menu.php +1 -1
- {includes → php}/admin-menus/class-settings-menu.php +0 -0
- {includes → php}/admin.php +0 -0
- {includes → php}/caps.php +0 -0
- {includes → php}/class-export.php +0 -0
- {includes → php}/class-list-table.php +0 -0
- {includes → php}/class-snippet.php +0 -0
- {includes → php}/contextual-help.php +0 -0
- {includes → php}/db.php +0 -0
- {includes → php}/editor.php +0 -0
- {includes → php}/functions.php +0 -0
- {includes → php}/settings/class-settings.php +0 -0
- {includes → php}/settings/editor-preview.php +1 -1
- {includes → php}/settings/settings-fields.php +0 -0
- {includes → php}/settings/settings.php +0 -0
- {includes → php}/snippet-ops.php +1 -1
- {includes → php}/upgrade.php +0 -0
- {includes → php}/views/edit.php +0 -0
- {includes → php}/views/import.php +0 -0
- {includes → php}/views/manage.php +0 -0
- readme.txt +7 -1
code-snippets.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* contribute to the localization, please see https://github.com/sheabunge/code-snippets
|
8 |
*
|
9 |
* @package Code_Snippets
|
10 |
-
* @version 2.4.
|
11 |
* @author Shea Bunge <http://bungeshea.com/>
|
12 |
* @copyright Copyright (c) 2012-2015, Shea Bunge
|
13 |
* @link http://bungeshea.com/plugins/code-snippets/
|
@@ -20,7 +20,7 @@ Plugin URI: http://bungeshea.com/plugins/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: http://bungeshea.com
|
23 |
-
Version: 2.4.
|
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.4.
|
46 |
|
47 |
/**
|
48 |
* The full path to the main file of this plugin
|
@@ -93,7 +93,7 @@ foreach ( array(
|
|
93 |
|
94 |
) as $include ) {
|
95 |
|
96 |
-
require plugin_dir_path( __FILE__ ) . "
|
97 |
}
|
98 |
|
99 |
/* Initialize database table variables */
|
7 |
* contribute to the localization, please see https://github.com/sheabunge/code-snippets
|
8 |
*
|
9 |
* @package Code_Snippets
|
10 |
+
* @version 2.4.1
|
11 |
* @author Shea Bunge <http://bungeshea.com/>
|
12 |
* @copyright Copyright (c) 2012-2015, Shea Bunge
|
13 |
* @link http://bungeshea.com/plugins/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: http://bungeshea.com
|
23 |
+
Version: 2.4.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.4.1' );
|
46 |
|
47 |
/**
|
48 |
* The full path to the main file of this plugin
|
93 |
|
94 |
) as $include ) {
|
95 |
|
96 |
+
require plugin_dir_path( __FILE__ ) . "php/$include";
|
97 |
}
|
98 |
|
99 |
/* Initialize database table variables */
|
languages/code-snippets.pot
CHANGED
@@ -6,9 +6,9 @@
|
|
6 |
#, fuzzy
|
7 |
msgid ""
|
8 |
msgstr ""
|
9 |
-
"Project-Id-Version: code-snippets 2.4.
|
10 |
"Report-Msgid-Bugs-To: \n"
|
11 |
-
"POT-Creation-Date: 2015-09-17
|
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,102 +18,100 @@ msgstr ""
|
|
18 |
"Content-Transfer-Encoding: 8bit\n"
|
19 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
20 |
|
21 |
-
#:
|
22 |
msgid "You are not authorized to access this page."
|
23 |
msgstr ""
|
24 |
|
25 |
-
#:
|
26 |
-
#:
|
27 |
msgid "Edit Snippet"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#:
|
31 |
msgid "Add New"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#:
|
35 |
msgid "Add New Snippet"
|
36 |
msgstr ""
|
37 |
|
38 |
-
#:
|
39 |
-
#: includes/class-list-table.php:324
|
40 |
msgid "Description"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#:
|
44 |
-
#: includes/class-list-table.php:325
|
45 |
msgid "Tags"
|
46 |
msgstr ""
|
47 |
|
48 |
-
#:
|
49 |
msgid "Enter a list of tags; separated by commas"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#:
|
53 |
msgid "Run snippet everywhere"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#:
|
57 |
msgid "Only run in adminstration area"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#:
|
61 |
msgid "Only run on site front-end"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#:
|
65 |
msgid "Scope"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#:
|
69 |
msgid "Sharing"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#:
|
73 |
msgid "Allow this snippet to be activated on individual sites on the network"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#:
|
77 |
msgid "An error occurred when saving the snippet."
|
78 |
msgstr ""
|
79 |
|
80 |
-
#:
|
81 |
msgid "Snippet <strong>added</strong>."
|
82 |
msgstr ""
|
83 |
|
84 |
-
#:
|
85 |
msgid "Snippet <strong>updated</strong>."
|
86 |
msgstr ""
|
87 |
|
88 |
-
#:
|
89 |
msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
|
90 |
msgstr ""
|
91 |
|
92 |
-
#:
|
93 |
msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
|
94 |
msgstr ""
|
95 |
|
96 |
-
#:
|
97 |
msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
|
98 |
msgstr ""
|
99 |
|
100 |
-
#:
|
101 |
msgid "Import"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#:
|
105 |
msgid "Import Snippets"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#:
|
109 |
msgid "Code Snippets"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#:
|
113 |
msgid "Import snippets from a code snippets export file"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#:
|
117 |
#, php-format
|
118 |
msgid ""
|
119 |
"Successfully imported <strong>%d</strong> snippet. <a href=\"%s\">Have fun!</"
|
@@ -124,22 +122,22 @@ msgid_plural ""
|
|
124 |
msgstr[0] ""
|
125 |
msgstr[1] ""
|
126 |
|
127 |
-
#:
|
128 |
msgid "An error occurred when processing the import file."
|
129 |
msgstr ""
|
130 |
|
131 |
-
#:
|
132 |
msgid "Manage"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#:
|
136 |
-
#:
|
137 |
-
#:
|
138 |
-
#:
|
139 |
msgid "Snippets"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#:
|
143 |
msgid ""
|
144 |
"<strong>Warning:</strong> Safe mode is active and snippets will not execute! "
|
145 |
"Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-"
|
@@ -147,276 +145,276 @@ msgid ""
|
|
147 |
"sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Help</a>"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#:
|
151 |
msgid "Snippet <strong>activated</strong>."
|
152 |
msgstr ""
|
153 |
|
154 |
-
#:
|
155 |
msgid "Selected snippets <strong>activated</strong>."
|
156 |
msgstr ""
|
157 |
|
158 |
-
#:
|
159 |
msgid "Snippet <strong>deactivated</strong>."
|
160 |
msgstr ""
|
161 |
|
162 |
-
#:
|
163 |
msgid "Selected snippets <strong>deactivated</strong>."
|
164 |
msgstr ""
|
165 |
|
166 |
-
#:
|
167 |
msgid "Snippet <strong>deleted</strong>."
|
168 |
msgstr ""
|
169 |
|
170 |
-
#:
|
171 |
msgid "Selected snippets <strong>deleted</strong>."
|
172 |
msgstr ""
|
173 |
|
174 |
-
#:
|
175 |
-
#:
|
176 |
msgid "Settings"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#:
|
180 |
msgid "Snippets Settings"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#:
|
184 |
msgid "Manage your existing snippets"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#:
|
188 |
msgid "Visit the WordPress.org plugin page"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#:
|
192 |
msgid "About"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#:
|
196 |
msgid "Visit the support forums"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#:
|
200 |
msgid "Support"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#:
|
204 |
msgid "Support this plugin's development"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#:
|
208 |
msgid "Donate"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#:
|
212 |
msgid ""
|
213 |
"<strong>Have feedback on Code Snippets?</strong> Please take the time to "
|
214 |
"answer a short survey on how you use this plugin and what you'd like to see "
|
215 |
"changed or added in the future."
|
216 |
msgstr ""
|
217 |
|
218 |
-
#:
|
219 |
msgid "Take the survey now"
|
220 |
msgstr ""
|
221 |
|
222 |
-
#:
|
223 |
msgid ""
|
224 |
"This is a code snippets export file generated by the Code Snippets WordPress "
|
225 |
"plugin."
|
226 |
msgstr ""
|
227 |
|
228 |
-
#:
|
229 |
msgid "To import these snippets a WordPress site follow these steps:"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#:
|
233 |
msgid "1. Log in to that site as an administrator."
|
234 |
msgstr ""
|
235 |
|
236 |
-
#:
|
237 |
msgid ""
|
238 |
"2. Install the Code Snippets plugin using the directions provided at the "
|
239 |
"above link."
|
240 |
msgstr ""
|
241 |
|
242 |
-
#:
|
243 |
msgid "3. Go to 'Tools: Import' in the WordPress admin panel."
|
244 |
msgstr ""
|
245 |
|
246 |
-
#:
|
247 |
msgid "4. Click on the \"Code Snippets\" importer in the list"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#:
|
251 |
msgid "5. Upload this file using the form provided on that page."
|
252 |
msgstr ""
|
253 |
|
254 |
-
#:
|
255 |
msgid ""
|
256 |
"6. Code Snippets will then import all of the snippets and associated "
|
257 |
"information contained in this file into your site."
|
258 |
msgstr ""
|
259 |
|
260 |
-
#:
|
261 |
msgid ""
|
262 |
"7. You will then have to visit the 'Snippets: Manage' admin menu and "
|
263 |
"activate desired snippets."
|
264 |
msgstr ""
|
265 |
|
266 |
-
#:
|
267 |
msgid "Snippets per page"
|
268 |
msgstr ""
|
269 |
|
270 |
-
#:
|
271 |
msgid "Network Deactivate"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#:
|
275 |
-
#:
|
276 |
msgid "Deactivate"
|
277 |
msgstr ""
|
278 |
|
279 |
-
#:
|
280 |
msgid "Network Activate"
|
281 |
msgstr ""
|
282 |
|
283 |
-
#:
|
284 |
-
#:
|
285 |
msgid "Activate"
|
286 |
msgstr ""
|
287 |
|
288 |
-
#:
|
289 |
msgid "Edit"
|
290 |
msgstr ""
|
291 |
|
292 |
-
#:
|
293 |
-
#:
|
294 |
msgid "Export"
|
295 |
msgstr ""
|
296 |
|
297 |
-
#:
|
298 |
-
#:
|
299 |
msgid "Delete"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#:
|
303 |
msgid ""
|
304 |
"You are about to permanently delete the selected item.\n"
|
305 |
"\t\t\t\t\t'Cancel' to stop, 'OK' to delete."
|
306 |
msgstr ""
|
307 |
|
308 |
-
#:
|
309 |
#, php-format
|
310 |
msgid "Untitled #%d"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#:
|
314 |
msgid "Shared on Network"
|
315 |
msgstr ""
|
316 |
|
317 |
-
#:
|
318 |
msgid "Name"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#:
|
322 |
msgid "ID"
|
323 |
msgstr ""
|
324 |
|
325 |
-
#:
|
326 |
msgid "Export to PHP"
|
327 |
msgstr ""
|
328 |
|
329 |
-
#:
|
330 |
#, php-format
|
331 |
msgid "All <span class=\"count\">(%s)</span>"
|
332 |
msgid_plural "All <span class=\"count\">(%s)</span>"
|
333 |
msgstr[0] ""
|
334 |
msgstr[1] ""
|
335 |
|
336 |
-
#:
|
337 |
#, php-format
|
338 |
msgid "Active <span class=\"count\">(%s)</span>"
|
339 |
msgid_plural "Active <span class=\"count\">(%s)</span>"
|
340 |
msgstr[0] ""
|
341 |
msgstr[1] ""
|
342 |
|
343 |
-
#:
|
344 |
#, php-format
|
345 |
msgid "Inactive <span class=\"count\">(%s)</span>"
|
346 |
msgid_plural "Inactive <span class=\"count\">(%s)</span>"
|
347 |
msgstr[0] ""
|
348 |
msgstr[1] ""
|
349 |
|
350 |
-
#:
|
351 |
#, php-format
|
352 |
msgid "Recently Active <span class=\"count\">(%s)</span>"
|
353 |
msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
|
354 |
msgstr[0] ""
|
355 |
msgstr[1] ""
|
356 |
|
357 |
-
#:
|
358 |
msgid "Show all tags"
|
359 |
msgstr ""
|
360 |
|
361 |
-
#:
|
362 |
msgid "Filter"
|
363 |
msgstr ""
|
364 |
|
365 |
-
#:
|
366 |
msgid "Clear List"
|
367 |
msgstr ""
|
368 |
|
369 |
-
#:
|
370 |
#, php-format
|
371 |
msgid ""
|
372 |
"You do not appear to have any snippets available at this time. <a href=\"%s"
|
373 |
"\">Add New→</a>"
|
374 |
msgstr ""
|
375 |
|
376 |
-
#:
|
377 |
msgid "Search results"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#:
|
381 |
#, php-format
|
382 |
msgid " for “%s”"
|
383 |
msgstr ""
|
384 |
|
385 |
-
#:
|
386 |
#, php-format
|
387 |
msgid " in tag “%s”"
|
388 |
msgstr ""
|
389 |
|
390 |
-
#:
|
391 |
msgid "Clear Filters"
|
392 |
msgstr ""
|
393 |
|
394 |
-
#:
|
395 |
msgid "For more information:"
|
396 |
msgstr ""
|
397 |
|
398 |
-
#:
|
399 |
msgid "About Plugin"
|
400 |
msgstr ""
|
401 |
|
402 |
-
#:
|
403 |
msgid "FAQ"
|
404 |
msgstr ""
|
405 |
|
406 |
-
#:
|
407 |
msgid "Support Forums"
|
408 |
msgstr ""
|
409 |
|
410 |
-
#:
|
411 |
msgid "Plugin Website</a>"
|
412 |
msgstr ""
|
413 |
|
414 |
-
#:
|
415 |
-
#:
|
416 |
msgid "Overview"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#:
|
420 |
msgid ""
|
421 |
"Snippets are similar to plugins - they both extend and expand the "
|
422 |
"functionality of WordPress. Snippets are more light-weight, just a few lines "
|
@@ -425,18 +423,18 @@ msgid ""
|
|
425 |
"deactivating, deleting and exporting."
|
426 |
msgstr ""
|
427 |
|
428 |
-
#:
|
429 |
msgid "Safe Mode"
|
430 |
msgstr ""
|
431 |
|
432 |
-
#:
|
433 |
msgid ""
|
434 |
"Be sure to check your snippets for errors before you activate them, as a "
|
435 |
"faulty snippet could bring your whole blog down. If your site starts doing "
|
436 |
"strange things, deactivate all your snippets and activate them one at a time."
|
437 |
msgstr ""
|
438 |
|
439 |
-
#:
|
440 |
msgid ""
|
441 |
"If something goes wrong with a snippet and you can't use WordPress, you can "
|
442 |
"cause all snippets to stop executing by adding "
|
@@ -446,11 +444,11 @@ msgid ""
|
|
446 |
"strong> with <strong>false</strong>."
|
447 |
msgstr ""
|
448 |
|
449 |
-
#:
|
450 |
msgid "Uninstall"
|
451 |
msgstr ""
|
452 |
|
453 |
-
#:
|
454 |
#, php-format
|
455 |
msgid ""
|
456 |
"When you delete Code Snippets through the Plugins menu in WordPress it will "
|
@@ -460,14 +458,14 @@ msgid ""
|
|
460 |
"FTP."
|
461 |
msgstr ""
|
462 |
|
463 |
-
#:
|
464 |
msgid ""
|
465 |
"Even if you're sure that you don't want to use Code Snippets ever again on "
|
466 |
"this WordPress installation, you may want to use the export feature to back "
|
467 |
"up your snippets."
|
468 |
msgstr ""
|
469 |
|
470 |
-
#:
|
471 |
msgid ""
|
472 |
"Snippets are similar to plugins - they both extend and expand the "
|
473 |
"functionality of WordPress. Snippets are more light-weight, just a few lines "
|
@@ -475,11 +473,11 @@ msgid ""
|
|
475 |
"snippet, or edit an existing one."
|
476 |
msgstr ""
|
477 |
|
478 |
-
#:
|
479 |
msgid "Finding Snippets"
|
480 |
msgstr ""
|
481 |
|
482 |
-
#:
|
483 |
msgid ""
|
484 |
"Here are some links to websites which host a large number of snippets that "
|
485 |
"you can add to your site.\n"
|
@@ -494,25 +492,25 @@ msgid ""
|
|
494 |
"\t\t\t</ul>"
|
495 |
msgstr ""
|
496 |
|
497 |
-
#:
|
498 |
msgid ""
|
499 |
"More places to find snippets, as well as a selection of example snippets, "
|
500 |
"can be found in the <a href=\"https://github.com/sheabunge/code-snippets/"
|
501 |
"wiki/Finding-snippets\">plugin documentation</a>"
|
502 |
msgstr ""
|
503 |
|
504 |
-
#:
|
505 |
msgid "Adding Snippets"
|
506 |
msgstr ""
|
507 |
|
508 |
-
#:
|
509 |
msgid ""
|
510 |
"You need to fill out the name and code fields for your snippet to be added. "
|
511 |
"While the description field will add more information about how your snippet "
|
512 |
"works, what is does and where you found it, it is completely optional."
|
513 |
msgstr ""
|
514 |
|
515 |
-
#:
|
516 |
msgid ""
|
517 |
"Please be sure to check that your snippet is valid PHP code and will not "
|
518 |
"produce errors before adding it through this page. While doing so will not "
|
@@ -520,7 +518,7 @@ msgid ""
|
|
520 |
"snippet becoming active on your site."
|
521 |
msgstr ""
|
522 |
|
523 |
-
#:
|
524 |
msgid ""
|
525 |
"Snippets are similar to plugins - they both extend and expand the "
|
526 |
"functionality of WordPress. Snippets are more light-weight, just a few lines "
|
@@ -529,17 +527,17 @@ msgid ""
|
|
529 |
"existing snippets."
|
530 |
msgstr ""
|
531 |
|
532 |
-
#:
|
533 |
msgid "Importing"
|
534 |
msgstr ""
|
535 |
|
536 |
-
#:
|
537 |
msgid ""
|
538 |
"You can load your snippets from a code snippets (.xml) export file using "
|
539 |
"this page."
|
540 |
msgstr ""
|
541 |
|
542 |
-
#:
|
543 |
#, php-format
|
544 |
msgid ""
|
545 |
"Snippets will be added to the database along with your existing snippets. "
|
@@ -548,196 +546,196 @@ msgid ""
|
|
548 |
"\">Manage Snippets</a> page.</p>"
|
549 |
msgstr ""
|
550 |
|
551 |
-
#:
|
552 |
msgid "Exporting"
|
553 |
msgstr ""
|
554 |
|
555 |
-
#:
|
556 |
#, php-format
|
557 |
msgid ""
|
558 |
"You can save your snippets to a Code Snippets (.xml) export file using the "
|
559 |
"<a href=\"%s\">Manage Snippets</a> page."
|
560 |
msgstr ""
|
561 |
|
562 |
-
#:
|
563 |
msgid "Activate by Default"
|
564 |
msgstr ""
|
565 |
|
566 |
-
#:
|
567 |
msgid ""
|
568 |
"Make the 'Save and Activate' button the default action when saving a snippet."
|
569 |
msgstr ""
|
570 |
|
571 |
-
#:
|
572 |
msgid "Enable Scope Selector"
|
573 |
msgstr ""
|
574 |
|
575 |
-
#:
|
576 |
msgid "Enable the scope selector when editing a snippet"
|
577 |
msgstr ""
|
578 |
|
579 |
-
#:
|
580 |
msgid "Row Height"
|
581 |
msgstr ""
|
582 |
|
583 |
-
#:
|
584 |
msgid "rows"
|
585 |
msgstr ""
|
586 |
|
587 |
-
#:
|
588 |
msgid "Use Full Editor"
|
589 |
msgstr ""
|
590 |
|
591 |
-
#:
|
592 |
msgid "Enable all features of the visual editor"
|
593 |
msgstr ""
|
594 |
|
595 |
-
#:
|
596 |
msgid "Media Buttons"
|
597 |
msgstr ""
|
598 |
|
599 |
-
#:
|
600 |
msgid "Enable the add media buttons"
|
601 |
msgstr ""
|
602 |
|
603 |
-
#:
|
604 |
msgid "Theme"
|
605 |
msgstr ""
|
606 |
|
607 |
-
#:
|
608 |
msgid "Indent With Tabs"
|
609 |
msgstr ""
|
610 |
|
611 |
-
#:
|
612 |
msgid "Use hard tabs (not spaces) for indentation."
|
613 |
msgstr ""
|
614 |
|
615 |
-
#:
|
616 |
msgid "Tab Size"
|
617 |
msgstr ""
|
618 |
|
619 |
-
#:
|
620 |
msgid "The width of a tab character."
|
621 |
msgstr ""
|
622 |
|
623 |
-
#:
|
624 |
msgid "Indent Unit"
|
625 |
msgstr ""
|
626 |
|
627 |
-
#:
|
628 |
msgid "How many spaces a block should be indented."
|
629 |
msgstr ""
|
630 |
|
631 |
-
#:
|
632 |
msgid "Wrap Lines"
|
633 |
msgstr ""
|
634 |
|
635 |
-
#:
|
636 |
msgid "Whether the editor should scroll or wrap for long lines."
|
637 |
msgstr ""
|
638 |
|
639 |
-
#:
|
640 |
msgid "Line Numbers"
|
641 |
msgstr ""
|
642 |
|
643 |
-
#:
|
644 |
msgid "Show line numbers to the left of the editor."
|
645 |
msgstr ""
|
646 |
|
647 |
-
#:
|
648 |
msgid "Auto Close Brackets"
|
649 |
msgstr ""
|
650 |
|
651 |
-
#:
|
652 |
msgid "Auto-close brackets and quotes when typed."
|
653 |
msgstr ""
|
654 |
|
655 |
-
#:
|
656 |
msgid "Highlight Selection Matches"
|
657 |
msgstr ""
|
658 |
|
659 |
-
#:
|
660 |
msgid "Highlight all instances of a currently selected word."
|
661 |
msgstr ""
|
662 |
|
663 |
-
#:
|
664 |
msgid "General"
|
665 |
msgstr ""
|
666 |
|
667 |
-
#:
|
668 |
msgid "Description Editor"
|
669 |
msgstr ""
|
670 |
|
671 |
-
#:
|
672 |
msgid "Code Editor"
|
673 |
msgstr ""
|
674 |
|
675 |
-
#:
|
676 |
msgid "Editor Preview"
|
677 |
msgstr ""
|
678 |
|
679 |
-
#:
|
680 |
msgid "Settings saved."
|
681 |
msgstr ""
|
682 |
|
683 |
-
#:
|
684 |
msgctxt "snippet"
|
685 |
msgid "Add New"
|
686 |
msgstr ""
|
687 |
|
688 |
-
#:
|
689 |
msgid "Name (short title)"
|
690 |
msgstr ""
|
691 |
|
692 |
-
#:
|
693 |
msgid "Code"
|
694 |
msgstr ""
|
695 |
|
696 |
-
#:
|
697 |
msgid "Save Changes and Activate"
|
698 |
msgstr ""
|
699 |
|
700 |
-
#:
|
701 |
msgid "Save Changes and Deactivate"
|
702 |
msgstr ""
|
703 |
|
704 |
-
#:
|
705 |
msgid ""
|
706 |
"You are about to permanently delete this snippet.\n"
|
707 |
"'Cancel' to stop, 'OK' to delete."
|
708 |
msgstr ""
|
709 |
|
710 |
-
#:
|
711 |
msgid ""
|
712 |
"Howdy! Upload your Code Snippets export file and we’ll import the "
|
713 |
"snippets to this site."
|
714 |
msgstr ""
|
715 |
|
716 |
-
#:
|
717 |
#, php-format
|
718 |
msgid ""
|
719 |
"You will need to go to the <a href=\"%s\">Manage Snippets</a> page to "
|
720 |
"activate the imported snippets."
|
721 |
msgstr ""
|
722 |
|
723 |
-
#:
|
724 |
msgid ""
|
725 |
"Choose a Code Snippets (.xml) file to upload, then click Upload file and "
|
726 |
"import."
|
727 |
msgstr ""
|
728 |
|
729 |
-
#:
|
730 |
msgid "Choose a file from your computer:"
|
731 |
msgstr ""
|
732 |
|
733 |
-
#:
|
734 |
msgid "(Maximum size: 8MB)"
|
735 |
msgstr ""
|
736 |
|
737 |
-
#:
|
738 |
msgid "Upload file and import"
|
739 |
msgstr ""
|
740 |
|
741 |
-
#:
|
742 |
msgid "Search Installed Snippets"
|
743 |
msgstr ""
|
6 |
#, fuzzy
|
7 |
msgid ""
|
8 |
msgstr ""
|
9 |
+
"Project-Id-Version: code-snippets 2.4.1\n"
|
10 |
"Report-Msgid-Bugs-To: \n"
|
11 |
+
"POT-Creation-Date: 2015-09-17 21:24+1000\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:90
|
22 |
msgid "You are not authorized to access this page."
|
23 |
msgstr ""
|
24 |
|
25 |
+
#: php/admin-menus/class-edit-menu.php:13
|
26 |
+
#: php/admin-menus/class-edit-menu.php:14 php/views/edit.php:25
|
27 |
msgid "Edit Snippet"
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: php/admin-menus/class-edit-menu.php:28
|
31 |
msgid "Add New"
|
32 |
msgstr ""
|
33 |
|
34 |
+
#: php/admin-menus/class-edit-menu.php:29 php/views/edit.php:31
|
35 |
msgid "Add New Snippet"
|
36 |
msgstr ""
|
37 |
|
38 |
+
#: php/admin-menus/class-edit-menu.php:180 php/class-list-table.php:324
|
|
|
39 |
msgid "Description"
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: php/admin-menus/class-edit-menu.php:205 php/class-list-table.php:325
|
|
|
43 |
msgid "Tags"
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: php/admin-menus/class-edit-menu.php:209
|
47 |
msgid "Enter a list of tags; separated by commas"
|
48 |
msgstr ""
|
49 |
|
50 |
+
#: php/admin-menus/class-edit-menu.php:228
|
51 |
msgid "Run snippet everywhere"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: php/admin-menus/class-edit-menu.php:229
|
55 |
msgid "Only run in adminstration area"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: php/admin-menus/class-edit-menu.php:230
|
59 |
msgid "Only run on site front-end"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: php/admin-menus/class-edit-menu.php:234
|
63 |
msgid "Scope"
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: php/admin-menus/class-edit-menu.php:254
|
67 |
msgid "Sharing"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: php/admin-menus/class-edit-menu.php:258
|
71 |
msgid "Allow this snippet to be activated on individual sites on the network"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: php/admin-menus/class-edit-menu.php:272
|
75 |
msgid "An error occurred when saving the snippet."
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: php/admin-menus/class-edit-menu.php:282
|
79 |
msgid "Snippet <strong>added</strong>."
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: php/admin-menus/class-edit-menu.php:283
|
83 |
msgid "Snippet <strong>updated</strong>."
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: php/admin-menus/class-edit-menu.php:284
|
87 |
msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: php/admin-menus/class-edit-menu.php:285
|
91 |
msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: php/admin-menus/class-edit-menu.php:286
|
95 |
msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: php/admin-menus/class-import-menu.php:15
|
99 |
msgid "Import"
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: php/admin-menus/class-import-menu.php:16 php/views/import.php:17
|
103 |
msgid "Import Snippets"
|
104 |
msgstr ""
|
105 |
|
106 |
+
#: php/admin-menus/class-import-menu.php:73
|
107 |
msgid "Code Snippets"
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: php/admin-menus/class-import-menu.php:74
|
111 |
msgid "Import snippets from a code snippets export file"
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: php/admin-menus/class-import-menu.php:88
|
115 |
#, php-format
|
116 |
msgid ""
|
117 |
"Successfully imported <strong>%d</strong> snippet. <a href=\"%s\">Have fun!</"
|
122 |
msgstr[0] ""
|
123 |
msgstr[1] ""
|
124 |
|
125 |
+
#: php/admin-menus/class-import-menu.php:101
|
126 |
msgid "An error occurred when processing the import file."
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: php/admin-menus/class-manage-menu.php:22 php/admin.php:117
|
130 |
msgid "Manage"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: php/admin-menus/class-manage-menu.php:23
|
134 |
+
#: php/admin-menus/class-manage-menu.php:39
|
135 |
+
#: php/admin-menus/class-manage-menu.php:40 php/admin.php:56
|
136 |
+
#: php/views/manage.php:19
|
137 |
msgid "Snippets"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: php/admin-menus/class-manage-menu.php:75
|
141 |
msgid ""
|
142 |
"<strong>Warning:</strong> Safe mode is active and snippets will not execute! "
|
143 |
"Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-"
|
145 |
"sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Help</a>"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: php/admin-menus/class-manage-menu.php:81
|
149 |
msgid "Snippet <strong>activated</strong>."
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: php/admin-menus/class-manage-menu.php:82
|
153 |
msgid "Selected snippets <strong>activated</strong>."
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: php/admin-menus/class-manage-menu.php:83
|
157 |
msgid "Snippet <strong>deactivated</strong>."
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: php/admin-menus/class-manage-menu.php:84
|
161 |
msgid "Selected snippets <strong>deactivated</strong>."
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: php/admin-menus/class-manage-menu.php:85
|
165 |
msgid "Snippet <strong>deleted</strong>."
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: php/admin-menus/class-manage-menu.php:86
|
169 |
msgid "Selected snippets <strong>deleted</strong>."
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: php/admin-menus/class-settings-menu.php:16
|
173 |
+
#: php/admin-menus/class-settings-menu.php:36 php/views/edit.php:132
|
174 |
msgid "Settings"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: php/admin-menus/class-settings-menu.php:17
|
178 |
msgid "Snippets Settings"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: php/admin.php:116
|
182 |
msgid "Manage your existing snippets"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: php/admin.php:146
|
186 |
msgid "Visit the WordPress.org plugin page"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: php/admin.php:147
|
190 |
msgid "About"
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: php/admin.php:151
|
194 |
msgid "Visit the support forums"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: php/admin.php:152
|
198 |
msgid "Support"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: php/admin.php:156
|
202 |
msgid "Support this plugin's development"
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: php/admin.php:157
|
206 |
msgid "Donate"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: php/admin.php:190
|
210 |
msgid ""
|
211 |
"<strong>Have feedback on Code Snippets?</strong> Please take the time to "
|
212 |
"answer a short survey on how you use this plugin and what you'd like to see "
|
213 |
"changed or added in the future."
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: php/admin.php:193
|
217 |
msgid "Take the survey now"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: php/class-export.php:87
|
221 |
msgid ""
|
222 |
"This is a code snippets export file generated by the Code Snippets WordPress "
|
223 |
"plugin."
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: php/class-export.php:89
|
227 |
msgid "To import these snippets a WordPress site follow these steps:"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: php/class-export.php:90
|
231 |
msgid "1. Log in to that site as an administrator."
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: php/class-export.php:91
|
235 |
msgid ""
|
236 |
"2. Install the Code Snippets plugin using the directions provided at the "
|
237 |
"above link."
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: php/class-export.php:92
|
241 |
msgid "3. Go to 'Tools: Import' in the WordPress admin panel."
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: php/class-export.php:93
|
245 |
msgid "4. Click on the \"Code Snippets\" importer in the list"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: php/class-export.php:94
|
249 |
msgid "5. Upload this file using the form provided on that page."
|
250 |
msgstr ""
|
251 |
|
252 |
+
#: php/class-export.php:95
|
253 |
msgid ""
|
254 |
"6. Code Snippets will then import all of the snippets and associated "
|
255 |
"information contained in this file into your site."
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: php/class-export.php:96
|
259 |
msgid ""
|
260 |
"7. You will then have to visit the 'Snippets: Manage' admin menu and "
|
261 |
"activate desired snippets."
|
262 |
msgstr ""
|
263 |
|
264 |
+
#: php/class-list-table.php:58
|
265 |
msgid "Snippets per page"
|
266 |
msgstr ""
|
267 |
|
268 |
+
#: php/class-list-table.php:117 php/class-list-table.php:361
|
269 |
msgid "Network Deactivate"
|
270 |
msgstr ""
|
271 |
|
272 |
+
#: php/class-list-table.php:117 php/class-list-table.php:180
|
273 |
+
#: php/class-list-table.php:361
|
274 |
msgid "Deactivate"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: php/class-list-table.php:126 php/class-list-table.php:360
|
278 |
msgid "Network Activate"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: php/class-list-table.php:126 php/class-list-table.php:180
|
282 |
+
#: php/class-list-table.php:360
|
283 |
msgid "Activate"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: php/class-list-table.php:136 php/class-list-table.php:196
|
287 |
msgid "Edit"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: php/class-list-table.php:142 php/class-list-table.php:202
|
291 |
+
#: php/class-list-table.php:362 php/views/edit.php:109
|
292 |
msgid "Export"
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: php/class-list-table.php:151 php/class-list-table.php:214
|
296 |
+
#: php/class-list-table.php:363 php/views/edit.php:121
|
297 |
msgid "Delete"
|
298 |
msgstr ""
|
299 |
|
300 |
+
#: php/class-list-table.php:158 php/class-list-table.php:224
|
301 |
msgid ""
|
302 |
"You are about to permanently delete the selected item.\n"
|
303 |
"\t\t\t\t\t'Cancel' to stop, 'OK' to delete."
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: php/class-list-table.php:244
|
307 |
#, php-format
|
308 |
msgid "Untitled #%d"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: php/class-list-table.php:261
|
312 |
msgid "Shared on Network"
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: php/class-list-table.php:322
|
316 |
msgid "Name"
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: php/class-list-table.php:323
|
320 |
msgid "ID"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: php/class-list-table.php:364
|
324 |
msgid "Export to PHP"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: php/class-list-table.php:402
|
328 |
#, php-format
|
329 |
msgid "All <span class=\"count\">(%s)</span>"
|
330 |
msgid_plural "All <span class=\"count\">(%s)</span>"
|
331 |
msgstr[0] ""
|
332 |
msgstr[1] ""
|
333 |
|
334 |
+
#: php/class-list-table.php:403
|
335 |
#, php-format
|
336 |
msgid "Active <span class=\"count\">(%s)</span>"
|
337 |
msgid_plural "Active <span class=\"count\">(%s)</span>"
|
338 |
msgstr[0] ""
|
339 |
msgstr[1] ""
|
340 |
|
341 |
+
#: php/class-list-table.php:404
|
342 |
#, php-format
|
343 |
msgid "Inactive <span class=\"count\">(%s)</span>"
|
344 |
msgid_plural "Inactive <span class=\"count\">(%s)</span>"
|
345 |
msgstr[0] ""
|
346 |
msgstr[1] ""
|
347 |
|
348 |
+
#: php/class-list-table.php:405
|
349 |
#, php-format
|
350 |
msgid "Recently Active <span class=\"count\">(%s)</span>"
|
351 |
msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
|
352 |
msgstr[0] ""
|
353 |
msgstr[1] ""
|
354 |
|
355 |
+
#: php/class-list-table.php:468
|
356 |
msgid "Show all tags"
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: php/class-list-table.php:482
|
360 |
msgid "Filter"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: php/class-list-table.php:490
|
364 |
msgid "Clear List"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: php/class-list-table.php:677
|
368 |
#, php-format
|
369 |
msgid ""
|
370 |
"You do not appear to have any snippets available at this time. <a href=\"%s"
|
371 |
"\">Add New→</a>"
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: php/class-list-table.php:956
|
375 |
msgid "Search results"
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: php/class-list-table.php:959
|
379 |
#, php-format
|
380 |
msgid " for “%s”"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: php/class-list-table.php:963
|
384 |
#, php-format
|
385 |
msgid " in tag “%s”"
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: php/class-list-table.php:971
|
389 |
msgid "Clear Filters"
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: php/contextual-help.php:19
|
393 |
msgid "For more information:"
|
394 |
msgstr ""
|
395 |
|
396 |
+
#: php/contextual-help.php:20
|
397 |
msgid "About Plugin"
|
398 |
msgstr ""
|
399 |
|
400 |
+
#: php/contextual-help.php:21
|
401 |
msgid "FAQ"
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: php/contextual-help.php:22
|
405 |
msgid "Support Forums"
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: php/contextual-help.php:23
|
409 |
msgid "Plugin Website</a>"
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: php/contextual-help.php:36 php/contextual-help.php:67
|
413 |
+
#: php/contextual-help.php:105
|
414 |
msgid "Overview"
|
415 |
msgstr ""
|
416 |
|
417 |
+
#: php/contextual-help.php:38
|
418 |
msgid ""
|
419 |
"Snippets are similar to plugins - they both extend and expand the "
|
420 |
"functionality of WordPress. Snippets are more light-weight, just a few lines "
|
423 |
"deactivating, deleting and exporting."
|
424 |
msgstr ""
|
425 |
|
426 |
+
#: php/contextual-help.php:43
|
427 |
msgid "Safe Mode"
|
428 |
msgstr ""
|
429 |
|
430 |
+
#: php/contextual-help.php:45
|
431 |
msgid ""
|
432 |
"Be sure to check your snippets for errors before you activate them, as a "
|
433 |
"faulty snippet could bring your whole blog down. If your site starts doing "
|
434 |
"strange things, deactivate all your snippets and activate them one at a time."
|
435 |
msgstr ""
|
436 |
|
437 |
+
#: php/contextual-help.php:46
|
438 |
msgid ""
|
439 |
"If something goes wrong with a snippet and you can't use WordPress, you can "
|
440 |
"cause all snippets to stop executing by adding "
|
444 |
"strong> with <strong>false</strong>."
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: php/contextual-help.php:51
|
448 |
msgid "Uninstall"
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: php/contextual-help.php:53
|
452 |
#, php-format
|
453 |
msgid ""
|
454 |
"When you delete Code Snippets through the Plugins menu in WordPress it will "
|
458 |
"FTP."
|
459 |
msgstr ""
|
460 |
|
461 |
+
#: php/contextual-help.php:54
|
462 |
msgid ""
|
463 |
"Even if you're sure that you don't want to use Code Snippets ever again on "
|
464 |
"this WordPress installation, you may want to use the export feature to back "
|
465 |
"up your snippets."
|
466 |
msgstr ""
|
467 |
|
468 |
+
#: php/contextual-help.php:69
|
469 |
msgid ""
|
470 |
"Snippets are similar to plugins - they both extend and expand the "
|
471 |
"functionality of WordPress. Snippets are more light-weight, just a few lines "
|
473 |
"snippet, or edit an existing one."
|
474 |
msgstr ""
|
475 |
|
476 |
+
#: php/contextual-help.php:74
|
477 |
msgid "Finding Snippets"
|
478 |
msgstr ""
|
479 |
|
480 |
+
#: php/contextual-help.php:76
|
481 |
msgid ""
|
482 |
"Here are some links to websites which host a large number of snippets that "
|
483 |
"you can add to your site.\n"
|
492 |
"\t\t\t</ul>"
|
493 |
msgstr ""
|
494 |
|
495 |
+
#: php/contextual-help.php:83
|
496 |
msgid ""
|
497 |
"More places to find snippets, as well as a selection of example snippets, "
|
498 |
"can be found in the <a href=\"https://github.com/sheabunge/code-snippets/"
|
499 |
"wiki/Finding-snippets\">plugin documentation</a>"
|
500 |
msgstr ""
|
501 |
|
502 |
+
#: php/contextual-help.php:88
|
503 |
msgid "Adding Snippets"
|
504 |
msgstr ""
|
505 |
|
506 |
+
#: php/contextual-help.php:90
|
507 |
msgid ""
|
508 |
"You need to fill out the name and code fields for your snippet to be added. "
|
509 |
"While the description field will add more information about how your snippet "
|
510 |
"works, what is does and where you found it, it is completely optional."
|
511 |
msgstr ""
|
512 |
|
513 |
+
#: php/contextual-help.php:91
|
514 |
msgid ""
|
515 |
"Please be sure to check that your snippet is valid PHP code and will not "
|
516 |
"produce errors before adding it through this page. While doing so will not "
|
518 |
"snippet becoming active on your site."
|
519 |
msgstr ""
|
520 |
|
521 |
+
#: php/contextual-help.php:107
|
522 |
msgid ""
|
523 |
"Snippets are similar to plugins - they both extend and expand the "
|
524 |
"functionality of WordPress. Snippets are more light-weight, just a few lines "
|
527 |
"existing snippets."
|
528 |
msgstr ""
|
529 |
|
530 |
+
#: php/contextual-help.php:112
|
531 |
msgid "Importing"
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: php/contextual-help.php:114
|
535 |
msgid ""
|
536 |
"You can load your snippets from a code snippets (.xml) export file using "
|
537 |
"this page."
|
538 |
msgstr ""
|
539 |
|
540 |
+
#: php/contextual-help.php:115
|
541 |
#, php-format
|
542 |
msgid ""
|
543 |
"Snippets will be added to the database along with your existing snippets. "
|
546 |
"\">Manage Snippets</a> page.</p>"
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: php/contextual-help.php:120
|
550 |
msgid "Exporting"
|
551 |
msgstr ""
|
552 |
|
553 |
+
#: php/contextual-help.php:122
|
554 |
#, php-format
|
555 |
msgid ""
|
556 |
"You can save your snippets to a Code Snippets (.xml) export file using the "
|
557 |
"<a href=\"%s\">Manage Snippets</a> page."
|
558 |
msgstr ""
|
559 |
|
560 |
+
#: php/settings/class-settings.php:54
|
561 |
msgid "Activate by Default"
|
562 |
msgstr ""
|
563 |
|
564 |
+
#: php/settings/class-settings.php:56
|
565 |
msgid ""
|
566 |
"Make the 'Save and Activate' button the default action when saving a snippet."
|
567 |
msgstr ""
|
568 |
|
569 |
+
#: php/settings/class-settings.php:62
|
570 |
msgid "Enable Scope Selector"
|
571 |
msgstr ""
|
572 |
|
573 |
+
#: php/settings/class-settings.php:64
|
574 |
msgid "Enable the scope selector when editing a snippet"
|
575 |
msgstr ""
|
576 |
|
577 |
+
#: php/settings/class-settings.php:74
|
578 |
msgid "Row Height"
|
579 |
msgstr ""
|
580 |
|
581 |
+
#: php/settings/class-settings.php:76
|
582 |
msgid "rows"
|
583 |
msgstr ""
|
584 |
|
585 |
+
#: php/settings/class-settings.php:83
|
586 |
msgid "Use Full Editor"
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: php/settings/class-settings.php:85
|
590 |
msgid "Enable all features of the visual editor"
|
591 |
msgstr ""
|
592 |
|
593 |
+
#: php/settings/class-settings.php:91
|
594 |
msgid "Media Buttons"
|
595 |
msgstr ""
|
596 |
|
597 |
+
#: php/settings/class-settings.php:93
|
598 |
msgid "Enable the add media buttons"
|
599 |
msgstr ""
|
600 |
|
601 |
+
#: php/settings/class-settings.php:103
|
602 |
msgid "Theme"
|
603 |
msgstr ""
|
604 |
|
605 |
+
#: php/settings/class-settings.php:111
|
606 |
msgid "Indent With Tabs"
|
607 |
msgstr ""
|
608 |
|
609 |
+
#: php/settings/class-settings.php:113
|
610 |
msgid "Use hard tabs (not spaces) for indentation."
|
611 |
msgstr ""
|
612 |
|
613 |
+
#: php/settings/class-settings.php:120
|
614 |
msgid "Tab Size"
|
615 |
msgstr ""
|
616 |
|
617 |
+
#: php/settings/class-settings.php:122
|
618 |
msgid "The width of a tab character."
|
619 |
msgstr ""
|
620 |
|
621 |
+
#: php/settings/class-settings.php:130
|
622 |
msgid "Indent Unit"
|
623 |
msgstr ""
|
624 |
|
625 |
+
#: php/settings/class-settings.php:132
|
626 |
msgid "How many spaces a block should be indented."
|
627 |
msgstr ""
|
628 |
|
629 |
+
#: php/settings/class-settings.php:140
|
630 |
msgid "Wrap Lines"
|
631 |
msgstr ""
|
632 |
|
633 |
+
#: php/settings/class-settings.php:142
|
634 |
msgid "Whether the editor should scroll or wrap for long lines."
|
635 |
msgstr ""
|
636 |
|
637 |
+
#: php/settings/class-settings.php:149
|
638 |
msgid "Line Numbers"
|
639 |
msgstr ""
|
640 |
|
641 |
+
#: php/settings/class-settings.php:151
|
642 |
msgid "Show line numbers to the left of the editor."
|
643 |
msgstr ""
|
644 |
|
645 |
+
#: php/settings/class-settings.php:158
|
646 |
msgid "Auto Close Brackets"
|
647 |
msgstr ""
|
648 |
|
649 |
+
#: php/settings/class-settings.php:160
|
650 |
msgid "Auto-close brackets and quotes when typed."
|
651 |
msgstr ""
|
652 |
|
653 |
+
#: php/settings/class-settings.php:167
|
654 |
msgid "Highlight Selection Matches"
|
655 |
msgstr ""
|
656 |
|
657 |
+
#: php/settings/class-settings.php:168
|
658 |
msgid "Highlight all instances of a currently selected word."
|
659 |
msgstr ""
|
660 |
|
661 |
+
#: php/settings/settings.php:86
|
662 |
msgid "General"
|
663 |
msgstr ""
|
664 |
|
665 |
+
#: php/settings/settings.php:87
|
666 |
msgid "Description Editor"
|
667 |
msgstr ""
|
668 |
|
669 |
+
#: php/settings/settings.php:88
|
670 |
msgid "Code Editor"
|
671 |
msgstr ""
|
672 |
|
673 |
+
#: php/settings/settings.php:136
|
674 |
msgid "Editor Preview"
|
675 |
msgstr ""
|
676 |
|
677 |
+
#: php/settings/settings.php:183
|
678 |
msgid "Settings saved."
|
679 |
msgstr ""
|
680 |
|
681 |
+
#: php/views/edit.php:28 php/views/manage.php:22
|
682 |
msgctxt "snippet"
|
683 |
msgid "Add New"
|
684 |
msgstr ""
|
685 |
|
686 |
+
#: php/views/edit.php:48 php/views/edit.php:49
|
687 |
msgid "Name (short title)"
|
688 |
msgstr ""
|
689 |
|
690 |
+
#: php/views/edit.php:54
|
691 |
msgid "Code"
|
692 |
msgstr ""
|
693 |
|
694 |
+
#: php/views/edit.php:79 php/views/edit.php:93
|
695 |
msgid "Save Changes and Activate"
|
696 |
msgstr ""
|
697 |
|
698 |
+
#: php/views/edit.php:99
|
699 |
msgid "Save Changes and Deactivate"
|
700 |
msgstr ""
|
701 |
|
702 |
+
#: php/views/edit.php:116
|
703 |
msgid ""
|
704 |
"You are about to permanently delete this snippet.\n"
|
705 |
"'Cancel' to stop, 'OK' to delete."
|
706 |
msgstr ""
|
707 |
|
708 |
+
#: php/views/import.php:21
|
709 |
msgid ""
|
710 |
"Howdy! Upload your Code Snippets export file and we’ll import the "
|
711 |
"snippets to this site."
|
712 |
msgstr ""
|
713 |
|
714 |
+
#: php/views/import.php:23
|
715 |
#, php-format
|
716 |
msgid ""
|
717 |
"You will need to go to the <a href=\"%s\">Manage Snippets</a> page to "
|
718 |
"activate the imported snippets."
|
719 |
msgstr ""
|
720 |
|
721 |
+
#: php/views/import.php:25
|
722 |
msgid ""
|
723 |
"Choose a Code Snippets (.xml) file to upload, then click Upload file and "
|
724 |
"import."
|
725 |
msgstr ""
|
726 |
|
727 |
+
#: php/views/import.php:32
|
728 |
msgid "Choose a file from your computer:"
|
729 |
msgstr ""
|
730 |
|
731 |
+
#: php/views/import.php:33
|
732 |
msgid "(Maximum size: 8MB)"
|
733 |
msgstr ""
|
734 |
|
735 |
+
#: php/views/import.php:39
|
736 |
msgid "Upload file and import"
|
737 |
msgstr ""
|
738 |
|
739 |
+
#: php/views/manage.php:34
|
740 |
msgid "Search Installed Snippets"
|
741 |
msgstr ""
|
{includes → php}/admin-menus/class-admin-menu.php
RENAMED
File without changes
|
{includes → php}/admin-menus/class-edit-menu.php
RENAMED
File without changes
|
{includes → php}/admin-menus/class-import-menu.php
RENAMED
File without changes
|
{includes → php}/admin-menus/class-manage-menu.php
RENAMED
@@ -59,7 +59,7 @@ class Code_Snippets_Manage_Menu extends Code_Snippets_Admin_Menu {
|
|
59 |
code_snippets_load_manage_help();
|
60 |
|
61 |
/* Initialize the list table class */
|
62 |
-
require_once plugin_dir_path( CODE_SNIPPETS_FILE ) . '
|
63 |
$this->list_table = new Code_Snippets_List_Table();
|
64 |
$this->list_table->prepare_items();
|
65 |
}
|
59 |
code_snippets_load_manage_help();
|
60 |
|
61 |
/* Initialize the list table class */
|
62 |
+
require_once plugin_dir_path( CODE_SNIPPETS_FILE ) . 'php/class-list-table.php';
|
63 |
$this->list_table = new Code_Snippets_List_Table();
|
64 |
$this->list_table->prepare_items();
|
65 |
}
|
{includes → php}/admin-menus/class-settings-menu.php
RENAMED
File without changes
|
{includes → php}/admin.php
RENAMED
File without changes
|
{includes → php}/caps.php
RENAMED
File without changes
|
{includes → php}/class-export.php
RENAMED
File without changes
|
{includes → php}/class-list-table.php
RENAMED
File without changes
|
{includes → php}/class-snippet.php
RENAMED
File without changes
|
{includes → php}/contextual-help.php
RENAMED
File without changes
|
{includes → php}/db.php
RENAMED
File without changes
|
{includes → php}/editor.php
RENAMED
File without changes
|
{includes → php}/functions.php
RENAMED
File without changes
|
{includes → php}/settings/class-settings.php
RENAMED
File without changes
|
{includes → php}/settings/editor-preview.php
RENAMED
@@ -53,7 +53,7 @@ function code_snippets_codemirror_theme_select_field( $atts ) {
|
|
53 |
echo '<option value="default"' . selected( 'default', $saved_value, false ) . '>Default</option>';
|
54 |
|
55 |
/* Fetch all theme CSS files */
|
56 |
-
$themes_dir = plugin_dir_path( CODE_SNIPPETS_FILE ) . '
|
57 |
$themes = glob( $themes_dir . '*.css' );
|
58 |
|
59 |
/* Print dropdown entry for each theme */
|
53 |
echo '<option value="default"' . selected( 'default', $saved_value, false ) . '>Default</option>';
|
54 |
|
55 |
/* Fetch all theme CSS files */
|
56 |
+
$themes_dir = plugin_dir_path( CODE_SNIPPETS_FILE ) . 'css/min/cmthemes/';
|
57 |
$themes = glob( $themes_dir . '*.css' );
|
58 |
|
59 |
/* Print dropdown entry for each theme */
|
{includes → php}/settings/settings-fields.php
RENAMED
File without changes
|
{includes → php}/settings/settings.php
RENAMED
File without changes
|
{includes → php}/snippet-ops.php
RENAMED
@@ -354,7 +354,7 @@ function export_snippets( $ids, $multisite = null, $format = 'xml' ) {
|
|
354 |
$table = get_snippets_table_name( $multisite );
|
355 |
|
356 |
if ( ! class_exists( 'Code_Snippets_Export' ) ) {
|
357 |
-
require_once plugin_dir_path( CODE_SNIPPETS_FILE ) . '
|
358 |
}
|
359 |
|
360 |
$class = new Code_Snippets_Export( $ids, $table, $format );
|
354 |
$table = get_snippets_table_name( $multisite );
|
355 |
|
356 |
if ( ! class_exists( 'Code_Snippets_Export' ) ) {
|
357 |
+
require_once plugin_dir_path( CODE_SNIPPETS_FILE ) . 'php/class-export.php';
|
358 |
}
|
359 |
|
360 |
$class = new Code_Snippets_Export( $ids, $table, $format );
|
{includes → php}/upgrade.php
RENAMED
File without changes
|
{includes → php}/views/edit.php
RENAMED
File without changes
|
{includes → php}/views/import.php
RENAMED
File without changes
|
{includes → php}/views/manage.php
RENAMED
File without changes
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bungeshea.com/donate/
|
|
4 |
Tags: code-snippets, snippets, code, php, network, multisite
|
5 |
Requires at least: 3.6
|
6 |
Tested up to: 4.3.1
|
7 |
-
Stable tag: 2.4.
|
8 |
License: MIT
|
9 |
License URI: license.txt
|
10 |
|
@@ -116,6 +116,9 @@ That's fantastic! Fork the [repository on GitHub](http://github.com/sheabunge/co
|
|
116 |
|
117 |
== Changelog ==
|
118 |
|
|
|
|
|
|
|
119 |
= 2.4.0 =
|
120 |
* Added ability to share network snippets to individual sites on WordPress multisite
|
121 |
* Improved code directory and class structure
|
@@ -361,6 +364,9 @@ __Fixed__
|
|
361 |
|
362 |
== Upgrade Notice ==
|
363 |
|
|
|
|
|
|
|
364 |
= 2.4.0 =
|
365 |
New snippet sharing feature for multisite networks; new Snippet class
|
366 |
|
4 |
Tags: code-snippets, snippets, code, php, network, multisite
|
5 |
Requires at least: 3.6
|
6 |
Tested up to: 4.3.1
|
7 |
+
Stable tag: 2.4.1
|
8 |
License: MIT
|
9 |
License URI: license.txt
|
10 |
|
116 |
|
117 |
== Changelog ==
|
118 |
|
119 |
+
= 2.4.1 =
|
120 |
+
* Fixed CodeMirror themes not being detected on settings page
|
121 |
+
|
122 |
= 2.4.0 =
|
123 |
* Added ability to share network snippets to individual sites on WordPress multisite
|
124 |
* Improved code directory and class structure
|
364 |
|
365 |
== Upgrade Notice ==
|
366 |
|
367 |
+
= 2.4.1 =
|
368 |
+
Fixed CodeMirror themes not being detected on settings page
|
369 |
+
|
370 |
= 2.4.0 =
|
371 |
New snippet sharing feature for multisite networks; new Snippet class
|
372 |
|