Version Description
- Removed nested functions
- Added icons for admin and front-end snippets to manage table
- Improved settings retrieval by caching settings
- Updated Russian translation by Alexey Chumakov
- Added filter switch to prevent a snippet from executing (#25)
- Fixed errors in string translation
- Fixed bug in import process (#32)
Download this release
Release Info
Developer | bungeshea |
Plugin | Code Snippets |
Version | 2.3.0 |
Comparing to | |
See all releases |
Code changes from version 2.2.2 to 2.3.0
- code-snippets.php +4 -4
- css/min/manage.css +1 -1
- includes/class-export.php +6 -8
- includes/db.php +9 -12
- includes/edit/admin.php +4 -7
- includes/edit/edit.php +2 -2
- includes/import/import.php +2 -2
- includes/manage/admin.php +4 -7
- includes/manage/class-list-table.php +53 -34
- includes/settings/class-settings.php +16 -12
- includes/settings/settings.php +25 -34
- includes/snippet-ops.php +13 -6
- languages/code-snippets-fr_FR.mo +0 -0
- languages/code-snippets-fr_FR.po +1 -1
- languages/code-snippets-ru_RU.mo +0 -0
- languages/code-snippets-ru_RU.po +619 -359
- languages/code-snippets.pot +97 -48
- license.txt +1 -1
- readme.txt +22 -1
code-snippets.php
CHANGED
@@ -7,9 +7,9 @@
|
|
7 |
* contribute to the localization, please see https://github.com/sheabunge/code-snippets
|
8 |
*
|
9 |
* @package Code_Snippets
|
10 |
-
* @version 2.
|
11 |
* @author Shea Bunge <http://bungeshea.com/>
|
12 |
-
* @copyright Copyright (c) 2012-
|
13 |
* @link http://bungeshea.com/plugins/code-snippets/
|
14 |
* @license http://opensource.org/licenses/MIT
|
15 |
*/
|
@@ -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.
|
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.
|
46 |
|
47 |
/**
|
48 |
* The full path to the main file of this plugin
|
7 |
* contribute to the localization, please see https://github.com/sheabunge/code-snippets
|
8 |
*
|
9 |
* @package Code_Snippets
|
10 |
+
* @version 2.3.0
|
11 |
* @author Shea Bunge <http://bungeshea.com/>
|
12 |
+
* @copyright Copyright (c) 2012-2015, Shea Bunge
|
13 |
* @link http://bungeshea.com/plugins/code-snippets/
|
14 |
* @license http://opensource.org/licenses/MIT
|
15 |
*/
|
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.3.0
|
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.3.0' );
|
46 |
|
47 |
/**
|
48 |
* The full path to the main file of this plugin
|
css/min/manage.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.snippets th,.snippets td{color:#000}.snippets tr{background:#fff}.snippets .row-actions{color:#ddd}.snippets .clear-filters{vertical-align:middle}.snippets tfoot th{border-top:none!important}.snippets tfoot th.check-column{padding:13px 0 0 3px}.snippets thead th.check-column,.snippets tfoot th.check-column,.snippets .inactive th.check-column{padding-left:5px}.snippets .column-description p{color:#333}.snippets .inactive a{color:#579}.snippets .inactive td,.snippets .inactive th,.snippets .active td,.snippets .active th{padding:10px 9px;border:none;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.snippets .active td,.snippets .active th{background-color:rgba(120,200,230,.06)}.snippets .active th.check-column{border-left:2px solid #2ea2cc}.snippets tr.active+tr.inactive th,.snippets tr.active+tr.inactive td{border-top:1px solid rgba(0,0,0,.03);-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1;box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1}.snippets a.delete:hover,.snippets #all-snippets-table a.delete:hover,.snippets #search-snippets-table a.delete:hover{border-bottom:1px solid red;color:red}#wpbody-content .snippets .column-name{white-space:nowrap}
|
1 |
+
.admin-scope .column-name>a:after,.frontend-scope .column-name>a:after{padding-left:5px;font-family:"dashicons";vertical-align:top}.admin-scope .column-name>a:after{font-size:14px;content:"\f111"}.frontend-scope .column-name>a:after{font-size:16px;content:"\f177"}.snippets th,.snippets td{color:#000}.snippets tr{background:#fff}.snippets .row-actions{color:#ddd}.snippets .clear-filters{vertical-align:middle}.snippets tfoot th{border-top:none!important}.snippets tfoot th.check-column{padding:13px 0 0 3px}.snippets thead th.check-column,.snippets tfoot th.check-column,.snippets .inactive th.check-column{padding-left:5px}.snippets .column-description p{color:#333}.snippets .inactive a{color:#579}.snippets .inactive td,.snippets .inactive th,.snippets .active td,.snippets .active th{padding:10px 9px;border:none;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.snippets .active td,.snippets .active th{background-color:rgba(120,200,230,.06)}.snippets .active th.check-column{border-left:2px solid #2ea2cc}.snippets tr.active+tr.inactive th,.snippets tr.active+tr.inactive td{border-top:1px solid rgba(0,0,0,.03);-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1;box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1}.snippets a.delete:hover,.snippets #all-snippets-table a.delete:hover,.snippets #search-snippets-table a.delete:hover{border-bottom:1px solid red;color:red}#wpbody-content .snippets .column-name{white-space:nowrap}
|
includes/class-export.php
CHANGED
@@ -25,7 +25,7 @@ class Code_Snippets_Export {
|
|
25 |
* The IDs
|
26 |
* @var array
|
27 |
*/
|
28 |
-
|
29 |
|
30 |
/**
|
31 |
* The name of the table to fetch snippets from
|
@@ -38,21 +38,21 @@ class Code_Snippets_Export {
|
|
38 |
* Either 'xml' or 'php'
|
39 |
* @var object
|
40 |
*/
|
41 |
-
|
42 |
|
43 |
/**
|
44 |
* The DOM document.
|
45 |
* Only used in XML exports
|
46 |
* @var object
|
47 |
*/
|
48 |
-
|
49 |
|
50 |
/**
|
51 |
* The DOM document root element
|
52 |
* Only used in XML exports
|
53 |
* @var object
|
54 |
*/
|
55 |
-
|
56 |
|
57 |
/**
|
58 |
* Constructor function
|
@@ -60,7 +60,7 @@ class Code_Snippets_Export {
|
|
60 |
* @param string $table The name of the table to fetch snippets from
|
61 |
* @param string $format The format of the export file
|
62 |
*/
|
63 |
-
function __construct( $ids, $table, $format = 'xml' ) {
|
64 |
$this->snippet_ids = (array) $ids;
|
65 |
$this->table_name = $table;
|
66 |
$this->format = 'php' === $format ? 'php' : 'xml';
|
@@ -71,7 +71,7 @@ class Code_Snippets_Export {
|
|
71 |
* Build the export file name
|
72 |
* @return string
|
73 |
*/
|
74 |
-
function get_filename() {
|
75 |
|
76 |
if ( 1 == count( $this->snippet_ids ) ) {
|
77 |
/* If there is only snippet to export, use its name instead of the site name */
|
@@ -133,8 +133,6 @@ class Code_Snippets_Export {
|
|
133 |
$this->dom->appendChild( $gen );
|
134 |
}
|
135 |
|
136 |
-
|
137 |
-
|
138 |
/**
|
139 |
* Process all snippet items
|
140 |
*/
|
25 |
* The IDs
|
26 |
* @var array
|
27 |
*/
|
28 |
+
protected $snippet_ids = array();
|
29 |
|
30 |
/**
|
31 |
* The name of the table to fetch snippets from
|
38 |
* Either 'xml' or 'php'
|
39 |
* @var object
|
40 |
*/
|
41 |
+
protected $format;
|
42 |
|
43 |
/**
|
44 |
* The DOM document.
|
45 |
* Only used in XML exports
|
46 |
* @var object
|
47 |
*/
|
48 |
+
protected $dom;
|
49 |
|
50 |
/**
|
51 |
* The DOM document root element
|
52 |
* Only used in XML exports
|
53 |
* @var object
|
54 |
*/
|
55 |
+
protected $root;
|
56 |
|
57 |
/**
|
58 |
* Constructor function
|
60 |
* @param string $table The name of the table to fetch snippets from
|
61 |
* @param string $format The format of the export file
|
62 |
*/
|
63 |
+
public function __construct( $ids, $table, $format = 'xml' ) {
|
64 |
$this->snippet_ids = (array) $ids;
|
65 |
$this->table_name = $table;
|
66 |
$this->format = 'php' === $format ? 'php' : 'xml';
|
71 |
* Build the export file name
|
72 |
* @return string
|
73 |
*/
|
74 |
+
public function get_filename() {
|
75 |
|
76 |
if ( 1 == count( $this->snippet_ids ) ) {
|
77 |
/* If there is only snippet to export, use its name instead of the site name */
|
133 |
$this->dom->appendChild( $gen );
|
134 |
}
|
135 |
|
|
|
|
|
136 |
/**
|
137 |
* Process all snippet items
|
138 |
*/
|
includes/db.php
CHANGED
@@ -101,7 +101,6 @@ function create_code_snippets_table( $table_name ) {
|
|
101 |
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
|
102 |
|
103 |
/* Set the database charset */
|
104 |
-
|
105 |
$charset_collate = '';
|
106 |
|
107 |
if ( ! empty( $wpdb->charset ) ) {
|
@@ -113,19 +112,17 @@ function create_code_snippets_table( $table_name ) {
|
|
113 |
}
|
114 |
|
115 |
/* Create the database table */
|
116 |
-
|
117 |
$sql = "CREATE TABLE $table_name (
|
118 |
-
id bigint(20)
|
119 |
-
name tinytext
|
120 |
-
description text,
|
121 |
-
code longtext
|
122 |
-
tags longtext,
|
123 |
-
scope tinyint(1) default 0,
|
124 |
-
active tinyint(1)
|
125 |
-
|
126 |
-
)
|
127 |
|
128 |
dbDelta( $sql );
|
129 |
-
|
130 |
do_action( 'code_snippets/create_table', $table_name );
|
131 |
}
|
101 |
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
|
102 |
|
103 |
/* Set the database charset */
|
|
|
104 |
$charset_collate = '';
|
105 |
|
106 |
if ( ! empty( $wpdb->charset ) ) {
|
112 |
}
|
113 |
|
114 |
/* Create the database table */
|
|
|
115 |
$sql = "CREATE TABLE $table_name (
|
116 |
+
id bigint(20) NOT NULL AUTO_INCREMENT,
|
117 |
+
name tinytext NOT NULL default '',
|
118 |
+
description text NOT NULL default '',
|
119 |
+
code longtext NOT NULL default '',
|
120 |
+
tags longtext NOT NULL default '',
|
121 |
+
scope tinyint(1) NOT NULL default 0,
|
122 |
+
active tinyint(1) NOT NULL default 0,
|
123 |
+
PRIMARY KEY (id)
|
124 |
+
) $charset_collate;";
|
125 |
|
126 |
dbDelta( $sql );
|
|
|
127 |
do_action( 'code_snippets/create_table', $table_name );
|
128 |
}
|
includes/edit/admin.php
CHANGED
@@ -24,13 +24,10 @@ $snippet = get_snippet( $edit_id );
|
|
24 |
<h2><?php
|
25 |
if ( $edit_id ) {
|
26 |
esc_html_e( 'Edit Snippet', 'code-snippets' );
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
esc_html_x( 'Add New', 'snippet', 'code-snippets' )
|
32 |
-
);
|
33 |
-
}
|
34 |
} else {
|
35 |
esc_html_e( 'Add New Snippet', 'code-snippets' );
|
36 |
}
|
24 |
<h2><?php
|
25 |
if ( $edit_id ) {
|
26 |
esc_html_e( 'Edit Snippet', 'code-snippets' );
|
27 |
+
printf( ' <a href="%1$s" class="add-new-h2">%2$s</a>',
|
28 |
+
code_snippets_get_menu_url( 'add' ),
|
29 |
+
esc_html_x( 'Add New', 'snippet', 'code-snippets' )
|
30 |
+
);
|
|
|
|
|
|
|
31 |
} else {
|
32 |
esc_html_e( 'Add New Snippet', 'code-snippets' );
|
33 |
}
|
includes/edit/edit.php
CHANGED
@@ -157,7 +157,7 @@ function code_snippets_load_single_menu() {
|
|
157 |
|
158 |
/* Export the snippet if the button was clicked */
|
159 |
elseif ( isset( $_POST['snippet_id'], $_POST['export_snippet'] ) ) {
|
160 |
-
|
161 |
}
|
162 |
}
|
163 |
|
@@ -232,7 +232,7 @@ function code_snippets_tags_editor( $snippet ) {
|
|
232 |
</label>
|
233 |
|
234 |
<input type="text" id="snippet_tags" name="snippet_tags" style="width: 100%;"
|
235 |
-
placeholder="Enter a list of tags; separated by commas" value="<?php echo implode( ', ', $snippet->tags ); ?>" />
|
236 |
|
237 |
<script type="text/javascript">
|
238 |
jQuery('#snippet_tags').tagit({
|
157 |
|
158 |
/* Export the snippet if the button was clicked */
|
159 |
elseif ( isset( $_POST['snippet_id'], $_POST['export_snippet'] ) ) {
|
160 |
+
export_snippets( $_POST['snippet_id'] );
|
161 |
}
|
162 |
}
|
163 |
|
232 |
</label>
|
233 |
|
234 |
<input type="text" id="snippet_tags" name="snippet_tags" style="width: 100%;"
|
235 |
+
placeholder="<?php esc_html_e( 'Enter a list of tags; separated by commas', 'code-snippets' ); ?>" value="<?php echo implode( ', ', $snippet->tags ); ?>" />
|
236 |
|
237 |
<script type="text/javascript">
|
238 |
jQuery('#snippet_tags').tagit({
|
includes/import/import.php
CHANGED
@@ -103,8 +103,8 @@ function code_snippets_load_import_menu() {
|
|
103 |
$result = import_snippets( $_FILES['code_snippets_import_file']['tmp_name'], $network );
|
104 |
|
105 |
/* Send the amount of imported snippets to the page */
|
106 |
-
$
|
107 |
-
wp_redirect( esc_url_raw( $
|
108 |
}
|
109 |
|
110 |
/* Load the screen help tabs */
|
103 |
$result = import_snippets( $_FILES['code_snippets_import_file']['tmp_name'], $network );
|
104 |
|
105 |
/* Send the amount of imported snippets to the page */
|
106 |
+
$url = add_query_arg( false === $result ? array( 'error' => true ) : array( 'imported' => $result ) );
|
107 |
+
wp_redirect( esc_url_raw( $url ) );
|
108 |
}
|
109 |
|
110 |
/* Load the screen help tabs */
|
includes/manage/admin.php
CHANGED
@@ -20,13 +20,10 @@ global $code_snippets_list_table;
|
|
20 |
<h2><?php
|
21 |
esc_html_e( 'Snippets', 'code-snippets' );
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
code_snippets_get_menu_url( 'add' )
|
28 |
-
);
|
29 |
-
}
|
30 |
|
31 |
$code_snippets_list_table->search_notice();
|
32 |
?></h2>
|
20 |
<h2><?php
|
21 |
esc_html_e( 'Snippets', 'code-snippets' );
|
22 |
|
23 |
+
printf( '<a href="%2$s" class="add-new-h2">%1$s</a>',
|
24 |
+
esc_html_x( 'Add New', 'snippet', 'code-snippets' ),
|
25 |
+
code_snippets_get_menu_url( 'add' )
|
26 |
+
);
|
|
|
|
|
|
|
27 |
|
28 |
$code_snippets_list_table->search_notice();
|
29 |
?></h2>
|
includes/manage/class-list-table.php
CHANGED
@@ -456,7 +456,7 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
456 |
* @uses activate_snippet() To activate snippets
|
457 |
* @uses deactivate_snippet() To deactivate snippets
|
458 |
* @uses delete_snippet() To delete snippets
|
459 |
-
* @uses
|
460 |
* @uses wp_redirect() To pass the results to the current page
|
461 |
* @uses add_query_arg() To append the results to the current URI
|
462 |
*/
|
@@ -663,39 +663,7 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
663 |
|
664 |
$this->_column_headers = $this->get_column_info();
|
665 |
|
666 |
-
|
667 |
-
* This checks for sorting input and sorts the data in our array accordingly.
|
668 |
-
*
|
669 |
-
* @ignore
|
670 |
-
*/
|
671 |
-
function usort_reorder( $a, $b ) {
|
672 |
-
|
673 |
-
/* If no sort, default to ID */
|
674 |
-
$orderby = (
|
675 |
-
! empty( $_REQUEST['orderby'] )
|
676 |
-
? $_REQUEST['orderby']
|
677 |
-
: apply_filters( 'code_snippets/list_table/default_orderby', 'id' )
|
678 |
-
);
|
679 |
-
|
680 |
-
/* If no order, default to ascending */
|
681 |
-
$order = (
|
682 |
-
! empty( $_REQUEST['order'] )
|
683 |
-
? $_REQUEST['order']
|
684 |
-
: apply_filters( 'code_snippets/list_table/default_order', 'asc' )
|
685 |
-
);
|
686 |
-
|
687 |
-
/* Determine sort order */
|
688 |
-
if ( 'id' === $orderby ) {
|
689 |
-
$result = $a->$orderby - $b->$orderby; // get the result for numerical data
|
690 |
-
} else {
|
691 |
-
$result = strcmp( $a->$orderby, $b->$orderby ); // get the result for string data
|
692 |
-
}
|
693 |
-
|
694 |
-
/* Send final sort direction to usort */
|
695 |
-
return ( 'asc' === $order ) ? $result : -$result;
|
696 |
-
}
|
697 |
-
|
698 |
-
usort( $data, 'usort_reorder' );
|
699 |
|
700 |
/*
|
701 |
* Let's figure out what page the user is currently
|
@@ -730,6 +698,37 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
730 |
) );
|
731 |
}
|
732 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
733 |
/**
|
734 |
* Used internally
|
735 |
* @ignore
|
@@ -800,6 +799,25 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
800 |
}
|
801 |
}
|
802 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
803 |
/**
|
804 |
* Outputs content for a single row of the table
|
805 |
* @param object $snippet The snippet being used for the current row
|
@@ -807,6 +825,7 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
807 |
function single_row( $snippet ) {
|
808 |
static $row_class = '';
|
809 |
$row_class = ( $snippet->active ? 'active' : 'inactive' );
|
|
|
810 |
printf( '<tr class="%s">', $row_class );
|
811 |
$this->single_row_columns( $snippet );
|
812 |
echo '</tr>';
|
456 |
* @uses activate_snippet() To activate snippets
|
457 |
* @uses deactivate_snippet() To deactivate snippets
|
458 |
* @uses delete_snippet() To delete snippets
|
459 |
+
* @uses export_snippets() To export selected snippets
|
460 |
* @uses wp_redirect() To pass the results to the current page
|
461 |
* @uses add_query_arg() To append the results to the current URI
|
462 |
*/
|
663 |
|
664 |
$this->_column_headers = $this->get_column_info();
|
665 |
|
666 |
+
usort( $data, array( $this, 'usort_reorder_callback' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
667 |
|
668 |
/*
|
669 |
* Let's figure out what page the user is currently
|
698 |
) );
|
699 |
}
|
700 |
|
701 |
+
/**
|
702 |
+
* This checks for sorting input and sorts the data in our array accordingly.
|
703 |
+
* @ignore
|
704 |
+
*/
|
705 |
+
function usort_reorder_callback( $a, $b ) {
|
706 |
+
|
707 |
+
/* If no sort, default to ID */
|
708 |
+
$orderby = (
|
709 |
+
! empty( $_REQUEST['orderby'] )
|
710 |
+
? $_REQUEST['orderby']
|
711 |
+
: apply_filters( 'code_snippets/list_table/default_orderby', 'id' )
|
712 |
+
);
|
713 |
+
|
714 |
+
/* If no order, default to ascending */
|
715 |
+
$order = (
|
716 |
+
! empty( $_REQUEST['order'] )
|
717 |
+
? $_REQUEST['order']
|
718 |
+
: apply_filters( 'code_snippets/list_table/default_order', 'asc' )
|
719 |
+
);
|
720 |
+
|
721 |
+
/* Determine sort order */
|
722 |
+
if ( 'id' === $orderby ) {
|
723 |
+
$result = $a->$orderby - $b->$orderby; // get the result for numerical data
|
724 |
+
} else {
|
725 |
+
$result = strcmp( $a->$orderby, $b->$orderby ); // get the result for string data
|
726 |
+
}
|
727 |
+
|
728 |
+
/* Send final sort direction to usort */
|
729 |
+
return ( 'asc' === $order ) ? $result : -$result;
|
730 |
+
}
|
731 |
+
|
732 |
/**
|
733 |
* Used internally
|
734 |
* @ignore
|
799 |
}
|
800 |
}
|
801 |
|
802 |
+
/**
|
803 |
+
* Retrieve the string representation of a snippet scope number
|
804 |
+
* @since 2.3.0
|
805 |
+
* @param int $scope the scope number
|
806 |
+
* @return string the scope name
|
807 |
+
*/
|
808 |
+
private function get_scope_name( $scope ) {
|
809 |
+
|
810 |
+
switch ( intval( $scope ) ) {
|
811 |
+
case 1:
|
812 |
+
return 'admin';
|
813 |
+
case 2:
|
814 |
+
return 'frontend';
|
815 |
+
default:
|
816 |
+
case 0:
|
817 |
+
return 'global';
|
818 |
+
}
|
819 |
+
}
|
820 |
+
|
821 |
/**
|
822 |
* Outputs content for a single row of the table
|
823 |
* @param object $snippet The snippet being used for the current row
|
825 |
function single_row( $snippet ) {
|
826 |
static $row_class = '';
|
827 |
$row_class = ( $snippet->active ? 'active' : 'inactive' );
|
828 |
+
$row_class .= sprintf( ' %s-scope', $this->get_scope_name( $snippet->scope ) );
|
829 |
printf( '<tr class="%s">', $row_class );
|
830 |
$this->single_row_columns( $snippet );
|
831 |
echo '</tr>';
|
includes/settings/class-settings.php
CHANGED
@@ -9,16 +9,15 @@ class Code_Snippets_Settings {
|
|
9 |
private static $fields = array();
|
10 |
private static $defaults = array();
|
11 |
|
12 |
-
public static function setup() {
|
13 |
-
self::set_fields();
|
14 |
-
self::set_defaults();
|
15 |
-
}
|
16 |
-
|
17 |
/**
|
18 |
* Retrieve the defined fields
|
19 |
* @return array
|
20 |
*/
|
21 |
public static function get_fields() {
|
|
|
|
|
|
|
|
|
22 |
return self::$fields;
|
23 |
}
|
24 |
|
@@ -27,6 +26,10 @@ class Code_Snippets_Settings {
|
|
27 |
* @return array the default field values, keyed by ID
|
28 |
*/
|
29 |
public static function get_defaults() {
|
|
|
|
|
|
|
|
|
30 |
return self::$defaults;
|
31 |
}
|
32 |
|
@@ -34,7 +37,8 @@ class Code_Snippets_Settings {
|
|
34 |
* Loop through the settings fields and extract the default values
|
35 |
*/
|
36 |
private static function set_defaults() {
|
37 |
-
|
|
|
38 |
self::$defaults[ $section_id ] = wp_list_pluck( $section_fields, 'default', 'id' );
|
39 |
}
|
40 |
}
|
@@ -64,26 +68,26 @@ class Code_Snippets_Settings {
|
|
64 |
|
65 |
array(
|
66 |
'id' => 'rows',
|
67 |
-
'name' => 'Row Height',
|
68 |
'type' => 'number',
|
69 |
-
'label' => 'rows',
|
70 |
'default' => 5,
|
71 |
'min' => 0,
|
72 |
),
|
73 |
|
74 |
array(
|
75 |
'id' => 'use_full_mce',
|
76 |
-
'name' => 'Use Full Editor',
|
77 |
'type' => 'checkbox',
|
78 |
-
'label' => 'Enable all features of the visual editor',
|
79 |
'default' => false,
|
80 |
),
|
81 |
|
82 |
array(
|
83 |
'id' => 'media_buttons',
|
84 |
-
'name' => 'Media Buttons',
|
85 |
'type' => 'checkbox',
|
86 |
-
'label' => 'Enable the add media buttons',
|
87 |
'default' => false,
|
88 |
),
|
89 |
);
|
9 |
private static $fields = array();
|
10 |
private static $defaults = array();
|
11 |
|
|
|
|
|
|
|
|
|
|
|
12 |
/**
|
13 |
* Retrieve the defined fields
|
14 |
* @return array
|
15 |
*/
|
16 |
public static function get_fields() {
|
17 |
+
if ( empty( self::$fields ) ) {
|
18 |
+
self::set_fields();
|
19 |
+
}
|
20 |
+
|
21 |
return self::$fields;
|
22 |
}
|
23 |
|
26 |
* @return array the default field values, keyed by ID
|
27 |
*/
|
28 |
public static function get_defaults() {
|
29 |
+
if ( empty( self::$defaults ) ) {
|
30 |
+
self::set_defaults();
|
31 |
+
}
|
32 |
+
|
33 |
return self::$defaults;
|
34 |
}
|
35 |
|
37 |
* Loop through the settings fields and extract the default values
|
38 |
*/
|
39 |
private static function set_defaults() {
|
40 |
+
|
41 |
+
foreach ( self::get_fields() as $section_id => $section_fields ) {
|
42 |
self::$defaults[ $section_id ] = wp_list_pluck( $section_fields, 'default', 'id' );
|
43 |
}
|
44 |
}
|
68 |
|
69 |
array(
|
70 |
'id' => 'rows',
|
71 |
+
'name' => __( 'Row Height', 'code-snippets' ),
|
72 |
'type' => 'number',
|
73 |
+
'label' => __( 'rows', 'code-snippets' ),
|
74 |
'default' => 5,
|
75 |
'min' => 0,
|
76 |
),
|
77 |
|
78 |
array(
|
79 |
'id' => 'use_full_mce',
|
80 |
+
'name' => __( 'Use Full Editor', 'code-snippets' ),
|
81 |
'type' => 'checkbox',
|
82 |
+
'label' => __( 'Enable all features of the visual editor', 'code-snippets' ),
|
83 |
'default' => false,
|
84 |
),
|
85 |
|
86 |
array(
|
87 |
'id' => 'media_buttons',
|
88 |
+
'name' => __( 'Media Buttons', 'code-snippets' ),
|
89 |
'type' => 'checkbox',
|
90 |
+
'label' => __( 'Enable the add media buttons', 'code-snippets' ),
|
91 |
'default' => false,
|
92 |
),
|
93 |
);
|
includes/settings/settings.php
CHANGED
@@ -6,7 +6,6 @@
|
|
6 |
*/
|
7 |
|
8 |
require plugin_dir_path( __FILE__ ) . '/class-settings.php';
|
9 |
-
Code_Snippets_Settings::setup();
|
10 |
|
11 |
/**
|
12 |
* Retrieve the default setting values
|
@@ -24,53 +23,45 @@ function code_snippets_get_settings_fields() {
|
|
24 |
return Code_Snippets_Settings::get_fields();
|
25 |
}
|
26 |
|
|
|
27 |
/*
|
28 |
* Retrieve the setting values from the database.
|
29 |
* If a setting does not exist in the database, the default value will be returned.
|
30 |
* @return array
|
31 |
*/
|
32 |
function code_snippets_get_settings() {
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
$saved = get_option( 'code_snippets_settings', array() );
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
* @link http://php.net/manual/en/function.array-replace-recursive.php#92574
|
39 |
-
*/
|
40 |
-
if ( ! function_exists( 'array_replace_recursive' ) ) {
|
41 |
-
function array_replace_recursive( $array, $array1 ) {
|
42 |
-
function recurse( $array, $array1 ) {
|
43 |
-
foreach ( $array1 as $key => $value ) {
|
44 |
-
// create new key in $array, if it is empty or not an array
|
45 |
-
if ( ! isset( $array[ $key ] ) || ( isset( $array[ $key ] ) && ! is_array( $array[ $key ] ) ) ) {
|
46 |
-
$array[ $key ] = array();
|
47 |
-
}
|
48 |
-
// overwrite the value in the base array
|
49 |
-
if ( is_array( $value ) ) {
|
50 |
-
$value = recurse( $array[ $key ], $value );
|
51 |
-
}
|
52 |
-
$array[ $key ] = $value;
|
53 |
-
}
|
54 |
-
return $array;
|
55 |
-
}
|
56 |
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
$
|
64 |
-
|
65 |
-
if (
|
66 |
-
$
|
67 |
}
|
68 |
}
|
69 |
-
return $array;
|
70 |
}
|
71 |
}
|
72 |
|
73 |
-
|
|
|
74 |
}
|
75 |
|
76 |
/**
|
6 |
*/
|
7 |
|
8 |
require plugin_dir_path( __FILE__ ) . '/class-settings.php';
|
|
|
9 |
|
10 |
/**
|
11 |
* Retrieve the default setting values
|
23 |
return Code_Snippets_Settings::get_fields();
|
24 |
}
|
25 |
|
26 |
+
|
27 |
/*
|
28 |
* Retrieve the setting values from the database.
|
29 |
* If a setting does not exist in the database, the default value will be returned.
|
30 |
* @return array
|
31 |
*/
|
32 |
function code_snippets_get_settings() {
|
33 |
+
|
34 |
+
/* Check if the settings have been cached */
|
35 |
+
if ( $settings = wp_cache_get( 'code_snippets_settings' ) ) {
|
36 |
+
return $settings;
|
37 |
+
}
|
38 |
+
|
39 |
+
/* Begin with the default settings */
|
40 |
+
$settings = Code_Snippets_Settings::get_defaults();
|
41 |
+
|
42 |
+
/* Retrieve saved settings from the database */
|
43 |
$saved = get_option( 'code_snippets_settings', array() );
|
44 |
|
45 |
+
/* Replace the default field values with the ones saved in the database */
|
46 |
+
if ( function_exists( 'array_replace_recursive' ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
+
/* Use the much more efficient array_replace_recursive() function in PHP 5.3 and later */
|
49 |
+
$settings = array_replace_recursive( $settings, $saved );
|
50 |
+
} else {
|
51 |
+
|
52 |
+
/* Otherwise, do it manually */
|
53 |
+
foreach ( $settings as $section => $fields ) {
|
54 |
+
foreach ( $fields as $field => $value ) {
|
55 |
+
|
56 |
+
if ( isset( $saved[ $section ][ $field ] ) ) {
|
57 |
+
$settings[ $section ][ $field ] = $saved[ $section ][ $field ];
|
58 |
}
|
59 |
}
|
|
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
wp_cache_set( 'code_snippets_settings', $settings );
|
64 |
+
return $settings;
|
65 |
}
|
66 |
|
67 |
/**
|
includes/snippet-ops.php
CHANGED
@@ -151,9 +151,14 @@ function escape_snippet_data( $snippet ) {
|
|
151 |
/* Remove ?> from end of snippet */
|
152 |
$snippet->code = preg_replace( '|\?>[\s]*$|', '', $snippet->code );
|
153 |
|
154 |
-
/*
|
155 |
$snippet->id = absint( $snippet->id );
|
156 |
|
|
|
|
|
|
|
|
|
|
|
157 |
/* Store tags as a string, with tags separated by commas */
|
158 |
$snippet->tags = code_snippets_build_tags_array( $snippet->tags );
|
159 |
$snippet->tags = implode( ', ', $snippet->tags );
|
@@ -370,7 +375,7 @@ function import_snippets( $file, $multisite = null ) {
|
|
370 |
$dom->load( $file );
|
371 |
|
372 |
$snippets_xml = $dom->getElementsByTagName( 'snippet' );
|
373 |
-
$fields = array( 'name', 'description', 'code', 'tags' );
|
374 |
$count = 0;
|
375 |
|
376 |
/* Loop through all snippets */
|
@@ -442,7 +447,6 @@ function execute_snippet( $code ) {
|
|
442 |
$output = ob_get_contents();
|
443 |
ob_end_clean();
|
444 |
|
445 |
-
do_action( 'code_snippets/execute_snippet', $code );
|
446 |
return $result;
|
447 |
}
|
448 |
|
@@ -482,9 +486,12 @@ function execute_active_snippets() {
|
|
482 |
/* Grab the active snippets from the database */
|
483 |
$active_snippets = $wpdb->get_col( $sql );
|
484 |
|
485 |
-
foreach ( $active_snippets as $snippet_code ) {
|
486 |
-
|
487 |
-
|
|
|
|
|
|
|
488 |
}
|
489 |
|
490 |
return true;
|
151 |
/* Remove ?> from end of snippet */
|
152 |
$snippet->code = preg_replace( '|\?>[\s]*$|', '', $snippet->code );
|
153 |
|
154 |
+
/* Ensure the ID is a positive integer */
|
155 |
$snippet->id = absint( $snippet->id );
|
156 |
|
157 |
+
/* Make sure that the scope is a valid value */
|
158 |
+
if ( ! in_array( $snippet->scope, array( 0, 1, 2 ) ) ) {
|
159 |
+
$snippet->scope = 0;
|
160 |
+
}
|
161 |
+
|
162 |
/* Store tags as a string, with tags separated by commas */
|
163 |
$snippet->tags = code_snippets_build_tags_array( $snippet->tags );
|
164 |
$snippet->tags = implode( ', ', $snippet->tags );
|
375 |
$dom->load( $file );
|
376 |
|
377 |
$snippets_xml = $dom->getElementsByTagName( 'snippet' );
|
378 |
+
$fields = array( 'name', 'description', 'code', 'tags', 'scope' );
|
379 |
$count = 0;
|
380 |
|
381 |
/* Loop through all snippets */
|
447 |
$output = ob_get_contents();
|
448 |
ob_end_clean();
|
449 |
|
|
|
450 |
return $result;
|
451 |
}
|
452 |
|
486 |
/* Grab the active snippets from the database */
|
487 |
$active_snippets = $wpdb->get_col( $sql );
|
488 |
|
489 |
+
foreach ( $active_snippets as $snippet_id => $snippet_code ) {
|
490 |
+
|
491 |
+
if ( apply_filters( 'code_snippets/allow_execute_snippet', true, $snippet_id ) ) {
|
492 |
+
/* Execute the PHP code */
|
493 |
+
execute_snippet( $snippet_code );
|
494 |
+
}
|
495 |
}
|
496 |
|
497 |
return true;
|
languages/code-snippets-fr_FR.mo
CHANGED
Binary file
|
languages/code-snippets-fr_FR.po
CHANGED
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
"POT-Creation-Date: 2015-05-11 08:58+1000\n"
|
7 |
"PO-Revision-Date: 2015-05-11 10:08+1000\n"
|
8 |
-
"Last-Translator:
|
9 |
"Language-Team: oWEB <oweb@office-web.net>\n"
|
10 |
"Language: fr\n"
|
11 |
"MIME-Version: 1.0\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
"POT-Creation-Date: 2015-05-11 08:58+1000\n"
|
7 |
"PO-Revision-Date: 2015-05-11 10:08+1000\n"
|
8 |
+
"Last-Translator: Shea Bunge <info@bungeshea.com>"
|
9 |
"Language-Team: oWEB <oweb@office-web.net>\n"
|
10 |
"Language: fr\n"
|
11 |
"MIME-Version: 1.0\n"
|
languages/code-snippets-ru_RU.mo
CHANGED
Binary file
|
languages/code-snippets-ru_RU.po
CHANGED
@@ -2,9 +2,10 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Code Snippets\n"
|
5 |
-
"
|
6 |
-
"
|
7 |
-
"
|
|
|
8 |
"Language-Team: Flector <rlector@gmail.com>\n"
|
9 |
"Language: ru\n"
|
10 |
"MIME-Version: 1.0\n"
|
@@ -12,7 +13,7 @@ msgstr ""
|
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
14 |
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
15 |
-
"X-Generator: Poedit 1.6
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
"X-Poedit-Basepath: ../\n"
|
18 |
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;_x:1,2c;_n;_nx:4c,1,2;"
|
@@ -20,180 +21,133 @@ msgstr ""
|
|
20 |
"esc_html_e\n"
|
21 |
"X-Poedit-SearchPath-0: .\n"
|
22 |
|
23 |
-
#: admin
|
24 |
-
|
25 |
-
|
|
|
|
|
26 |
|
27 |
-
#: admin
|
28 |
-
msgid ""
|
29 |
-
"
|
30 |
-
"functionality of WordPress. Snippets are more light-weight, just a few lines "
|
31 |
-
"of code, and do not put as much load on your server. Here you can load "
|
32 |
-
"snippets from a Code Snippets (.xml) import file into the database with your "
|
33 |
-
"existing snippets."
|
34 |
-
msgstr ""
|
35 |
-
"Сниппеты похожи на плагины - и те и другие расширяют функциональность движка "
|
36 |
-
"WordPress. Сниппеты зачастую маленькие, состоят лишь из нескольких строк "
|
37 |
-
"кода и не вызывают нагрузки на ваш сервер. Здесь вы можете загрузить ваши "
|
38 |
-
"сниппеты из файла экспорта плагина (.xml), чтобы добавить их на ваш сайт."
|
39 |
|
40 |
-
#: admin/
|
41 |
-
msgid "
|
42 |
-
msgstr "
|
43 |
|
44 |
-
#: admin
|
45 |
-
msgid ""
|
46 |
-
"
|
47 |
-
"this page."
|
48 |
-
msgstr "Вы можете загрузить ваши сниппеты из файла экспорта (.xml)."
|
49 |
|
50 |
-
#: admin
|
51 |
-
|
52 |
-
|
53 |
-
"Snippets will be added to the database along with your existing snippets. "
|
54 |
-
"Regardless of whether the snippets were active on the previous site, "
|
55 |
-
"imported snippets are always inactive until activated using the <a href=\"%s"
|
56 |
-
"\">Manage Snippets</a> page.</p>"
|
57 |
-
msgstr ""
|
58 |
-
"Сниппеты будут добавлены в вашу базу (они не будут работать до тех пор, пока "
|
59 |
-
"вы их не активируете на странице <a href=\"%s\">Управление сниппетами</a>)</"
|
60 |
-
"p>"
|
61 |
|
62 |
-
#: admin
|
63 |
-
msgid "
|
64 |
-
msgstr "
|
65 |
|
66 |
-
#: admin
|
67 |
-
|
68 |
-
|
69 |
-
"You can save your snippets to a Code Snippets (.xml) export file using the "
|
70 |
-
"<a href=\"%s\">Manage Snippets</a> page."
|
71 |
-
msgstr ""
|
72 |
-
"Вы можете сохранить ваши сниппеты в файл экспорта (.xml) на странице <a href="
|
73 |
-
"\"%s\">Управление сниппетами</a>."
|
74 |
|
75 |
-
#:
|
76 |
-
msgid "
|
77 |
-
msgstr "
|
78 |
|
79 |
-
#:
|
80 |
-
msgid ""
|
81 |
-
|
82 |
-
"\">WordPress Extend</a>"
|
83 |
-
msgstr ""
|
84 |
-
"<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
|
85 |
-
"\">Страница плагина</a>"
|
86 |
|
87 |
-
#:
|
88 |
msgid ""
|
89 |
-
"<
|
90 |
-
"
|
|
|
91 |
msgstr ""
|
92 |
-
"<
|
93 |
-
"
|
94 |
|
95 |
-
#:
|
96 |
-
msgid ""
|
97 |
-
|
98 |
-
"Website</a>"
|
99 |
-
msgstr ""
|
100 |
-
"<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank\">Сайт "
|
101 |
-
"плагина</a>"
|
102 |
|
103 |
-
#:
|
104 |
msgid ""
|
105 |
-
"
|
106 |
-
"
|
107 |
-
"of code, and do not put as much load on your server. Here you can manage "
|
108 |
-
"your existing snippets and preform tasks on them such as activating, "
|
109 |
-
"deactivating, deleting and exporting."
|
110 |
msgstr ""
|
111 |
-
"
|
112 |
-
"WordPress.
|
113 |
-
"кода и не вызывают нагрузки на ваш сервер. Здесь вы можете управлять вашими "
|
114 |
-
"сниппетами (добавлять, редактировать, активировать и деактивировать)."
|
115 |
|
116 |
-
#:
|
117 |
-
msgid "
|
118 |
-
msgstr "
|
119 |
|
120 |
-
#:
|
121 |
-
msgid ""
|
122 |
-
"
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
"
|
127 |
-
"Некорректные сниппеты могут испортить вам сайт!"
|
128 |
|
129 |
-
#:
|
130 |
msgid ""
|
131 |
-
"
|
132 |
-
"
|
133 |
-
"
|
134 |
-
"config.php</code> file. After you have deactivated the offending snippet, "
|
135 |
-
"you can turn off safe mode by removing this line or replacing <strong>true</"
|
136 |
-
"strong> with <strong>false</strong>."
|
137 |
-
msgstr ""
|
138 |
-
"В случае любых проблем со сниппетами плагина вы можете их все "
|
139 |
-
"деактивировать, добавив строчку <code>define('CODE_SNIPPETS_SAFE_MODE', "
|
140 |
-
"true);</code> в ваш файл конфигурации <code>wp-config.php</code> . После "
|
141 |
-
"этого вы сможете деактивировать глючный сниппет, а потом снова включить "
|
142 |
-
"плагин, удалив указанную строчку."
|
143 |
|
144 |
-
#:
|
145 |
-
msgid "
|
146 |
-
msgstr "
|
147 |
|
148 |
-
#:
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
"
|
154 |
-
"
|
155 |
-
"FTP."
|
156 |
-
msgstr ""
|
157 |
-
"При удалении плагина через меню \"Плагины\" в админке блога таблица <code>"
|
158 |
-
"%1$s</code> в базе данных будет удалена. Если вы хотите сохранить настройки "
|
159 |
-
"(сниппеты) плагина, то удаляйте плагин (<code>%2$s</code>) через FTP, а не "
|
160 |
-
"через админку. Только в этом случае ваши сниппеты не будут потеряны (но вы, "
|
161 |
-
"конечно, можете сделать экспорт сниппетов во внешний .xml файл)."
|
162 |
|
163 |
-
#:
|
164 |
msgid ""
|
165 |
-
"
|
166 |
-
"
|
167 |
-
"up your snippets."
|
168 |
msgstr ""
|
169 |
-
"
|
170 |
-
"
|
171 |
|
172 |
-
#:
|
173 |
msgid ""
|
174 |
-
"
|
175 |
-
"
|
176 |
msgstr ""
|
177 |
-
"<a href=\"
|
178 |
-
"
|
|
|
|
|
|
|
|
|
|
|
179 |
|
180 |
-
#: admin
|
181 |
msgid ""
|
182 |
"Snippets are similar to plugins - they both extend and expand the "
|
183 |
"functionality of WordPress. Snippets are more light-weight, just a few lines "
|
184 |
"of code, and do not put as much load on your server. Here you can add a new "
|
185 |
"snippet, or edit an existing one."
|
186 |
msgstr ""
|
187 |
-
"Сниппеты похожи на плагины
|
188 |
-
"WordPress. Сниппеты
|
189 |
-
"
|
190 |
-
"
|
191 |
|
192 |
-
#: admin
|
193 |
msgid "Finding Snippets"
|
194 |
msgstr "Поиск сниппетов"
|
195 |
|
196 |
-
#: admin
|
197 |
msgid ""
|
198 |
"Here are some links to websites which host a large number of snippets that "
|
199 |
"you can add to your site.\n"
|
@@ -207,7 +161,7 @@ msgid ""
|
|
207 |
"\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
|
208 |
"\t\t</ul>"
|
209 |
msgstr ""
|
210 |
-
"Здесь
|
211 |
"\t\t<ul>\n"
|
212 |
"\t\t\t<li><a href=\"http://www.wphook.ru\" title=\"WPHook.ru\">WPHook.ru</"
|
213 |
"a></li>\n"
|
@@ -220,317 +174,476 @@ msgstr ""
|
|
220 |
"\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
|
221 |
"\t\t</ul>"
|
222 |
|
223 |
-
#: admin
|
224 |
msgid ""
|
225 |
"More places to find snippets, as well as a selection of example snippets, "
|
226 |
-
"can be found in the <a href=\"https://github.com/sheabunge/code-snippets/
|
227 |
-
"Finding-snippets\">plugin documentation</a>"
|
228 |
msgstr ""
|
229 |
-
"
|
230 |
-
"Finding-snippets
|
|
|
231 |
|
232 |
-
#: admin
|
233 |
msgid "Adding Snippets"
|
234 |
msgstr "Добавление сниппетов"
|
235 |
|
236 |
-
#: admin
|
237 |
msgid ""
|
238 |
"You need to fill out the name and code fields for your snippet to be added. "
|
239 |
"While the description field will add more information about how your snippet "
|
240 |
"works, what is does and where you found it, it is completely optional."
|
241 |
-
msgstr "
|
|
|
|
|
|
|
242 |
|
243 |
-
#: admin
|
244 |
msgid ""
|
245 |
"Please be sure to check that your snippet is valid PHP code and will not "
|
246 |
"produce errors before adding it through this page. While doing so will not "
|
247 |
"become active straight away, it will help to minimise the chance of a faulty "
|
248 |
"snippet becoming active on your site."
|
249 |
msgstr ""
|
250 |
-
"Пожалуйста, убедитесь в том, что
|
251 |
-
"корректным PHP кодом,
|
252 |
-
"
|
|
|
253 |
|
254 |
-
#: admin/
|
255 |
-
|
256 |
-
msgid ""
|
257 |
-
|
258 |
-
"a>"
|
259 |
-
msgid_plural ""
|
260 |
-
"Successfully imported <strong>%d</strong> snippets. <a href=\"%s\">Have fun!"
|
261 |
-
"</a>"
|
262 |
-
msgstr[0] ""
|
263 |
-
"Удачно импортирован <strong>%d</strong> сниппет. <a href=\"%s\">Удачи!</a>"
|
264 |
-
msgstr[1] ""
|
265 |
-
"Удачно импортировано <strong>%d</strong> сниппета. <a href=\"%s\">Удачи!</a>"
|
266 |
-
msgstr[2] ""
|
267 |
-
"Удачно импортировано <strong>%d</strong> сниппетов. <a href=\"%s\">Удачи!</a>"
|
268 |
-
|
269 |
-
#: admin/messages/import.php:32
|
270 |
-
msgid "An error occurred when processing the import file."
|
271 |
-
msgstr "Произошла ошибка при импортировании сниппета."
|
272 |
|
273 |
-
#: admin/
|
274 |
msgid ""
|
275 |
-
"<
|
276 |
-
"
|
277 |
-
"config.php</code> to turn off safe mode. <a href=\"http://code-snippets."
|
278 |
-
"bungeshea.com/docs/safe-mode/\" target=\"_blank\">Help</a>"
|
279 |
msgstr ""
|
280 |
-
"<
|
281 |
-
"
|
282 |
-
"файла <code>wp-config.php</code>, чтобы выключить режим Safe mode. <a href="
|
283 |
-
"\"https://github.com/sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank"
|
284 |
-
"\">Помощь</a>"
|
285 |
-
|
286 |
-
#: admin/messages/manage.php:20
|
287 |
-
msgid "Snippet <strong>activated</strong>."
|
288 |
-
msgstr "Сниппет <strong>активирован</strong>."
|
289 |
-
|
290 |
-
#: admin/messages/manage.php:24
|
291 |
-
msgid "Selected snippets <strong>activated</strong>."
|
292 |
-
msgstr "Выбранные сниппеты <strong>активированы</strong>."
|
293 |
-
|
294 |
-
#: admin/messages/manage.php:28
|
295 |
-
msgid "Snippet <strong>deactivated</strong>."
|
296 |
-
msgstr "Сниппет <strong>деактивирован</strong>."
|
297 |
-
|
298 |
-
#: admin/messages/manage.php:32
|
299 |
-
msgid "Selected snippets <strong>deactivated</strong>."
|
300 |
-
msgstr "Выбранные сниппеты <strong>деактивированы</strong>."
|
301 |
|
302 |
-
#: admin/
|
303 |
-
|
304 |
-
|
|
|
|
|
|
|
|
|
|
|
305 |
|
306 |
-
#: admin/
|
307 |
-
|
308 |
-
|
|
|
|
|
|
|
|
|
|
|
309 |
|
310 |
-
#: admin
|
311 |
msgid "An error occurred when saving the snippet."
|
312 |
msgstr "Произошла ошибка при сохранении сниппета."
|
313 |
|
314 |
-
#: admin
|
315 |
msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
|
316 |
msgstr "Сниппет <strong>обновлен</strong> и <strong>активирован</strong>."
|
317 |
|
318 |
-
#: admin
|
319 |
msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
|
320 |
msgstr "Сниппет <strong>добавлен</strong> и <strong>активирован</strong>."
|
321 |
|
322 |
-
#: admin
|
323 |
msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
|
324 |
msgstr "Сниппет <strong>обновлен</strong> и <strong>деактивирован</strong>."
|
325 |
|
326 |
-
#: admin
|
327 |
msgid "Snippet <strong>updated</strong>."
|
328 |
msgstr "Сниппет <strong>обновлен</strong>."
|
329 |
|
330 |
-
#: admin
|
331 |
msgid "Snippet <strong>added</strong>."
|
332 |
msgstr "Сниппет <strong>добавлен</strong>."
|
333 |
|
334 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
msgid "Import Snippets"
|
336 |
msgstr "Импортирование сниппетов"
|
337 |
|
338 |
-
#:
|
339 |
msgid ""
|
340 |
"Howdy! Upload your Code Snippets export file and we’ll import the "
|
341 |
"snippets to this site."
|
342 |
msgstr ""
|
343 |
"Привет! Загрузите файл экспорта, чтобы импортировать сниппеты на этот сайт."
|
344 |
|
345 |
-
#:
|
346 |
#, php-format
|
347 |
msgid ""
|
348 |
"You will need to go to the <a href=\"%s\">Manage Snippets</a> page to "
|
349 |
"activate the imported snippets."
|
350 |
msgstr ""
|
351 |
-
"
|
352 |
-
"
|
353 |
|
354 |
-
#:
|
355 |
msgid ""
|
356 |
"Choose a Code Snippets (.xml) file to upload, then click Upload file and "
|
357 |
"import."
|
358 |
msgstr ""
|
359 |
-
"Выберите файл экспорта (.xml), а затем
|
360 |
"импортировать\"."
|
361 |
|
362 |
-
#:
|
363 |
msgid "Choose a file from your computer:"
|
364 |
msgstr "Выберите файл на вашем компьютере:"
|
365 |
|
366 |
-
#:
|
367 |
msgid "(Maximum size: 8MB)"
|
368 |
-
msgstr "(Максимальный размер:
|
369 |
|
370 |
-
#:
|
371 |
msgid "Upload file and import"
|
372 |
msgstr "Загрузить файл и импортировать"
|
373 |
|
374 |
-
#:
|
375 |
-
#: includes/class-admin.php:276 includes/class-admin.php:277
|
376 |
-
#: includes/class-admin.php:287
|
377 |
-
msgid "Snippets"
|
378 |
-
msgstr "Сниппеты"
|
379 |
-
|
380 |
-
#: admin/views/manage.php:26 admin/views/single.php:34
|
381 |
-
#: includes/class-admin.php:300
|
382 |
-
msgid "Add New"
|
383 |
-
msgstr "Добавить новый"
|
384 |
-
|
385 |
-
#: admin/views/manage.php:39
|
386 |
-
msgid "Search Installed Snippets"
|
387 |
-
msgstr "Искать установленные сниппеты"
|
388 |
-
|
389 |
-
#: admin/views/single.php:29 includes/class-admin.php:299
|
390 |
-
msgid "Edit Snippet"
|
391 |
-
msgstr "Редактирование сниппета"
|
392 |
-
|
393 |
-
#: admin/views/single.php:37 includes/class-admin.php:299
|
394 |
-
msgid "Add New Snippet"
|
395 |
-
msgstr "Добавление нового сниппета"
|
396 |
-
|
397 |
-
#: admin/views/single.php:53 admin/views/single.php:54
|
398 |
-
msgid "Name (short title)"
|
399 |
-
msgstr "Имя (короткое название на английском)"
|
400 |
-
|
401 |
-
#: admin/views/single.php:59
|
402 |
-
msgid "Code"
|
403 |
-
msgstr "Код"
|
404 |
-
|
405 |
-
#: admin/views/single.php:85
|
406 |
-
msgid "Save Changes & Activate"
|
407 |
-
msgstr "Сохранить изменения & Активировать"
|
408 |
-
|
409 |
-
#: admin/views/single.php:91
|
410 |
-
msgid "Save Changes & Deactivate"
|
411 |
-
msgstr "Сохранить изменения & Деактивировать"
|
412 |
-
|
413 |
-
#: admin/views/single.php:100 includes/class-list-table.php:166
|
414 |
-
#: includes/class-list-table.php:265
|
415 |
-
msgid "Export"
|
416 |
-
msgstr "Экспорт"
|
417 |
-
|
418 |
-
#: admin/views/single.php:107 includes/class-list-table.php:182
|
419 |
-
msgid "Вы действительно хотите удалить выбранный сниппет?"
|
420 |
-
msgstr "Вы действительно хотите удалить выбранный сниппет?"
|
421 |
-
|
422 |
-
#: admin/views/single.php:112 includes/class-list-table.php:175
|
423 |
-
#: includes/class-list-table.php:266
|
424 |
-
msgid "Delete"
|
425 |
-
msgstr "Удалить"
|
426 |
-
|
427 |
-
#: includes/class-admin.php:185
|
428 |
msgid "Code Snippets"
|
429 |
msgstr "Code Snippets"
|
430 |
|
431 |
-
#: includes/
|
432 |
-
msgid "Import snippets from a
|
433 |
msgstr "Импортировать сниппеты из файла экспорта плагина \"Code Snippets\"."
|
434 |
|
435 |
-
#: includes/
|
436 |
-
msgid "You are not authorized to access this page."
|
437 |
-
msgstr "У вас нет доступа к этой странице."
|
438 |
-
|
439 |
-
#: includes/class-admin.php:288 includes/class-admin.php:695
|
440 |
-
msgid "Manage"
|
441 |
-
msgstr "Управление сниппетами"
|
442 |
-
|
443 |
-
#: includes/class-admin.php:300 includes/class-list-table.php:160
|
444 |
-
msgid "Edit"
|
445 |
-
msgstr "Редактировать"
|
446 |
-
|
447 |
-
#: includes/class-admin.php:328
|
448 |
msgid "Import"
|
449 |
msgstr "Импорт"
|
450 |
|
451 |
-
#: includes/
|
452 |
-
msgid "
|
453 |
-
msgstr "
|
454 |
|
455 |
-
#: includes/
|
456 |
-
msgid "
|
457 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
458 |
|
459 |
-
#: includes/
|
460 |
-
msgid "
|
461 |
-
msgstr "
|
462 |
|
463 |
-
#: includes/
|
464 |
-
msgid "
|
465 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
466 |
|
467 |
-
#: includes/
|
468 |
-
msgid "
|
469 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
470 |
|
471 |
-
#: includes/
|
472 |
-
|
473 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
474 |
|
475 |
-
#: includes/
|
476 |
-
msgid "
|
477 |
-
|
|
|
|
|
|
|
|
|
|
|
478 |
|
479 |
-
#: includes/
|
480 |
-
msgid "
|
481 |
-
|
|
|
|
|
|
|
|
|
482 |
|
483 |
-
#: includes/
|
484 |
msgid ""
|
485 |
-
"<strong>
|
486 |
-
"
|
487 |
-
"
|
|
|
488 |
msgstr ""
|
489 |
-
"<strong
|
490 |
-
"
|
|
|
|
|
|
|
491 |
|
492 |
-
#: includes/
|
493 |
-
msgid "
|
494 |
-
msgstr "
|
495 |
|
496 |
-
#: includes/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
497 |
msgid "Snippets per page"
|
498 |
-
msgstr "Сниппетов на
|
499 |
|
500 |
-
#: includes/
|
|
|
501 |
msgid "Network Deactivate"
|
502 |
msgstr "Деактивировать в сети"
|
503 |
|
504 |
-
#: includes/
|
|
|
505 |
msgid "Deactivate"
|
506 |
msgstr "Деактивировать"
|
507 |
|
508 |
-
#: includes/
|
|
|
509 |
msgid "Network Activate"
|
510 |
msgstr "Активировать в сети"
|
511 |
|
512 |
-
#: includes/
|
|
|
513 |
msgid "Activate"
|
514 |
msgstr "Активировать"
|
515 |
|
516 |
-
#: includes/class-list-table.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
517 |
#, php-format
|
518 |
msgid "Untitled #%d"
|
519 |
-
msgstr "
|
520 |
|
521 |
-
#: includes/class-list-table.php:
|
522 |
msgid "Name"
|
523 |
-
msgstr "
|
524 |
|
525 |
-
#: includes/class-list-table.php:
|
526 |
msgid "ID"
|
527 |
msgstr "ID"
|
528 |
|
529 |
-
#: includes/class-list-table.php:
|
530 |
msgid "Export to PHP"
|
531 |
msgstr "Экспорт в PHP"
|
532 |
|
533 |
-
#: includes/class-list-table.php:
|
534 |
#, php-format
|
535 |
msgid "All <span class=\"count\">(%s)</span>"
|
536 |
msgid_plural "All <span class=\"count\">(%s)</span>"
|
@@ -538,69 +651,216 @@ msgstr[0] "Все <span class=\"count\">(%s)</span>"
|
|
538 |
msgstr[1] "Все <span class=\"count\">(%s)</span>"
|
539 |
msgstr[2] "Все <span class=\"count\">(%s)</span>"
|
540 |
|
541 |
-
#: includes/class-list-table.php:
|
542 |
#, php-format
|
543 |
msgid "Active <span class=\"count\">(%s)</span>"
|
544 |
msgid_plural "Active <span class=\"count\">(%s)</span>"
|
545 |
-
msgstr[0] "
|
546 |
msgstr[1] "Активные <span class=\"count\">(%s)</span>"
|
547 |
msgstr[2] "Активные <span class=\"count\">(%s)</span>"
|
548 |
|
549 |
-
#: includes/class-list-table.php:
|
550 |
#, php-format
|
551 |
msgid "Recently Active <span class=\"count\">(%s)</span>"
|
552 |
msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
|
553 |
-
msgstr[0] "Недавно
|
554 |
msgstr[1] "Недавно активные <span class=\"count\">(%s)</span>"
|
555 |
msgstr[2] "Недавно активные <span class=\"count\">(%s)</span>"
|
556 |
|
557 |
-
#: includes/class-list-table.php:
|
558 |
#, php-format
|
559 |
msgid "Inactive <span class=\"count\">(%s)</span>"
|
560 |
msgid_plural "Inactive <span class=\"count\">(%s)</span>"
|
561 |
-
msgstr[0] "
|
562 |
msgstr[1] "Неактивные <span class=\"count\">(%s)</span>"
|
563 |
msgstr[2] "Неактивные <span class=\"count\">(%s)</span>"
|
564 |
|
565 |
-
#: includes/class-list-table.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
566 |
msgid "Filter"
|
567 |
msgstr "Фильтр"
|
568 |
|
569 |
-
#: includes/class-list-table.php:
|
570 |
msgid "Clear List"
|
571 |
-
msgstr "Очистить
|
572 |
|
573 |
-
#: includes/class-list-table.php:
|
574 |
#, php-format
|
575 |
msgid ""
|
576 |
"You do not appear to have any snippets available at this time. <a href=\"%s"
|
577 |
"\">Add New→</a>"
|
578 |
msgstr "Нет доступных сниппетов. <a href=\"%s\">Добавить новый→</a>"
|
579 |
|
580 |
-
#: includes/class-list-table.php:
|
581 |
msgid "Search results"
|
582 |
msgstr "Результаты поиска"
|
583 |
|
584 |
-
#: includes/class-list-table.php:
|
585 |
#, php-format
|
586 |
msgid " for “%s”"
|
587 |
msgstr " по запросу “%s”"
|
588 |
|
589 |
-
#: includes/class-list-table.php:
|
|
|
|
|
|
|
|
|
|
|
590 |
msgid "Clear Filters"
|
591 |
msgstr "Очистить фильтры"
|
592 |
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
604 |
|
605 |
#, fuzzy
|
606 |
#~ msgid "Все <span class=\"count\">(%s)</span>"
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Code Snippets\n"
|
5 |
+
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2015-05-19 01:03+0300\n"
|
7 |
+
"PO-Revision-Date: 2015-05-19 01:15+0300\n"
|
8 |
+
"Last-Translator: Alexey Chumakov <alex@chumakov.ru>\n"
|
9 |
"Language-Team: Flector <rlector@gmail.com>\n"
|
10 |
"Language: ru\n"
|
11 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Transfer-Encoding: 8bit\n"
|
14 |
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
15 |
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
16 |
+
"X-Generator: Poedit 1.7.6\n"
|
17 |
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
"X-Poedit-Basepath: ../\n"
|
19 |
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;_x:1,2c;_n;_nx:4c,1,2;"
|
21 |
"esc_html_e\n"
|
22 |
"X-Poedit-SearchPath-0: .\n"
|
23 |
|
24 |
+
#: includes/admin.php:81 includes/manage/admin.php:21
|
25 |
+
#: includes/manage/manage.php:22 includes/manage/manage.php:23
|
26 |
+
#: includes/manage/manage.php:33
|
27 |
+
msgid "Snippets"
|
28 |
+
msgstr "Сниппеты"
|
29 |
|
30 |
+
#: includes/admin.php:152
|
31 |
+
msgid "Manage your existing snippets"
|
32 |
+
msgstr "Управление имеющимися сниппетами"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
+
#: includes/admin.php:153 includes/manage/manage.php:34
|
35 |
+
msgid "Manage"
|
36 |
+
msgstr "Управление"
|
37 |
|
38 |
+
#: includes/admin.php:182
|
39 |
+
msgid "Visit the WordPress.org plugin page"
|
40 |
+
msgstr "Посетить страницу плагина на WordPress.org"
|
|
|
|
|
41 |
|
42 |
+
#: includes/admin.php:183
|
43 |
+
msgid "About"
|
44 |
+
msgstr "О плагине"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
+
#: includes/admin.php:187
|
47 |
+
msgid "Visit the support forums"
|
48 |
+
msgstr "Посетить форумы поддержки"
|
49 |
|
50 |
+
#: includes/admin.php:188
|
51 |
+
msgid "Support"
|
52 |
+
msgstr "Поддержка"
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
+
#: includes/admin.php:192
|
55 |
+
msgid "Support this plugin's development"
|
56 |
+
msgstr "Поддержите развитие плагина"
|
57 |
|
58 |
+
#: includes/admin.php:193
|
59 |
+
msgid "Donate"
|
60 |
+
msgstr "Пожертвования"
|
|
|
|
|
|
|
|
|
61 |
|
62 |
+
#: includes/admin.php:226
|
63 |
msgid ""
|
64 |
+
"<strong>Have feedback on Code Snippets?</strong> Please take the time to "
|
65 |
+
"answer a short survey on how you use this plugin and what you'd like to see "
|
66 |
+
"changed or added in the future."
|
67 |
msgstr ""
|
68 |
+
"<strong>У вас есть замечания по работе Code Snippets?</strong> Тогда "
|
69 |
+
"пожалуйста заполните анкету на сайте плагина."
|
70 |
|
71 |
+
#: includes/admin.php:229
|
72 |
+
msgid "Take the survey now"
|
73 |
+
msgstr "Оставить отзыв"
|
|
|
|
|
|
|
|
|
74 |
|
75 |
+
#: includes/class-export.php:102
|
76 |
msgid ""
|
77 |
+
"This is a code snippets export file generated by the Code Snippets WordPress "
|
78 |
+
"plugin."
|
|
|
|
|
|
|
79 |
msgstr ""
|
80 |
+
"Это файл экспорта сниппетов кода, созданный плагином Code Snippets для "
|
81 |
+
"WordPress."
|
|
|
|
|
82 |
|
83 |
+
#: includes/class-export.php:103
|
84 |
+
msgid "http://wordpress.org/plugins/code-snippets"
|
85 |
+
msgstr "http://wordpress.org/plugins/code-snippets"
|
86 |
|
87 |
+
#: includes/class-export.php:104
|
88 |
+
msgid "To import these snippets a WordPress site follow these steps:"
|
89 |
+
msgstr "Для импорта сниппетов на сайт WordPress выполните эти действия:"
|
90 |
+
|
91 |
+
#: includes/class-export.php:105
|
92 |
+
msgid "1. Log in to that site as an administrator."
|
93 |
+
msgstr "1. Войдите на сайт как администратор."
|
|
|
94 |
|
95 |
+
#: includes/class-export.php:106
|
96 |
msgid ""
|
97 |
+
"2. Install the Code Snippets plugin using the directions provided at the "
|
98 |
+
"above link."
|
99 |
+
msgstr "2. Установите плагин Code Snippets, следуя указаниям по ссылке выше."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
+
#: includes/class-export.php:107
|
102 |
+
msgid "3. Go to 'Tools: Import' in the WordPress admin panel."
|
103 |
+
msgstr "3. Перейдите в 'Инструменты: Импорт' в консоли WordPress."
|
104 |
|
105 |
+
#: includes/class-export.php:108
|
106 |
+
msgid "4. Click on the \"Code Snippets\" importer in the list"
|
107 |
+
msgstr "4. Нажмите на импорт \"Code Snippets\" в списке"
|
108 |
+
|
109 |
+
#: includes/class-export.php:109
|
110 |
+
msgid "5. Upload this file using the form provided on that page."
|
111 |
+
msgstr "5. Загрузите этот файл через форму на той странице."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
+
#: includes/class-export.php:110
|
114 |
msgid ""
|
115 |
+
"6. Code Snippets will then import all of the snippets and associated "
|
116 |
+
"information contained in this file into your site."
|
|
|
117 |
msgstr ""
|
118 |
+
"6. Code Snippets импортирует из этого файла на сайт все сниппеты и "
|
119 |
+
"сопутствующую информацию."
|
120 |
|
121 |
+
#: includes/class-export.php:111
|
122 |
msgid ""
|
123 |
+
"7. You will then have to visit the 'Snippets: Manage' admin menu and "
|
124 |
+
"activate desired snippets."
|
125 |
msgstr ""
|
126 |
+
"7. Потребуется зайти в <a href=\"%s\">Сниппеты: управление</a>, и "
|
127 |
+
"активировать нужные сниппеты."
|
128 |
+
|
129 |
+
#: includes/edit/admin-help.php:15 includes/import/admin-help.php:16
|
130 |
+
#: includes/manage/admin-help.php:15
|
131 |
+
msgid "Overview"
|
132 |
+
msgstr "Обзор"
|
133 |
|
134 |
+
#: includes/edit/admin-help.php:17
|
135 |
msgid ""
|
136 |
"Snippets are similar to plugins - they both extend and expand the "
|
137 |
"functionality of WordPress. Snippets are more light-weight, just a few lines "
|
138 |
"of code, and do not put as much load on your server. Here you can add a new "
|
139 |
"snippet, or edit an existing one."
|
140 |
msgstr ""
|
141 |
+
"Сниппеты похожи на плагины — и те и другие расширяют функциональность "
|
142 |
+
"WordPress. Сниппеты меньше, они состоят лишь из нескольких строк кода и не "
|
143 |
+
"сильно нагружают ваш сервер. Здесь можно добавить или отредактировать "
|
144 |
+
"сниппет."
|
145 |
|
146 |
+
#: includes/edit/admin-help.php:22
|
147 |
msgid "Finding Snippets"
|
148 |
msgstr "Поиск сниппетов"
|
149 |
|
150 |
+
#: includes/edit/admin-help.php:24
|
151 |
msgid ""
|
152 |
"Here are some links to websites which host a large number of snippets that "
|
153 |
"you can add to your site.\n"
|
161 |
"\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
|
162 |
"\t\t</ul>"
|
163 |
msgstr ""
|
164 |
+
"Здесь приведены ссылки на некоторые сайты со множеством сниппетов:\n"
|
165 |
"\t\t<ul>\n"
|
166 |
"\t\t\t<li><a href=\"http://www.wphook.ru\" title=\"WPHook.ru\">WPHook.ru</"
|
167 |
"a></li>\n"
|
174 |
"\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
|
175 |
"\t\t</ul>"
|
176 |
|
177 |
+
#: includes/edit/admin-help.php:31
|
178 |
msgid ""
|
179 |
"More places to find snippets, as well as a selection of example snippets, "
|
180 |
+
"can be found in the <a href=\"https://github.com/sheabunge/code-snippets/"
|
181 |
+
"wiki/Finding-snippets\">plugin documentation</a>"
|
182 |
msgstr ""
|
183 |
+
"Места, где можно найти сниппеты, а также избранные примеры, находятся на <a "
|
184 |
+
"href=\"https://github.com/sheabunge/code-snippets/wiki/Finding-snippets"
|
185 |
+
"\">странице плагина</a>"
|
186 |
|
187 |
+
#: includes/edit/admin-help.php:36
|
188 |
msgid "Adding Snippets"
|
189 |
msgstr "Добавление сниппетов"
|
190 |
|
191 |
+
#: includes/edit/admin-help.php:38
|
192 |
msgid ""
|
193 |
"You need to fill out the name and code fields for your snippet to be added. "
|
194 |
"While the description field will add more information about how your snippet "
|
195 |
"works, what is does and where you found it, it is completely optional."
|
196 |
+
msgstr ""
|
197 |
+
"Для добавление сниппета нужно заполнить поля названия и кода. В поле "
|
198 |
+
"описания можно добавить дополнительные сведения о том, как работает сниппет, "
|
199 |
+
"но это совершенно необязательно."
|
200 |
|
201 |
+
#: includes/edit/admin-help.php:39
|
202 |
msgid ""
|
203 |
"Please be sure to check that your snippet is valid PHP code and will not "
|
204 |
"produce errors before adding it through this page. While doing so will not "
|
205 |
"become active straight away, it will help to minimise the chance of a faulty "
|
206 |
"snippet becoming active on your site."
|
207 |
msgstr ""
|
208 |
+
"Пожалуйста, перед добавление сниппета убедитесь в том, что он является "
|
209 |
+
"корректным PHP кодом, и не приведет к сбоям. Хотя добавляемый сниппет сразу "
|
210 |
+
"не активизируется, это поможет сократить вероятность включения неисправного "
|
211 |
+
"сниппета в будущем."
|
212 |
|
213 |
+
#: includes/edit/admin-help.php:43 includes/import/admin-help.php:37
|
214 |
+
#: includes/manage/admin-help.php:37
|
215 |
+
msgid "For more information:"
|
216 |
+
msgstr "Дополнительная информация:"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
|
218 |
+
#: includes/edit/admin-help.php:44 includes/import/admin-help.php:38
|
219 |
msgid ""
|
220 |
+
"<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
|
221 |
+
"\">WordPress Extend</a>"
|
|
|
|
|
222 |
msgstr ""
|
223 |
+
"<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
|
224 |
+
"\">Страница плагина</a>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
|
226 |
+
#: includes/edit/admin-help.php:45 includes/import/admin-help.php:39
|
227 |
+
#: includes/manage/admin-help.php:39
|
228 |
+
msgid ""
|
229 |
+
"<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank"
|
230 |
+
"\">Support Forums</a>"
|
231 |
+
msgstr ""
|
232 |
+
"<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank"
|
233 |
+
"\">Форумы поддержки</a>"
|
234 |
|
235 |
+
#: includes/edit/admin-help.php:46 includes/import/admin-help.php:40
|
236 |
+
#: includes/manage/admin-help.php:40
|
237 |
+
msgid ""
|
238 |
+
"<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank"
|
239 |
+
"\">Project Website</a>"
|
240 |
+
msgstr ""
|
241 |
+
"<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank"
|
242 |
+
"\">Сайт плагина</a>"
|
243 |
|
244 |
+
#: includes/edit/admin-messages.php:14
|
245 |
msgid "An error occurred when saving the snippet."
|
246 |
msgstr "Произошла ошибка при сохранении сниппета."
|
247 |
|
248 |
+
#: includes/edit/admin-messages.php:18
|
249 |
msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
|
250 |
msgstr "Сниппет <strong>обновлен</strong> и <strong>активирован</strong>."
|
251 |
|
252 |
+
#: includes/edit/admin-messages.php:22
|
253 |
msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
|
254 |
msgstr "Сниппет <strong>добавлен</strong> и <strong>активирован</strong>."
|
255 |
|
256 |
+
#: includes/edit/admin-messages.php:26
|
257 |
msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
|
258 |
msgstr "Сниппет <strong>обновлен</strong> и <strong>деактивирован</strong>."
|
259 |
|
260 |
+
#: includes/edit/admin-messages.php:30
|
261 |
msgid "Snippet <strong>updated</strong>."
|
262 |
msgstr "Сниппет <strong>обновлен</strong>."
|
263 |
|
264 |
+
#: includes/edit/admin-messages.php:34
|
265 |
msgid "Snippet <strong>added</strong>."
|
266 |
msgstr "Сниппет <strong>добавлен</strong>."
|
267 |
|
268 |
+
#: includes/edit/admin.php:26 includes/edit/edit.php:48
|
269 |
+
#: includes/edit/edit.php:49
|
270 |
+
msgid "Edit Snippet"
|
271 |
+
msgstr "Редактирование сниппета"
|
272 |
+
|
273 |
+
#: includes/edit/admin.php:29 includes/edit/edit.php:35
|
274 |
+
#: includes/manage/admin.php:24
|
275 |
+
msgid "Add New"
|
276 |
+
msgstr "Добавить новый"
|
277 |
+
|
278 |
+
#: includes/edit/admin.php:32 includes/edit/edit.php:34
|
279 |
+
msgid "Add New Snippet"
|
280 |
+
msgstr "Добавление нового сниппета"
|
281 |
+
|
282 |
+
#: includes/edit/admin.php:49 includes/edit/admin.php:50
|
283 |
+
msgid "Name (short title)"
|
284 |
+
msgstr "Название (короткий заголовок на английском)"
|
285 |
+
|
286 |
+
#: includes/edit/admin.php:55
|
287 |
+
msgid "Code"
|
288 |
+
msgstr "Код"
|
289 |
+
|
290 |
+
#: includes/edit/admin.php:75 includes/edit/admin.php:89
|
291 |
+
msgid "Save Changes and Activate"
|
292 |
+
msgstr "Сохранить изменения и активировать"
|
293 |
+
|
294 |
+
#: includes/edit/admin.php:95
|
295 |
+
msgid "Save Changes and Deactivate"
|
296 |
+
msgstr "Сохранить изменения и деактивировать"
|
297 |
+
|
298 |
+
#: includes/edit/admin.php:105 includes/manage/class-list-table.php:141
|
299 |
+
#: includes/manage/class-list-table.php:266
|
300 |
+
msgid "Export"
|
301 |
+
msgstr "Экспорт"
|
302 |
+
|
303 |
+
#: includes/edit/admin.php:112
|
304 |
+
msgid ""
|
305 |
+
"You are about to permanently delete this snippet.\n"
|
306 |
+
"'Cancel' to stop, 'OK' to delete."
|
307 |
+
msgstr ""
|
308 |
+
"Вы собираетесь удалить этот сниппет.\n"
|
309 |
+
"'Отмена' — прекратить, 'OK' — удалить."
|
310 |
+
|
311 |
+
#: includes/edit/admin.php:117 includes/manage/class-list-table.php:150
|
312 |
+
#: includes/manage/class-list-table.php:267
|
313 |
+
msgid "Delete"
|
314 |
+
msgstr "Удалить"
|
315 |
+
|
316 |
+
#: includes/edit/edit.php:83 includes/manage/manage.php:67
|
317 |
+
msgid "You are not authorized to access this page."
|
318 |
+
msgstr "У вас нет доступа к этой странице."
|
319 |
+
|
320 |
+
#: includes/edit/edit.php:177 includes/manage/class-list-table.php:226
|
321 |
+
msgid "Description"
|
322 |
+
msgstr "Описание"
|
323 |
+
|
324 |
+
#: includes/edit/edit.php:204
|
325 |
+
msgid "Run snippet everywhere"
|
326 |
+
msgstr "Запускать сниппет везде"
|
327 |
+
|
328 |
+
#: includes/edit/edit.php:205
|
329 |
+
msgid "Only run in adminstration area"
|
330 |
+
msgstr "Запускать только в консоли администратора"
|
331 |
+
|
332 |
+
#: includes/edit/edit.php:206
|
333 |
+
msgid "Only run on site front-end"
|
334 |
+
msgstr "Запускать только на фронт-энде сайта"
|
335 |
+
|
336 |
+
#: includes/edit/edit.php:210
|
337 |
+
msgid "Scope"
|
338 |
+
msgstr "Область"
|
339 |
+
|
340 |
+
#: includes/edit/edit.php:231 includes/manage/class-list-table.php:227
|
341 |
+
msgid "Tags"
|
342 |
+
msgstr "Метки"
|
343 |
+
|
344 |
+
#: includes/edit/edit.php:235
|
345 |
+
msgid "Enter a list of tags; separated by commas"
|
346 |
+
msgstr "Введите метки через запятую"
|
347 |
+
|
348 |
+
#: includes/import/admin-help.php:18
|
349 |
+
msgid ""
|
350 |
+
"Snippets are similar to plugins - they both extend and expand the "
|
351 |
+
"functionality of WordPress. Snippets are more light-weight, just a few lines "
|
352 |
+
"of code, and do not put as much load on your server. Here you can load "
|
353 |
+
"snippets from a Code Snippets (.xml) import file into the database with your "
|
354 |
+
"existing snippets."
|
355 |
+
msgstr ""
|
356 |
+
"Сниппеты похожи на плагины — и те и другие расширяют функциональность "
|
357 |
+
"WordPress. Сниппеты меньше, они состоят лишь из нескольких строк кода и не "
|
358 |
+
"сильно нагружают ваш сервер. Здесь вы можете загрузить ваши сниппеты из "
|
359 |
+
"файла экспорта плагина (.xml), чтобы добавить их на ваш сайт."
|
360 |
+
|
361 |
+
#: includes/import/admin-help.php:23
|
362 |
+
msgid "Importing"
|
363 |
+
msgstr "Импорт"
|
364 |
+
|
365 |
+
#: includes/import/admin-help.php:25
|
366 |
+
msgid ""
|
367 |
+
"You can load your snippets from a code snippets (.xml) export file using "
|
368 |
+
"this page."
|
369 |
+
msgstr ""
|
370 |
+
"На этой странице вы можете загрузить свои сниппеты из файла экспорта (.xml)."
|
371 |
+
|
372 |
+
#: includes/import/admin-help.php:26
|
373 |
+
#, php-format
|
374 |
+
msgid ""
|
375 |
+
"Snippets will be added to the database along with your existing snippets. "
|
376 |
+
"Regardless of whether the snippets were active on the previous site, "
|
377 |
+
"imported snippets are always inactive until activated using the <a href=\"%s"
|
378 |
+
"\">Manage Snippets</a> page.</p>"
|
379 |
+
msgstr ""
|
380 |
+
"Сниппеты будут добавлены в вашу базу к уже имеющимся. Независимо от того, "
|
381 |
+
"были ли они активны на предыдущем сайте, импортированные сниппеты всегда "
|
382 |
+
"неактивны, пока их не активировать на странице <a href=\"%s\">Управление "
|
383 |
+
"сниппетами</a>).</p>"
|
384 |
+
|
385 |
+
#: includes/import/admin-help.php:31
|
386 |
+
msgid "Exporting"
|
387 |
+
msgstr "Экспорт"
|
388 |
+
|
389 |
+
#: includes/import/admin-help.php:33
|
390 |
+
#, php-format
|
391 |
+
msgid ""
|
392 |
+
"You can save your snippets to a Code Snippets (.xml) export file using the "
|
393 |
+
"<a href=\"%s\">Manage Snippets</a> page."
|
394 |
+
msgstr ""
|
395 |
+
"Вы можете сохранить свои сниппеты в файл экспорта (.xml) на странице <a href="
|
396 |
+
"\"%s\">Управление сниппетами</a>."
|
397 |
+
|
398 |
+
#: includes/import/admin-messages.php:16
|
399 |
+
#, php-format
|
400 |
+
msgid ""
|
401 |
+
"Successfully imported <strong>%d</strong> snippet. <a href=\"%s\">Have fun!</"
|
402 |
+
"a>"
|
403 |
+
msgid_plural ""
|
404 |
+
"Successfully imported <strong>%d</strong> snippets. <a href=\"%s\">Have fun!"
|
405 |
+
"</a>"
|
406 |
+
msgstr[0] ""
|
407 |
+
"Успешно импортирован <strong>%d</strong> сниппет. <a href=\"%s\">Удачи!</a>"
|
408 |
+
msgstr[1] ""
|
409 |
+
"Успешно импортировано <strong>%d</strong> сниппета. <a href=\"%s\">Удачи!</a>"
|
410 |
+
msgstr[2] ""
|
411 |
+
"Усеешно импортировано <strong>%d</strong> сниппетов. <a href=\"%s\">Удачи!</"
|
412 |
+
"a>"
|
413 |
+
|
414 |
+
#: includes/import/admin-messages.php:30
|
415 |
+
msgid "An error occurred when processing the import file."
|
416 |
+
msgstr "Произошла ошибка при импортировании сниппета."
|
417 |
+
|
418 |
+
#: includes/import/admin.php:18 includes/import/import.php:55
|
419 |
msgid "Import Snippets"
|
420 |
msgstr "Импортирование сниппетов"
|
421 |
|
422 |
+
#: includes/import/admin.php:22
|
423 |
msgid ""
|
424 |
"Howdy! Upload your Code Snippets export file and we’ll import the "
|
425 |
"snippets to this site."
|
426 |
msgstr ""
|
427 |
"Привет! Загрузите файл экспорта, чтобы импортировать сниппеты на этот сайт."
|
428 |
|
429 |
+
#: includes/import/admin.php:24
|
430 |
#, php-format
|
431 |
msgid ""
|
432 |
"You will need to go to the <a href=\"%s\">Manage Snippets</a> page to "
|
433 |
"activate the imported snippets."
|
434 |
msgstr ""
|
435 |
+
"Чтобы активировать импортированные сниппеты, потребуется зайти в <a href=\"%s"
|
436 |
+
"\">Управление сниппетами</a>, "
|
437 |
|
438 |
+
#: includes/import/admin.php:26
|
439 |
msgid ""
|
440 |
"Choose a Code Snippets (.xml) file to upload, then click Upload file and "
|
441 |
"import."
|
442 |
msgstr ""
|
443 |
+
"Выберите файл экспорта (.xml), а затем нажмите \"Загрузить файл и "
|
444 |
"импортировать\"."
|
445 |
|
446 |
+
#: includes/import/admin.php:33
|
447 |
msgid "Choose a file from your computer:"
|
448 |
msgstr "Выберите файл на вашем компьютере:"
|
449 |
|
450 |
+
#: includes/import/admin.php:34
|
451 |
msgid "(Maximum size: 8MB)"
|
452 |
+
msgstr "(Максимальный размер: 8МБ)"
|
453 |
|
454 |
+
#: includes/import/admin.php:40
|
455 |
msgid "Upload file and import"
|
456 |
msgstr "Загрузить файл и импортировать"
|
457 |
|
458 |
+
#: includes/import/import.php:34
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
msgid "Code Snippets"
|
460 |
msgstr "Code Snippets"
|
461 |
|
462 |
+
#: includes/import/import.php:35
|
463 |
+
msgid "Import snippets from a code snippets export file"
|
464 |
msgstr "Импортировать сниппеты из файла экспорта плагина \"Code Snippets\"."
|
465 |
|
466 |
+
#: includes/import/import.php:56
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
467 |
msgid "Import"
|
468 |
msgstr "Импорт"
|
469 |
|
470 |
+
#: includes/import/import.php:92
|
471 |
+
msgid "You are not access this page."
|
472 |
+
msgstr "У вас нет доступа к этой странице."
|
473 |
|
474 |
+
#: includes/manage/admin-help.php:17
|
475 |
+
msgid ""
|
476 |
+
"Snippets are similar to plugins - they both extend and expand the "
|
477 |
+
"functionality of WordPress. Snippets are more light-weight, just a few lines "
|
478 |
+
"of code, and do not put as much load on your server. Here you can manage "
|
479 |
+
"your existing snippets and preform tasks on them such as activating, "
|
480 |
+
"deactivating, deleting and exporting."
|
481 |
+
msgstr ""
|
482 |
+
"Сниппеты похожи на плагины — и те и другие расширяют функциональность "
|
483 |
+
"WordPress. Сниппеты меньше, они состоят лишь из нескольких строк кода и не "
|
484 |
+
"сильно нагружают ваш сервер. Отсюда вы можете управлять вашими сниппетами "
|
485 |
+
"(добавлять, редактировать, активировать и деактивировать)."
|
486 |
|
487 |
+
#: includes/manage/admin-help.php:22
|
488 |
+
msgid "Safe Mode"
|
489 |
+
msgstr "Безопасный режим"
|
490 |
|
491 |
+
#: includes/manage/admin-help.php:24
|
492 |
+
msgid ""
|
493 |
+
"Be sure to check your snippets for errors before you activate them, as a "
|
494 |
+
"faulty snippet could bring your whole blog down. If your site starts doing "
|
495 |
+
"strange things, deactivate all your snippets and activate them one at a time."
|
496 |
+
msgstr ""
|
497 |
+
"Прежде чем активировать сниппеты, убедитесь, что они не содержат ошибок. "
|
498 |
+
"Некорректные сниппеты могут положить вам сайт! Если ваш сайт начинает вести "
|
499 |
+
"себя странно, отключите все сниппеты и включайте их по одному."
|
500 |
|
501 |
+
#: includes/manage/admin-help.php:25
|
502 |
+
msgid ""
|
503 |
+
"If something goes wrong with a snippet and you can't use WordPress, you can "
|
504 |
+
"cause all snippets to stop executing by adding "
|
505 |
+
"<code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> to your <code>wp-"
|
506 |
+
"config.php</code> file. After you have deactivated the offending snippet, "
|
507 |
+
"you can turn off safe mode by removing this line or replacing <strong>true</"
|
508 |
+
"strong> with <strong>false</strong>."
|
509 |
+
msgstr ""
|
510 |
+
"На случай любых проблем со сниппетом, приводящим к сбою WordPress, можно "
|
511 |
+
"отключить все сниппеты, добавив строчку "
|
512 |
+
"<code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> в ваш файл "
|
513 |
+
"конфигурации <code>wp-config.php</code> . Отключив виновный сниппет, можно "
|
514 |
+
"отключить безопасный режим, удалив указанную строчку или "
|
515 |
+
"поменяв<strong>true</strong> на <strong>false</strong>."
|
516 |
+
|
517 |
+
#: includes/manage/admin-help.php:30
|
518 |
+
msgid "Uninstall"
|
519 |
+
msgstr "Удаление"
|
520 |
|
521 |
+
#: includes/manage/admin-help.php:32
|
522 |
+
#, php-format
|
523 |
+
msgid ""
|
524 |
+
"When you delete Code Snippets through the Plugins menu in WordPress it will "
|
525 |
+
"clear up the <code>%1$s</code> table and a few other bits of data stored in "
|
526 |
+
"the database. If you want to keep this data (ie: you are only temporally "
|
527 |
+
"uninstalling Code Snippets) then remove the <code>%2$s</code> folder using "
|
528 |
+
"FTP."
|
529 |
+
msgstr ""
|
530 |
+
"При удалении плагина через меню \"Плагины\" консоли таблица <code>%1$s</"
|
531 |
+
"code> в базе данных и кое-какие еще следы в базе данных будут удалены. Если "
|
532 |
+
"вы хотите сохранить настройки (сниппеты) плагина, то удаляйте плагин (<code>"
|
533 |
+
"%2$s</code>) через FTP, а не через консоль."
|
534 |
|
535 |
+
#: includes/manage/admin-help.php:33
|
536 |
+
msgid ""
|
537 |
+
"Even if you're sure that you don't want to use Code Snippets ever again on "
|
538 |
+
"this WordPress installation, you may want to use the export feature to back "
|
539 |
+
"up your snippets."
|
540 |
+
msgstr ""
|
541 |
+
"Даже если вы уверены, что никогда больше не будете использовать данный "
|
542 |
+
"плагин на этом сайте, на всякий случай сделайте экспорт всех сниппетов."
|
543 |
|
544 |
+
#: includes/manage/admin-help.php:38
|
545 |
+
msgid ""
|
546 |
+
"<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
|
547 |
+
"\">WordPress Extend</a></p>"
|
548 |
+
msgstr ""
|
549 |
+
"<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
|
550 |
+
"\">Страница плагина</a></p>"
|
551 |
|
552 |
+
#: includes/manage/admin-messages.php:14
|
553 |
msgid ""
|
554 |
+
"<strong>Warning:</strong> Safe mode is active and snippets will not execute! "
|
555 |
+
"Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-"
|
556 |
+
"config.php</code> to turn off safe mode. <a href=\"https://github.com/"
|
557 |
+
"sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Help</a>"
|
558 |
msgstr ""
|
559 |
+
"<strong>Внимание:</strong> включен безопасный режим, и сниппеты не будут "
|
560 |
+
"выполняются! Удалите константу <code>CODE_SNIPPETS_SAFE_MODE</code> из файла "
|
561 |
+
"<code>wp-config.php</code>, чтобы выключить безопасный режим. <a href="
|
562 |
+
"\"https://github.com/sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank"
|
563 |
+
"\">Помощь</a>"
|
564 |
|
565 |
+
#: includes/manage/admin-messages.php:20
|
566 |
+
msgid "Snippet <strong>activated</strong>."
|
567 |
+
msgstr "Сниппет <strong>активирован</strong>."
|
568 |
|
569 |
+
#: includes/manage/admin-messages.php:24
|
570 |
+
msgid "Selected snippets <strong>activated</strong>."
|
571 |
+
msgstr "Выбранные сниппеты <strong>активированы</strong>."
|
572 |
+
|
573 |
+
#: includes/manage/admin-messages.php:28
|
574 |
+
msgid "Snippet <strong>deactivated</strong>."
|
575 |
+
msgstr "Сниппет <strong>деактивирован</strong>."
|
576 |
+
|
577 |
+
#: includes/manage/admin-messages.php:32
|
578 |
+
msgid "Selected snippets <strong>deactivated</strong>."
|
579 |
+
msgstr "Выбранные сниппеты <strong>деактивированы</strong>."
|
580 |
+
|
581 |
+
#: includes/manage/admin-messages.php:36
|
582 |
+
msgid "Snippet <strong>deleted</strong>."
|
583 |
+
msgstr "Сниппет <strong>удален</strong>."
|
584 |
+
|
585 |
+
#: includes/manage/admin-messages.php:40
|
586 |
+
msgid "Selected snippets <strong>deleted</strong>."
|
587 |
+
msgstr "Выбранные сниппеты <strong>удалены</strong>."
|
588 |
+
|
589 |
+
#: includes/manage/admin.php:36
|
590 |
+
msgid "Search Installed Snippets"
|
591 |
+
msgstr "Искать установленные сниппеты"
|
592 |
+
|
593 |
+
#: includes/manage/class-list-table.php:53
|
594 |
msgid "Snippets per page"
|
595 |
+
msgstr "Сниппетов на странице"
|
596 |
|
597 |
+
#: includes/manage/class-list-table.php:116
|
598 |
+
#: includes/manage/class-list-table.php:265
|
599 |
msgid "Network Deactivate"
|
600 |
msgstr "Деактивировать в сети"
|
601 |
|
602 |
+
#: includes/manage/class-list-table.php:116
|
603 |
+
#: includes/manage/class-list-table.php:265
|
604 |
msgid "Deactivate"
|
605 |
msgstr "Деактивировать"
|
606 |
|
607 |
+
#: includes/manage/class-list-table.php:125
|
608 |
+
#: includes/manage/class-list-table.php:264
|
609 |
msgid "Network Activate"
|
610 |
msgstr "Активировать в сети"
|
611 |
|
612 |
+
#: includes/manage/class-list-table.php:125
|
613 |
+
#: includes/manage/class-list-table.php:264
|
614 |
msgid "Activate"
|
615 |
msgstr "Активировать"
|
616 |
|
617 |
+
#: includes/manage/class-list-table.php:135
|
618 |
+
msgid "Edit"
|
619 |
+
msgstr "Изменить"
|
620 |
+
|
621 |
+
#: includes/manage/class-list-table.php:157
|
622 |
+
msgid ""
|
623 |
+
"You are about to permanently delete the selected item.\n"
|
624 |
+
"\t\t\t\t'Cancel' to stop, 'OK' to delete."
|
625 |
+
msgstr ""
|
626 |
+
"Вы действительно хотите удалить выбранный сниппет?\n"
|
627 |
+
"\t\t\t\t'Отмена' — прекратить, 'OK' — удалить."
|
628 |
+
|
629 |
+
#: includes/manage/class-list-table.php:165
|
630 |
#, php-format
|
631 |
msgid "Untitled #%d"
|
632 |
+
msgstr "Без названия #%d"
|
633 |
|
634 |
+
#: includes/manage/class-list-table.php:224
|
635 |
msgid "Name"
|
636 |
+
msgstr "Название"
|
637 |
|
638 |
+
#: includes/manage/class-list-table.php:225
|
639 |
msgid "ID"
|
640 |
msgstr "ID"
|
641 |
|
642 |
+
#: includes/manage/class-list-table.php:268
|
643 |
msgid "Export to PHP"
|
644 |
msgstr "Экспорт в PHP"
|
645 |
|
646 |
+
#: includes/manage/class-list-table.php:305
|
647 |
#, php-format
|
648 |
msgid "All <span class=\"count\">(%s)</span>"
|
649 |
msgid_plural "All <span class=\"count\">(%s)</span>"
|
651 |
msgstr[1] "Все <span class=\"count\">(%s)</span>"
|
652 |
msgstr[2] "Все <span class=\"count\">(%s)</span>"
|
653 |
|
654 |
+
#: includes/manage/class-list-table.php:308
|
655 |
#, php-format
|
656 |
msgid "Active <span class=\"count\">(%s)</span>"
|
657 |
msgid_plural "Active <span class=\"count\">(%s)</span>"
|
658 |
+
msgstr[0] "Активный <span class=\"count\">(%s)</span>"
|
659 |
msgstr[1] "Активные <span class=\"count\">(%s)</span>"
|
660 |
msgstr[2] "Активные <span class=\"count\">(%s)</span>"
|
661 |
|
662 |
+
#: includes/manage/class-list-table.php:311
|
663 |
#, php-format
|
664 |
msgid "Recently Active <span class=\"count\">(%s)</span>"
|
665 |
msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
|
666 |
+
msgstr[0] "Недавно активный <span class=\"count\">(%s)</span>"
|
667 |
msgstr[1] "Недавно активные <span class=\"count\">(%s)</span>"
|
668 |
msgstr[2] "Недавно активные <span class=\"count\">(%s)</span>"
|
669 |
|
670 |
+
#: includes/manage/class-list-table.php:314
|
671 |
#, php-format
|
672 |
msgid "Inactive <span class=\"count\">(%s)</span>"
|
673 |
msgid_plural "Inactive <span class=\"count\">(%s)</span>"
|
674 |
+
msgstr[0] "Неактивный <span class=\"count\">(%s)</span>"
|
675 |
msgstr[1] "Неактивные <span class=\"count\">(%s)</span>"
|
676 |
msgstr[2] "Неактивные <span class=\"count\">(%s)</span>"
|
677 |
|
678 |
+
#: includes/manage/class-list-table.php:317
|
679 |
+
#, php-format
|
680 |
+
msgid "Admin <span class=\"count\">(%s)</span>"
|
681 |
+
msgid_plural "Admin <span class=\"count\">(%s)</span>"
|
682 |
+
msgstr[0] "В консоли <span class=\"count\">(%s)</span>"
|
683 |
+
msgstr[1] "В консоли <span class=\"count\">(%s)</span>"
|
684 |
+
msgstr[2] "В консоли <span class=\"count\">(%s)</span>"
|
685 |
+
|
686 |
+
#: includes/manage/class-list-table.php:320
|
687 |
+
#, php-format
|
688 |
+
msgid "Front End <span class=\"count\">(%s)</span>"
|
689 |
+
msgid_plural "Front End <span class=\"count\">(%s)</span>"
|
690 |
+
msgstr[0] "На сайте <span class=\"count\">(%s)</span>"
|
691 |
+
msgstr[1] "На сайте <span class=\"count\">(%s)</span>"
|
692 |
+
msgstr[2] "На сайте <span class=\"count\">(%s)</span>"
|
693 |
+
|
694 |
+
#: includes/manage/class-list-table.php:380
|
695 |
+
msgid "Show all tags"
|
696 |
+
msgstr "Показать все метки"
|
697 |
+
|
698 |
+
#: includes/manage/class-list-table.php:394
|
699 |
msgid "Filter"
|
700 |
msgstr "Фильтр"
|
701 |
|
702 |
+
#: includes/manage/class-list-table.php:402
|
703 |
msgid "Clear List"
|
704 |
+
msgstr "Очистить список"
|
705 |
|
706 |
+
#: includes/manage/class-list-table.php:551
|
707 |
#, php-format
|
708 |
msgid ""
|
709 |
"You do not appear to have any snippets available at this time. <a href=\"%s"
|
710 |
"\">Add New→</a>"
|
711 |
msgstr "Нет доступных сниппетов. <a href=\"%s\">Добавить новый→</a>"
|
712 |
|
713 |
+
#: includes/manage/class-list-table.php:783
|
714 |
msgid "Search results"
|
715 |
msgstr "Результаты поиска"
|
716 |
|
717 |
+
#: includes/manage/class-list-table.php:786
|
718 |
#, php-format
|
719 |
msgid " for “%s”"
|
720 |
msgstr " по запросу “%s”"
|
721 |
|
722 |
+
#: includes/manage/class-list-table.php:790
|
723 |
+
#, php-format
|
724 |
+
msgid " in tag “%s”"
|
725 |
+
msgstr " в метке “%s”"
|
726 |
+
|
727 |
+
#: includes/manage/class-list-table.php:796
|
728 |
msgid "Clear Filters"
|
729 |
msgstr "Очистить фильтры"
|
730 |
|
731 |
+
#: includes/settings/admin.php:20
|
732 |
+
msgid "Snippets Settings"
|
733 |
+
msgstr "Настройки сниппетов"
|
734 |
+
|
735 |
+
#: includes/settings/admin.php:21 includes/settings/admin.php:39
|
736 |
+
msgid "Settings"
|
737 |
+
msgstr "Настройки"
|
738 |
+
|
739 |
+
#: includes/settings/class-settings.php:51
|
740 |
+
msgid "Activate by Default"
|
741 |
+
msgstr "Включать по умолчанию"
|
742 |
+
|
743 |
+
#: includes/settings/class-settings.php:53
|
744 |
+
msgid ""
|
745 |
+
"Make the 'Save and Activate' button the default action when saving a snippet."
|
746 |
+
msgstr ""
|
747 |
+
"Сделать кнопку 'Сохранить и активировать' действием по умолчанию при "
|
748 |
+
"сохранении сниппета"
|
749 |
+
|
750 |
+
#: includes/settings/class-settings.php:59
|
751 |
+
msgid "Enable Scope Selector"
|
752 |
+
msgstr "Включить селектор области"
|
753 |
+
|
754 |
+
#: includes/settings/class-settings.php:61
|
755 |
+
msgid "Enable the scope selector when editing a snippet"
|
756 |
+
msgstr "Включить селектор области применения при редактировании сниппета"
|
757 |
+
|
758 |
+
#: includes/settings/class-settings.php:71
|
759 |
+
msgid "Row Height"
|
760 |
+
msgstr "Высота в строках"
|
761 |
+
|
762 |
+
#: includes/settings/class-settings.php:73
|
763 |
+
msgid "rows"
|
764 |
+
msgstr "строк"
|
765 |
+
|
766 |
+
#: includes/settings/class-settings.php:80
|
767 |
+
msgid "Use Full Editor"
|
768 |
+
msgstr "Использовать расширенный редактор"
|
769 |
+
|
770 |
+
#: includes/settings/class-settings.php:82
|
771 |
+
msgid "Enable all features of the visual editor"
|
772 |
+
msgstr "Включить все функции визуального редактора"
|
773 |
+
|
774 |
+
#: includes/settings/class-settings.php:88
|
775 |
+
msgid "Media Buttons"
|
776 |
+
msgstr "Кнопки медиа"
|
777 |
+
|
778 |
+
#: includes/settings/class-settings.php:90
|
779 |
+
msgid "Enable the add media buttons"
|
780 |
+
msgstr "Включить кнопки добавления медиафайла"
|
781 |
+
|
782 |
+
#: includes/settings/class-settings.php:100
|
783 |
+
msgid "Theme"
|
784 |
+
msgstr "Тема"
|
785 |
+
|
786 |
+
#: includes/settings/class-settings.php:108
|
787 |
+
msgid "Indent With Tabs"
|
788 |
+
msgstr "Сдвигать табуляторами"
|
789 |
+
|
790 |
+
#: includes/settings/class-settings.php:110
|
791 |
+
msgid "Use hard tabs (not spaces) for indentation."
|
792 |
+
msgstr "Использовать жесткие табуляторы (не пробелы) для сдвига"
|
793 |
+
|
794 |
+
#: includes/settings/class-settings.php:117
|
795 |
+
msgid "Tab Size"
|
796 |
+
msgstr "Размер табулятора"
|
797 |
+
|
798 |
+
#: includes/settings/class-settings.php:119
|
799 |
+
msgid "The width of a tab character."
|
800 |
+
msgstr "Ширина символа табуляции"
|
801 |
+
|
802 |
+
#: includes/settings/class-settings.php:127
|
803 |
+
msgid "Indent Unit"
|
804 |
+
msgstr "Шаг сдвига"
|
805 |
+
|
806 |
+
#: includes/settings/class-settings.php:129
|
807 |
+
msgid "How many spaces a block should be indented."
|
808 |
+
msgstr "На сколько пробелов сдвигать блок"
|
809 |
+
|
810 |
+
#: includes/settings/class-settings.php:137
|
811 |
+
msgid "Wrap Lines"
|
812 |
+
msgstr "Переносить строки"
|
813 |
+
|
814 |
+
#: includes/settings/class-settings.php:139
|
815 |
+
msgid "Whether the editor should scroll or wrap for long lines."
|
816 |
+
msgstr "Прокручивать или переносить длинные строки в редакторе"
|
817 |
+
|
818 |
+
#: includes/settings/class-settings.php:146
|
819 |
+
msgid "Line Numbers"
|
820 |
+
msgstr "Номера строк"
|
821 |
+
|
822 |
+
#: includes/settings/class-settings.php:148
|
823 |
+
msgid "Show line numbers to the left of the editor."
|
824 |
+
msgstr "Показывать номера строк в редакторе слева"
|
825 |
+
|
826 |
+
#: includes/settings/class-settings.php:155
|
827 |
+
msgid "Auto Close Brackets"
|
828 |
+
msgstr "Автоматически закрывать скобки"
|
829 |
+
|
830 |
+
#: includes/settings/class-settings.php:157
|
831 |
+
msgid "Auto-close brackets and quotes when typed."
|
832 |
+
msgstr "Автоматически закрывать скобки и кавычки при наборе"
|
833 |
+
|
834 |
+
#: includes/settings/class-settings.php:164
|
835 |
+
msgid "Highlight Selection Matches"
|
836 |
+
msgstr "Выделять совпадения"
|
837 |
+
|
838 |
+
#: includes/settings/class-settings.php:165
|
839 |
+
msgid "Highlight all instances of a currently selected word."
|
840 |
+
msgstr "Выделять все вхождения выбранного слова"
|
841 |
+
|
842 |
+
#: includes/settings/settings.php:84
|
843 |
+
msgid "General"
|
844 |
+
msgstr "Основные"
|
845 |
+
|
846 |
+
#: includes/settings/settings.php:85
|
847 |
+
msgid "Description Editor"
|
848 |
+
msgstr "Редактор описания"
|
849 |
+
|
850 |
+
#: includes/settings/settings.php:86
|
851 |
+
msgid "Code Editor"
|
852 |
+
msgstr "Редактор кода"
|
853 |
+
|
854 |
+
#: includes/settings/settings.php:134
|
855 |
+
msgid "Editor Preview"
|
856 |
+
msgstr "Предварительный просмотр в редакторе"
|
857 |
+
|
858 |
+
#: includes/settings/settings.php:180
|
859 |
+
msgid "Settings saved."
|
860 |
+
msgstr "Настройки сохранены."
|
861 |
+
|
862 |
+
#~ msgid "Вы действительно хотите удалить выбранный сниппет?"
|
863 |
+
#~ msgstr "Вы действительно хотите удалить выбранный сниппет?"
|
864 |
|
865 |
#, fuzzy
|
866 |
#~ msgid "Все <span class=\"count\">(%s)</span>"
|
languages/code-snippets.pot
CHANGED
@@ -6,9 +6,9 @@
|
|
6 |
#, fuzzy
|
7 |
msgid ""
|
8 |
msgstr ""
|
9 |
-
"Project-Id-Version: code-snippets 2.
|
10 |
"Report-Msgid-Bugs-To: \n"
|
11 |
-
"POT-Creation-Date: 2015-05-
|
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"
|
@@ -16,6 +16,7 @@ msgstr ""
|
|
16 |
"MIME-Version: 1.0\n"
|
17 |
"Content-Type: text/plain; charset=CHARSET\n"
|
18 |
"Content-Transfer-Encoding: 8bit\n"
|
|
|
19 |
|
20 |
#: includes/admin.php:81 includes/manage/admin.php:21
|
21 |
#: includes/manage/manage.php:22 includes/manage/manage.php:23
|
@@ -226,47 +227,51 @@ msgstr ""
|
|
226 |
msgid "Edit Snippet"
|
227 |
msgstr ""
|
228 |
|
229 |
-
#: includes/edit/admin.php:
|
230 |
-
|
231 |
msgid "Add New"
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: includes/edit/admin.php:
|
235 |
msgid "Add New Snippet"
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: includes/edit/admin.php:
|
239 |
msgid "Name (short title)"
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: includes/edit/admin.php:
|
243 |
msgid "Code"
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: includes/edit/admin.php:
|
247 |
msgid "Save Changes and Activate"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: includes/edit/admin.php:
|
251 |
msgid "Save Changes and Deactivate"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: includes/edit/admin.php:
|
255 |
#: includes/manage/class-list-table.php:266
|
256 |
msgid "Export"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: includes/edit/admin.php:
|
260 |
msgid ""
|
261 |
"You are about to permanently delete this snippet.\n"
|
262 |
"'Cancel' to stop, 'OK' to delete."
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: includes/edit/admin.php:
|
266 |
#: includes/manage/class-list-table.php:267
|
267 |
msgid "Delete"
|
268 |
msgstr ""
|
269 |
|
|
|
|
|
|
|
|
|
270 |
#: includes/edit/edit.php:83 includes/manage/manage.php:67
|
271 |
msgid "You are not authorized to access this page."
|
272 |
msgstr ""
|
@@ -295,6 +300,10 @@ msgstr ""
|
|
295 |
msgid "Tags"
|
296 |
msgstr ""
|
297 |
|
|
|
|
|
|
|
|
|
298 |
#: includes/import/admin-help.php:18
|
299 |
msgid ""
|
300 |
"Snippets are similar to plugins - they both extend and expand the "
|
@@ -339,7 +348,11 @@ msgstr ""
|
|
339 |
msgid ""
|
340 |
"Successfully imported <strong>%d</strong> snippet. <a href=\"%s\">Have fun!</"
|
341 |
"a>"
|
342 |
-
|
|
|
|
|
|
|
|
|
343 |
|
344 |
#: includes/import/admin-messages.php:30
|
345 |
msgid "An error occurred when processing the import file."
|
@@ -485,7 +498,7 @@ msgstr ""
|
|
485 |
msgid "Selected snippets <strong>deleted</strong>."
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: includes/manage/admin.php:
|
489 |
msgid "Search Installed Snippets"
|
490 |
msgstr ""
|
491 |
|
@@ -543,32 +556,44 @@ msgstr ""
|
|
543 |
#: includes/manage/class-list-table.php:305
|
544 |
#, php-format
|
545 |
msgid "All <span class=\"count\">(%s)</span>"
|
546 |
-
|
|
|
|
|
547 |
|
548 |
#: includes/manage/class-list-table.php:308
|
549 |
#, php-format
|
550 |
msgid "Active <span class=\"count\">(%s)</span>"
|
551 |
-
|
|
|
|
|
552 |
|
553 |
#: includes/manage/class-list-table.php:311
|
554 |
#, php-format
|
555 |
msgid "Recently Active <span class=\"count\">(%s)</span>"
|
556 |
-
|
|
|
|
|
557 |
|
558 |
#: includes/manage/class-list-table.php:314
|
559 |
#, php-format
|
560 |
msgid "Inactive <span class=\"count\">(%s)</span>"
|
561 |
-
|
|
|
|
|
562 |
|
563 |
#: includes/manage/class-list-table.php:317
|
564 |
#, php-format
|
565 |
msgid "Admin <span class=\"count\">(%s)</span>"
|
566 |
-
|
|
|
|
|
567 |
|
568 |
#: includes/manage/class-list-table.php:320
|
569 |
#, php-format
|
570 |
msgid "Front End <span class=\"count\">(%s)</span>"
|
571 |
-
|
|
|
|
|
572 |
|
573 |
#: includes/manage/class-list-table.php:380
|
574 |
msgid "Show all tags"
|
@@ -589,21 +614,21 @@ msgid ""
|
|
589 |
"\">Add New→</a>"
|
590 |
msgstr ""
|
591 |
|
592 |
-
#: includes/manage/class-list-table.php:
|
593 |
msgid "Search results"
|
594 |
msgstr ""
|
595 |
|
596 |
-
#: includes/manage/class-list-table.php:
|
597 |
#, php-format
|
598 |
msgid " for “%s”"
|
599 |
msgstr ""
|
600 |
|
601 |
-
#: includes/manage/class-list-table.php:
|
602 |
#, php-format
|
603 |
msgid " in tag “%s”"
|
604 |
msgstr ""
|
605 |
|
606 |
-
#: includes/manage/class-list-table.php:
|
607 |
msgid "Clear Filters"
|
608 |
msgstr ""
|
609 |
|
@@ -615,99 +640,123 @@ msgstr ""
|
|
615 |
msgid "Settings"
|
616 |
msgstr ""
|
617 |
|
618 |
-
#: includes/settings/class-settings.php:
|
619 |
msgid "Activate by Default"
|
620 |
msgstr ""
|
621 |
|
622 |
-
#: includes/settings/class-settings.php:
|
623 |
msgid ""
|
624 |
"Make the 'Save and Activate' button the default action when saving a snippet."
|
625 |
msgstr ""
|
626 |
|
627 |
-
#: includes/settings/class-settings.php:
|
628 |
msgid "Enable Scope Selector"
|
629 |
msgstr ""
|
630 |
|
631 |
-
#: includes/settings/class-settings.php:
|
632 |
msgid "Enable the scope selector when editing a snippet"
|
633 |
msgstr ""
|
634 |
|
635 |
-
#: includes/settings/class-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
636 |
msgid "Theme"
|
637 |
msgstr ""
|
638 |
|
639 |
-
#: includes/settings/class-settings.php:
|
640 |
msgid "Indent With Tabs"
|
641 |
msgstr ""
|
642 |
|
643 |
-
#: includes/settings/class-settings.php:
|
644 |
msgid "Use hard tabs (not spaces) for indentation."
|
645 |
msgstr ""
|
646 |
|
647 |
-
#: includes/settings/class-settings.php:
|
648 |
msgid "Tab Size"
|
649 |
msgstr ""
|
650 |
|
651 |
-
#: includes/settings/class-settings.php:
|
652 |
msgid "The width of a tab character."
|
653 |
msgstr ""
|
654 |
|
655 |
-
#: includes/settings/class-settings.php:
|
656 |
msgid "Indent Unit"
|
657 |
msgstr ""
|
658 |
|
659 |
-
#: includes/settings/class-settings.php:
|
660 |
msgid "How many spaces a block should be indented."
|
661 |
msgstr ""
|
662 |
|
663 |
-
#: includes/settings/class-settings.php:
|
664 |
msgid "Wrap Lines"
|
665 |
msgstr ""
|
666 |
|
667 |
-
#: includes/settings/class-settings.php:
|
668 |
msgid "Whether the editor should scroll or wrap for long lines."
|
669 |
msgstr ""
|
670 |
|
671 |
-
#: includes/settings/class-settings.php:
|
672 |
msgid "Line Numbers"
|
673 |
msgstr ""
|
674 |
|
675 |
-
#: includes/settings/class-settings.php:
|
676 |
msgid "Show line numbers to the left of the editor."
|
677 |
msgstr ""
|
678 |
|
679 |
-
#: includes/settings/class-settings.php:
|
680 |
msgid "Auto Close Brackets"
|
681 |
msgstr ""
|
682 |
|
683 |
-
#: includes/settings/class-settings.php:
|
684 |
msgid "Auto-close brackets and quotes when typed."
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: includes/settings/class-settings.php:
|
688 |
msgid "Highlight Selection Matches"
|
689 |
msgstr ""
|
690 |
|
691 |
-
#: includes/settings/class-settings.php:
|
692 |
msgid "Highlight all instances of a currently selected word."
|
693 |
msgstr ""
|
694 |
|
695 |
-
#: includes/settings/settings.php:
|
696 |
msgid "General"
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: includes/settings/settings.php:
|
700 |
msgid "Description Editor"
|
701 |
msgstr ""
|
702 |
|
703 |
-
#: includes/settings/settings.php:
|
704 |
msgid "Code Editor"
|
705 |
msgstr ""
|
706 |
|
707 |
-
#: includes/settings/settings.php:
|
708 |
msgid "Editor Preview"
|
709 |
msgstr ""
|
710 |
|
711 |
-
#: includes/settings/settings.php:
|
712 |
msgid "Settings saved."
|
713 |
msgstr ""
|
6 |
#, fuzzy
|
7 |
msgid ""
|
8 |
msgstr ""
|
9 |
+
"Project-Id-Version: code-snippets 2.3.0\n"
|
10 |
"Report-Msgid-Bugs-To: \n"
|
11 |
+
"POT-Creation-Date: 2015-05-20 15:56+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"
|
16 |
"MIME-Version: 1.0\n"
|
17 |
"Content-Type: text/plain; charset=CHARSET\n"
|
18 |
"Content-Transfer-Encoding: 8bit\n"
|
19 |
+
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
20 |
|
21 |
#: includes/admin.php:81 includes/manage/admin.php:21
|
22 |
#: includes/manage/manage.php:22 includes/manage/manage.php:23
|
227 |
msgid "Edit Snippet"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: includes/edit/admin.php:29 includes/manage/admin.php:24
|
231 |
+
msgctxt "snippet"
|
232 |
msgid "Add New"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: includes/edit/admin.php:32 includes/edit/edit.php:34
|
236 |
msgid "Add New Snippet"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: includes/edit/admin.php:49 includes/edit/admin.php:50
|
240 |
msgid "Name (short title)"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: includes/edit/admin.php:55
|
244 |
msgid "Code"
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: includes/edit/admin.php:75 includes/edit/admin.php:89
|
248 |
msgid "Save Changes and Activate"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: includes/edit/admin.php:95
|
252 |
msgid "Save Changes and Deactivate"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: includes/edit/admin.php:105 includes/manage/class-list-table.php:141
|
256 |
#: includes/manage/class-list-table.php:266
|
257 |
msgid "Export"
|
258 |
msgstr ""
|
259 |
|
260 |
+
#: includes/edit/admin.php:112
|
261 |
msgid ""
|
262 |
"You are about to permanently delete this snippet.\n"
|
263 |
"'Cancel' to stop, 'OK' to delete."
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: includes/edit/admin.php:117 includes/manage/class-list-table.php:150
|
267 |
#: includes/manage/class-list-table.php:267
|
268 |
msgid "Delete"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: includes/edit/edit.php:35
|
272 |
+
msgid "Add New"
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
#: includes/edit/edit.php:83 includes/manage/manage.php:67
|
276 |
msgid "You are not authorized to access this page."
|
277 |
msgstr ""
|
300 |
msgid "Tags"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: includes/edit/edit.php:235
|
304 |
+
msgid "Enter a list of tags; separated by commas"
|
305 |
+
msgstr ""
|
306 |
+
|
307 |
#: includes/import/admin-help.php:18
|
308 |
msgid ""
|
309 |
"Snippets are similar to plugins - they both extend and expand the "
|
348 |
msgid ""
|
349 |
"Successfully imported <strong>%d</strong> snippet. <a href=\"%s\">Have fun!</"
|
350 |
"a>"
|
351 |
+
msgid_plural ""
|
352 |
+
"Successfully imported <strong>%d</strong> snippets. <a href=\"%s\">Have fun!"
|
353 |
+
"</a>"
|
354 |
+
msgstr[0] ""
|
355 |
+
msgstr[1] ""
|
356 |
|
357 |
#: includes/import/admin-messages.php:30
|
358 |
msgid "An error occurred when processing the import file."
|
498 |
msgid "Selected snippets <strong>deleted</strong>."
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: includes/manage/admin.php:36
|
502 |
msgid "Search Installed Snippets"
|
503 |
msgstr ""
|
504 |
|
556 |
#: includes/manage/class-list-table.php:305
|
557 |
#, php-format
|
558 |
msgid "All <span class=\"count\">(%s)</span>"
|
559 |
+
msgid_plural "All <span class=\"count\">(%s)</span>"
|
560 |
+
msgstr[0] ""
|
561 |
+
msgstr[1] ""
|
562 |
|
563 |
#: includes/manage/class-list-table.php:308
|
564 |
#, php-format
|
565 |
msgid "Active <span class=\"count\">(%s)</span>"
|
566 |
+
msgid_plural "Active <span class=\"count\">(%s)</span>"
|
567 |
+
msgstr[0] ""
|
568 |
+
msgstr[1] ""
|
569 |
|
570 |
#: includes/manage/class-list-table.php:311
|
571 |
#, php-format
|
572 |
msgid "Recently Active <span class=\"count\">(%s)</span>"
|
573 |
+
msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
|
574 |
+
msgstr[0] ""
|
575 |
+
msgstr[1] ""
|
576 |
|
577 |
#: includes/manage/class-list-table.php:314
|
578 |
#, php-format
|
579 |
msgid "Inactive <span class=\"count\">(%s)</span>"
|
580 |
+
msgid_plural "Inactive <span class=\"count\">(%s)</span>"
|
581 |
+
msgstr[0] ""
|
582 |
+
msgstr[1] ""
|
583 |
|
584 |
#: includes/manage/class-list-table.php:317
|
585 |
#, php-format
|
586 |
msgid "Admin <span class=\"count\">(%s)</span>"
|
587 |
+
msgid_plural "Admin <span class=\"count\">(%s)</span>"
|
588 |
+
msgstr[0] ""
|
589 |
+
msgstr[1] ""
|
590 |
|
591 |
#: includes/manage/class-list-table.php:320
|
592 |
#, php-format
|
593 |
msgid "Front End <span class=\"count\">(%s)</span>"
|
594 |
+
msgid_plural "Front End <span class=\"count\">(%s)</span>"
|
595 |
+
msgstr[0] ""
|
596 |
+
msgstr[1] ""
|
597 |
|
598 |
#: includes/manage/class-list-table.php:380
|
599 |
msgid "Show all tags"
|
614 |
"\">Add New→</a>"
|
615 |
msgstr ""
|
616 |
|
617 |
+
#: includes/manage/class-list-table.php:783
|
618 |
msgid "Search results"
|
619 |
msgstr ""
|
620 |
|
621 |
+
#: includes/manage/class-list-table.php:786
|
622 |
#, php-format
|
623 |
msgid " for “%s”"
|
624 |
msgstr ""
|
625 |
|
626 |
+
#: includes/manage/class-list-table.php:790
|
627 |
#, php-format
|
628 |
msgid " in tag “%s”"
|
629 |
msgstr ""
|
630 |
|
631 |
+
#: includes/manage/class-list-table.php:796
|
632 |
msgid "Clear Filters"
|
633 |
msgstr ""
|
634 |
|
640 |
msgid "Settings"
|
641 |
msgstr ""
|
642 |
|
643 |
+
#: includes/settings/class-settings.php:51
|
644 |
msgid "Activate by Default"
|
645 |
msgstr ""
|
646 |
|
647 |
+
#: includes/settings/class-settings.php:53
|
648 |
msgid ""
|
649 |
"Make the 'Save and Activate' button the default action when saving a snippet."
|
650 |
msgstr ""
|
651 |
|
652 |
+
#: includes/settings/class-settings.php:59
|
653 |
msgid "Enable Scope Selector"
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: includes/settings/class-settings.php:61
|
657 |
msgid "Enable the scope selector when editing a snippet"
|
658 |
msgstr ""
|
659 |
|
660 |
+
#: includes/settings/class-settings.php:71
|
661 |
+
msgid "Row Height"
|
662 |
+
msgstr ""
|
663 |
+
|
664 |
+
#: includes/settings/class-settings.php:73
|
665 |
+
msgid "rows"
|
666 |
+
msgstr ""
|
667 |
+
|
668 |
+
#: includes/settings/class-settings.php:80
|
669 |
+
msgid "Use Full Editor"
|
670 |
+
msgstr ""
|
671 |
+
|
672 |
+
#: includes/settings/class-settings.php:82
|
673 |
+
msgid "Enable all features of the visual editor"
|
674 |
+
msgstr ""
|
675 |
+
|
676 |
+
#: includes/settings/class-settings.php:88
|
677 |
+
msgid "Media Buttons"
|
678 |
+
msgstr ""
|
679 |
+
|
680 |
+
#: includes/settings/class-settings.php:90
|
681 |
+
msgid "Enable the add media buttons"
|
682 |
+
msgstr ""
|
683 |
+
|
684 |
+
#: includes/settings/class-settings.php:100
|
685 |
msgid "Theme"
|
686 |
msgstr ""
|
687 |
|
688 |
+
#: includes/settings/class-settings.php:108
|
689 |
msgid "Indent With Tabs"
|
690 |
msgstr ""
|
691 |
|
692 |
+
#: includes/settings/class-settings.php:110
|
693 |
msgid "Use hard tabs (not spaces) for indentation."
|
694 |
msgstr ""
|
695 |
|
696 |
+
#: includes/settings/class-settings.php:117
|
697 |
msgid "Tab Size"
|
698 |
msgstr ""
|
699 |
|
700 |
+
#: includes/settings/class-settings.php:119
|
701 |
msgid "The width of a tab character."
|
702 |
msgstr ""
|
703 |
|
704 |
+
#: includes/settings/class-settings.php:127
|
705 |
msgid "Indent Unit"
|
706 |
msgstr ""
|
707 |
|
708 |
+
#: includes/settings/class-settings.php:129
|
709 |
msgid "How many spaces a block should be indented."
|
710 |
msgstr ""
|
711 |
|
712 |
+
#: includes/settings/class-settings.php:137
|
713 |
msgid "Wrap Lines"
|
714 |
msgstr ""
|
715 |
|
716 |
+
#: includes/settings/class-settings.php:139
|
717 |
msgid "Whether the editor should scroll or wrap for long lines."
|
718 |
msgstr ""
|
719 |
|
720 |
+
#: includes/settings/class-settings.php:146
|
721 |
msgid "Line Numbers"
|
722 |
msgstr ""
|
723 |
|
724 |
+
#: includes/settings/class-settings.php:148
|
725 |
msgid "Show line numbers to the left of the editor."
|
726 |
msgstr ""
|
727 |
|
728 |
+
#: includes/settings/class-settings.php:155
|
729 |
msgid "Auto Close Brackets"
|
730 |
msgstr ""
|
731 |
|
732 |
+
#: includes/settings/class-settings.php:157
|
733 |
msgid "Auto-close brackets and quotes when typed."
|
734 |
msgstr ""
|
735 |
|
736 |
+
#: includes/settings/class-settings.php:164
|
737 |
msgid "Highlight Selection Matches"
|
738 |
msgstr ""
|
739 |
|
740 |
+
#: includes/settings/class-settings.php:165
|
741 |
msgid "Highlight all instances of a currently selected word."
|
742 |
msgstr ""
|
743 |
|
744 |
+
#: includes/settings/settings.php:84
|
745 |
msgid "General"
|
746 |
msgstr ""
|
747 |
|
748 |
+
#: includes/settings/settings.php:85
|
749 |
msgid "Description Editor"
|
750 |
msgstr ""
|
751 |
|
752 |
+
#: includes/settings/settings.php:86
|
753 |
msgid "Code Editor"
|
754 |
msgstr ""
|
755 |
|
756 |
+
#: includes/settings/settings.php:134
|
757 |
msgid "Editor Preview"
|
758 |
msgstr ""
|
759 |
|
760 |
+
#: includes/settings/settings.php:180
|
761 |
msgid "Settings saved."
|
762 |
msgstr ""
|
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-2015 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 |
|
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.3
|
6 |
Tested up to: 4.2.2
|
7 |
-
Stable tag: 2.
|
8 |
License: MIT
|
9 |
License URI: license.txt
|
10 |
|
@@ -116,6 +116,21 @@ That's fantastic! Fork the [repository on GitHub](http://github.com/sheabunge/co
|
|
116 |
|
117 |
== Changelog ==
|
118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
= 2.2.2 =
|
120 |
* Polyfilled array_replace_recursive() function for PHP 5.2
|
121 |
* Updated references to old plugin site
|
@@ -332,6 +347,12 @@ __Fixed__
|
|
332 |
|
333 |
== Upgrade Notice ==
|
334 |
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
= 2.2.2 =
|
336 |
Fix error with PHP 5.2 added statuses for scopes to manage snippets table
|
337 |
|
4 |
Tags: code-snippets, snippets, code, php, network, multisite
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.2.2
|
7 |
+
Stable tag: 2.3.0
|
8 |
License: MIT
|
9 |
License URI: license.txt
|
10 |
|
116 |
|
117 |
== Changelog ==
|
118 |
|
119 |
+
= 2.3.0 =
|
120 |
+
* Removed nested functions
|
121 |
+
* Added icons for admin and front-end snippets to manage table
|
122 |
+
* Improved settings retrieval by caching settings
|
123 |
+
* Updated Russian translation by [Alexey Chumakov](http://chumakov.ru/)
|
124 |
+
* Added filter switch to prevent a snippet from executing ([#25](https://github.com/sheabunge/code-snippets/issues/25))
|
125 |
+
* Fixed errors in string translation
|
126 |
+
* Fixed bug in import process ([#32](https://github.com/sheabunge/code-snippets/issues/32))
|
127 |
+
|
128 |
+
= 2.2.3 =
|
129 |
+
* Fixed broken call to `export_snippet()` function
|
130 |
+
* Added support for importing and exporting snippet scope
|
131 |
+
* Fixed duplicate primary key database error
|
132 |
+
* Improved database table structure
|
133 |
+
|
134 |
= 2.2.2 =
|
135 |
* Polyfilled array_replace_recursive() function for PHP 5.2
|
136 |
* Updated references to old plugin site
|
347 |
|
348 |
== Upgrade Notice ==
|
349 |
|
350 |
+
= 2.3.0 =
|
351 |
+
Numerious fixes and Russian translation update. Props to @signo and @`achumakov.
|
352 |
+
|
353 |
+
= 2.2.3 =
|
354 |
+
Fixed error when exporting; snippet scopes can now be imported
|
355 |
+
|
356 |
= 2.2.2 =
|
357 |
Fix error with PHP 5.2 added statuses for scopes to manage snippets table
|
358 |
|