Post Snippets - Version 1.7.2

Version Description

Download this release

Release Info

Developer artstorm
Plugin Icon 128x128 Post Snippets
Version 1.7.2
Comparing to
See all releases

Code changes from version 1.7.1 to 1.7.2

languages/post-snippets-es_ES.mo ADDED
Binary file
languages/post-snippets-es_ES.po ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Post Snippets v1.7\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
5
+ "POT-Creation-Date: 2009-03-24 09:38+0000\n"
6
+ "PO-Revision-Date: 2011-02-25 23:17-0400\n"
7
+ "Last-Translator: Melvis Leon <me_leon@hotmail.com>\n"
8
+ "Language-Team: MLL Designs <me_leon@hotmail.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Spanish\n"
14
+ "X-Poedit-Country: SPAIN\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: ../\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ # @ post-snippets
22
+ #: post-snippets.php:70
23
+ msgid "Post Snippets requires WordPress version 2.7 or later!"
24
+ msgstr "Post Snippets requiere WordPress versi&oacute;n 2.7 o posterior!"
25
+
26
+ # @ post-snippets
27
+ #: post-snippets.php:179
28
+ msgid "A snippet named Untitled has been added."
29
+ msgstr "Un Snippet llamado Sin t&iacute;tulo ha sido agregado."
30
+
31
+ # @ post-snippets
32
+ #: post-snippets.php:192
33
+ msgid "Snippets have been updated."
34
+ msgstr "Los Snippets han sido actualizados."
35
+
36
+ # @ post-snippets
37
+ #: post-snippets.php:208
38
+ msgid "Selected snippets have been deleted."
39
+ msgstr "Los snippets han sido eliminados."
40
+
41
+ # @ post-snippets
42
+ #: post-snippets.php:220
43
+ msgid "Add New Snippet"
44
+ msgstr "Agregar nuevo Snippet"
45
+
46
+ # @ post-snippets
47
+ #: post-snippets.php:221
48
+ msgid "Delete Selected"
49
+ msgstr "Eliminar seleccionados"
50
+
51
+ # @ post-snippets
52
+ #: post-snippets.php:230
53
+ #: post-snippets.php:239
54
+ msgid "Title"
55
+ msgstr "T&iacute;tulo"
56
+
57
+ # @ post-snippets
58
+ #: post-snippets.php:231
59
+ #: post-snippets.php:240
60
+ msgid "Variables"
61
+ msgstr "Variables"
62
+
63
+ # @ post-snippets
64
+ #: post-snippets.php:232
65
+ #: post-snippets.php:241
66
+ msgid "Snippet"
67
+ msgstr "Snippet"
68
+
69
+ # @ post-snippets
70
+ #: post-snippets.php:263
71
+ msgid "Update Snippets"
72
+ msgstr "Actualizar Snippets"
73
+
74
+ # @ post-snippets
75
+ #: post-snippets.php:268
76
+ msgid "Help"
77
+ msgstr "Ayuda"
78
+
79
+ # @ post-snippets
80
+ #: post-snippets.php:270
81
+ msgid "<strong>Title</strong><br/>Give the snippet a title that helps you identify it in the post editor."
82
+ msgstr "<strong>Titulo</strong><br/>Nombrar al snippet con un t&iacute;tulo que le ayude a identificarlo en el editor de entradas."
83
+
84
+ # @ post-snippets
85
+ #: post-snippets.php:272
86
+ msgid "<strong>Variables</strong><br/>A comma separated list of custom variables you can reference in your snippet.<br/><br/>Example:<br/>url,name"
87
+ msgstr "<strong>Variables</strong><br/>Puedes hacer referencia a una lista separada por comas de variables personalizadas en tu snippet.<br/><br/>Ejemplo:<br/>url, nombre"
88
+
89
+ # @ post-snippets
90
+ #: post-snippets.php:274
91
+ msgid "<strong>Snippet</strong><br/>This is the block of text or HTML to insert in the post when you select the snippet from the insert button in the TinyMCE panel in the post editor. If you have entered predefined variables you can reference them from the snippet by enclosing them in {} brackets.<br/><br/>Example:<br/>To reference the variables in the example above, you would enter {url} and {name}.<br/><br/>So if you enter this snippet:<br/><i>This is the website of &lt;a href=\"{url}\"&gt;{name}&lt;/a&gt;</i><br/>You will get the option to replace url and name on insert if they are defined as variables."
92
+ msgstr "<strong>Snippet</strong><br/>Este es el bloque de texto o HTML a insertar en la entrada al seleccionar el snippet del bot&oacute;n de insertar en el TinyMCE en el editor de entradas. Si ha introducido las variables predefinidas usted puede referenciarlas desde el snippet al encerrarlas entre llaves {}.<br/> Ejemplo: <br/>Para hacer referencia a las variables en el ejemplo anterior, debe escribir {url} y {nombre}.<br/>As&iacute; que si digitas este snippet: <br/> <i> Esta es la p&aacute;gina web de &lt;a href=\"{url}\"&gt;{nombre}&lt;/a&gt;</i><br/> </ i> <br/>Usted recibir&aacute; la opci&oacute;n de reemplazar url y el nombre cuando se inserta, si se definen como variables."
93
+
94
+ #: post-snippets.php:281
95
+ msgid "About Post Snippets"
96
+ msgstr "Acerca de Post Snippets"
97
+
98
+ # @ post-snippets
99
+ #: tinymce/window.php:9
100
+ msgid "You are not allowed to be here"
101
+ msgstr "No tiene permitido estar aqu&iacute;"
102
+
103
+ # @ post-snippets
104
+ #: tinymce/window.php:109
105
+ msgid "Cancel"
106
+ msgstr "Cancelar"
107
+
108
+ # @ post-snippets
109
+ #: tinymce/window.php:113
110
+ msgid "Insert"
111
+ msgstr "Insertar"
112
+
113
+ # @ post-snippets
114
+ #. Plugin Name of an extension
115
+ msgid "Post Snippets"
116
+ msgstr "Post Snippets"
117
+
118
+ #. Plugin URI of an extension
119
+ msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
120
+ msgstr "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
121
+
122
+ #. Description of an extension
123
+ msgid "Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button, Quicktags or Shortcodes."
124
+ msgstr "Almacena de snippets(fragmentos) de código HTML o texto recurrente para usarlo en tus entradas. Puedes utilizar las variables predefinidas para reemplazar partes del snippet(fragmento) en inserción. Todos los snippets(fragmentos) están disponibles en el editor de entradas con un botón de TinyMCE, Quicktags o Shortcodes."
125
+
126
+ #. Author of an extension
127
+ msgid "Johan Steen"
128
+ msgstr "Johan Steen"
129
+
130
+ #. Author URI of an extension
131
+ msgid "http://coding.cglounge.com/"
132
+ msgstr "http://coding.cglounge.com/"
133
+
post-snippets.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Post Snippets
4
  Plugin URI: http://wpstorm.net/wordpress-plugins/post-snippets/
5
  Description: Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button or Quicktags.
6
- Version: 1.7.1
7
  Author: Johan Steen
8
  Author URI: http://wpstorm.net/
9
  Text Domain: post-snippets
@@ -75,8 +75,8 @@ class post_snippets {
75
  add_action( 'admin_footer', array(&$this,'insert_ui_dialog') );
76
 
77
  # Add Editor QuickTag button
78
- add_action( 'edit_form_advanced', array(&$this,'add_quicktag_button'));
79
- add_action( 'edit_page_form', array(&$this,'add_quicktag_button'));
80
  }
81
 
82
 
@@ -127,7 +127,7 @@ class post_snippets {
127
  */
128
  function jquery_ui_dialog() {
129
  echo "\n<!-- START: Post Snippets jQuery UI and related functions -->\n";
130
- echo "<script>\n";
131
 
132
  # Prepare the snippets and shortcodes into javascript variables
133
  # so they can be inserted into the editor, and get the variables replaced
@@ -448,6 +448,7 @@ function edOpenPostSnippets(myField) {
448
 
449
 
450
  <?php
 
451
  echo <<<JAVASCRIPT
452
  function createShortcode(shortcodeTag, shortcodeAtts) {
453
  theSnippet = '[' + shortcodeTag;
@@ -480,6 +481,7 @@ echo <<<JAVASCRIPT
480
  //-->
481
  </script>
482
  JAVASCRIPT;
 
483
  }
484
  }
485
 
3
  Plugin Name: Post Snippets
4
  Plugin URI: http://wpstorm.net/wordpress-plugins/post-snippets/
5
  Description: Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button or Quicktags.
6
+ Version: 1.7.2
7
  Author: Johan Steen
8
  Author URI: http://wpstorm.net/
9
  Text Domain: post-snippets
75
  add_action( 'admin_footer', array(&$this,'insert_ui_dialog') );
76
 
77
  # Add Editor QuickTag button
78
+ add_action( 'edit_form_advanced', array(&$this,'add_quicktag_button') );
79
+ add_action( 'edit_page_form', array(&$this,'add_quicktag_button') );
80
  }
81
 
82
 
127
  */
128
  function jquery_ui_dialog() {
129
  echo "\n<!-- START: Post Snippets jQuery UI and related functions -->\n";
130
+ echo "<script type='text/javascript'>\n";
131
 
132
  # Prepare the snippets and shortcodes into javascript variables
133
  # so they can be inserted into the editor, and get the variables replaced
448
 
449
 
450
  <?php
451
+ /*
452
  echo <<<JAVASCRIPT
453
  function createShortcode(shortcodeTag, shortcodeAtts) {
454
  theSnippet = '[' + shortcodeTag;
481
  //-->
482
  </script>
483
  JAVASCRIPT;
484
+ */
485
  }
486
  }
487
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wpstorm.net/wordpress-plugins/post-snippets/#donation
4
  Tags: post, admin, snippet, html, custom, page, dynamic, editor, quicktag
5
  Requires at least: 3.0
6
  Tested up to: 3.1
7
- Stable tag: 1.7.1
8
 
9
  Store snippets of HTML code or reoccurring text that you often use in your posts. Custom variables can be used.
10
 
@@ -12,6 +12,10 @@ Store snippets of HTML code or reoccurring text that you often use in your posts
12
 
13
  This admin plugin stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button. The snippet can be inserted as defined, or as a shortcode to keep flexibility for updating the snippet.
14
 
 
 
 
 
15
  For complete usage instructions see: [Post Snippets](http://wpstorm.net/wordpress-plugins/post-snippets/ "Complete Usage Instructions for Post Snippets")
16
 
17
  See the [Changelog](http://wordpress.org/extend/plugins/post-snippets/changelog/) for what's new. Available [Translations](http://wpstorm.net/wordpress-plugins/post-snippets/#translations).
@@ -42,7 +46,7 @@ See the [Changelog](http://wordpress.org/extend/plugins/post-snippets/changelog/
42
 
43
  == Frequently Asked Questions ==
44
 
45
- Please visit [Post Snippets' Comments](http://wpstorm.net/wordpress-plugins/post-snippets/#comments) for questions and answers.
46
 
47
  == Screenshots ==
48
 
@@ -52,6 +56,10 @@ Please visit [Post Snippets' Comments](http://wpstorm.net/wordpress-plugins/post
52
 
53
  == Changelog ==
54
 
 
 
 
 
55
  = Version 1.7.1 - 26 Feb 2011 =
56
  * Added styling to the Tabs in the Quicktag jQuery dialog window to make them more "tab-like".
57
  * Added the possibility to use a description for each snippet to display for the user when opening the Quicktag jQuery dialog window. Snippets without description and variables, has a default information message.
4
  Tags: post, admin, snippet, html, custom, page, dynamic, editor, quicktag
5
  Requires at least: 3.0
6
  Tested up to: 3.1
7
+ Stable tag: 1.7.2
8
 
9
  Store snippets of HTML code or reoccurring text that you often use in your posts. Custom variables can be used.
10
 
12
 
13
  This admin plugin stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button. The snippet can be inserted as defined, or as a shortcode to keep flexibility for updating the snippet.
14
 
15
+ Related Links:
16
+
17
+ * [Support Forum](http://wordpress.org/tags/post-snippets?forum_id=10 "Use this for support and feature requests")
18
+
19
  For complete usage instructions see: [Post Snippets](http://wpstorm.net/wordpress-plugins/post-snippets/ "Complete Usage Instructions for Post Snippets")
20
 
21
  See the [Changelog](http://wordpress.org/extend/plugins/post-snippets/changelog/) for what's new. Available [Translations](http://wpstorm.net/wordpress-plugins/post-snippets/#translations).
46
 
47
  == Frequently Asked Questions ==
48
 
49
+ Please visit the [Support Forum](http://wordpress.org/tags/post-snippets?forum_id=10 "Use this for support and feature requests") for questions, answers, support and feature requests.
50
 
51
  == Screenshots ==
52
 
56
 
57
  == Changelog ==
58
 
59
+ = Version 1.7.2 - 28 Feb 2011 =
60
+ * Specified text/javascript for the UI dialog script.
61
+ * Updated the Spanish translation by [Melvis E. Leon Lopez](http://www.soludata.net/site/).
62
+
63
  = Version 1.7.1 - 26 Feb 2011 =
64
  * Added styling to the Tabs in the Quicktag jQuery dialog window to make them more "tab-like".
65
  * Added the possibility to use a description for each snippet to display for the user when opening the Quicktag jQuery dialog window. Snippets without description and variables, has a default information message.