Simple Page Ordering - Version 2.2.1

Version Description

  • Bring back translations / text domain (yikes!)
  • Add Brazilian translation
  • Props to "felds"
Download this release

Release Info

Developer jakemgold
Plugin Icon 128x128 Simple Page Ordering
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2 to 2.2.1

localization/simple-page-ordering-pt_BR.mo ADDED
Binary file
localization/simple-page-ordering-pt_BR.po ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2011 Simple Page Ordering
2
+ # This file is distributed under the same license as the Simple Page Ordering package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Simple Page Ordering 1.0\n"
6
+ "Report-Msgid-Bugs-To: \n"
7
+ "POT-Creation-Date: 2014-05-29 16:39-0300\n"
8
+ "PO-Revision-Date: 2014-05-29 16:41-0300\n"
9
+ "Last-Translator: Felds Liscia <dev@felds.com.br>\n"
10
+ "Language-Team: 10up <jake@get10up.com>\n"
11
+ "Language: pt_BR\n"
12
+ "MIME-Version: 1.0\n"
13
+ "Content-Type: text/plain; charset=UTF-8\n"
14
+ "Content-Transfer-Encoding: 8bit\n"
15
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
16
+ "X-Generator: Poedit 1.6.5\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+ "X-Poedit-Basepath: ../\n"
19
+ "X-Poedit-KeywordsList: __;Description:\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+
22
+ #: simple-page-ordering.php:98
23
+ msgid ""
24
+ "To reposition an item, simply drag and drop the row by \"clicking and holding"
25
+ "\" it anywhere (outside of the links and form controls) and moving it to its "
26
+ "new position."
27
+ msgstr ""
28
+ "Para alterar a posição de um elemento, simplesmente clique e segure em "
29
+ "qualquer área fora dos links e outros controles, arraste e solte o conteúdo "
30
+ "para sua nova posição."
31
+
32
+ #: simple-page-ordering.php:278
33
+ msgid "Sort by Order"
34
+ msgstr "Organizar por ordem"
35
+
36
+ #: simple-page-ordering.php:302
37
+ msgid ""
38
+ "Order your pages and hierarchical post types using drag and drop on the "
39
+ "built in page list. For further instructions, open the \"Help\" tab on the "
40
+ "Pages screen."
41
+ msgstr ""
42
+ "Ordene suas páginas e outros tipos de conteúdos hierárquicos usando arrastar-"
43
+ "e-soltar na listagem de conteúdos. Para mais instruções, veja a Ajuda, no "
44
+ "topo da lista de Páginas."
45
+
46
+ #~ msgid "is a plug-in by"
47
+ #~ msgstr "é um plug-in de"
48
+
49
+ #~ msgid ""
50
+ #~ "that allows you to order pages and other hierarchical post types with "
51
+ #~ "drag and drop."
52
+ #~ msgstr ""
53
+ #~ "que permite ordenar páginas e outros conteúdos hierárquicos com arrastar-"
54
+ #~ "e-soltar."
55
+
56
+ #~ msgid ""
57
+ #~ "If you have a large number of pages, it may be helpful to adjust the "
58
+ #~ "items shown per page by opening the Screen Options tab."
59
+ #~ msgstr ""
60
+ #~ "Se você tem um grande número de conteúdos, pode ser útil ajustar o número "
61
+ #~ "de itens exibidos por página, abrindo o painel Opções de Tela."
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: jakemgold, 10up, thinkoomph
3
  Donate link: http://10up.com/plugins/simple-page-ordering-wordpress/
4
  Tags: order, re-order, ordering, pages, page, manage, menu_order, hierarchical, ajax, drag-and-drop, admin
5
  Requires at least: 3.8
6
- Tested up to: 3.9
7
- Stable tag: 2.2
8
 
9
  Order your pages and other hierarchical post types with simple drag and drop right from the standard page list.
10
 
@@ -77,6 +77,11 @@ This feature is already built into WordPress natively, but a bit tucked away. If
77
 
78
  == Changelog ==
79
 
 
 
 
 
 
80
  = 2.2 =
81
  * Updated look and feel to better match WordPress 3.8 admin redesign
82
  * Improved awareness of and compatibility with Quick Edit (inline editor)
@@ -138,4 +143,4 @@ This feature is already built into WordPress natively, but a bit tucked away. If
138
 
139
  = 0.8.2 =
140
  * Simplified code - consolidated hooks
141
- * Updated version requirements
3
  Donate link: http://10up.com/plugins/simple-page-ordering-wordpress/
4
  Tags: order, re-order, ordering, pages, page, manage, menu_order, hierarchical, ajax, drag-and-drop, admin
5
  Requires at least: 3.8
6
+ Tested up to: 3.9.1
7
+ Stable tag: 2.2.1
8
 
9
  Order your pages and other hierarchical post types with simple drag and drop right from the standard page list.
10
 
77
 
78
  == Changelog ==
79
 
80
+ = 2.2.1 =
81
+ * Bring back translations / text domain (yikes!)
82
+ * Add Brazilian translation
83
+ * Props to "felds"
84
+
85
  = 2.2 =
86
  * Updated look and feel to better match WordPress 3.8 admin redesign
87
  * Improved awareness of and compatibility with Quick Edit (inline editor)
143
 
144
  = 0.8.2 =
145
  * Simplified code - consolidated hooks
146
+ * Updated version requirements
simple-page-ordering.css CHANGED
File without changes
simple-page-ordering.dev.js CHANGED
File without changes
simple-page-ordering.js CHANGED
File without changes
simple-page-ordering.php CHANGED
@@ -1,13 +1,15 @@
1
  <?php
2
- /**
3
  Plugin Name: Simple Page Ordering
4
  Plugin URI: http://10up.com/plugins/simple-page-ordering-wordpress/
5
  Description: Order your pages and hierarchical post types using drag and drop on the built in page list. For further instructions, open the "Help" tab on the Pages screen.
6
- Version: 2.2
7
  Author: Jake Goldman, 10up
8
  Author URI: http://10up.com
9
  License: GPLv2 or later
10
- */
 
 
11
 
12
  if ( ! class_exists( 'Simple_Page_Ordering' ) ) :
13
 
@@ -41,6 +43,14 @@ class Simple_Page_Ordering {
41
  public static function _add_actions() {
42
  add_action( 'load-edit.php', array( __CLASS__, 'load_edit_screen' ) );
43
  add_action( 'wp_ajax_simple_page_ordering', array( __CLASS__, 'ajax_simple_page_ordering' ) );
 
 
 
 
 
 
 
 
44
  }
45
 
46
  /**
@@ -265,7 +275,8 @@ class Simple_Page_Ordering {
265
  $class = ( get_query_var('orderby') == 'menu_order title' ) ? 'current' : '';
266
  $query_string = remove_query_arg(array( 'orderby', 'order' ));
267
  $query_string = add_query_arg( 'orderby', urlencode('menu_order title'), $query_string );
268
- $views['byorder'] = '<a href="'. $query_string . '" class="' . $class . '">Sort by Order</a>';
 
269
  return $views;
270
  }
271
 
@@ -284,4 +295,10 @@ class Simple_Page_Ordering {
284
 
285
  Simple_Page_Ordering::get_instance();
286
 
287
- endif;
 
 
 
 
 
 
1
  <?php
2
+ /*
3
  Plugin Name: Simple Page Ordering
4
  Plugin URI: http://10up.com/plugins/simple-page-ordering-wordpress/
5
  Description: Order your pages and hierarchical post types using drag and drop on the built in page list. For further instructions, open the "Help" tab on the Pages screen.
6
+ Version: 2.2.1
7
  Author: Jake Goldman, 10up
8
  Author URI: http://10up.com
9
  License: GPLv2 or later
10
+ Text Domain: simple-page-ordering
11
+ Domain Path: /localization/
12
+ */
13
 
14
  if ( ! class_exists( 'Simple_Page_Ordering' ) ) :
15
 
43
  public static function _add_actions() {
44
  add_action( 'load-edit.php', array( __CLASS__, 'load_edit_screen' ) );
45
  add_action( 'wp_ajax_simple_page_ordering', array( __CLASS__, 'ajax_simple_page_ordering' ) );
46
+ add_action( 'plugins_loaded', array( __CLASS__, 'load_textdomain' ) );
47
+ }
48
+
49
+ /**
50
+ * Loads the plugin textdomain
51
+ */
52
+ public static function load_textdomain() {
53
+ load_plugin_textdomain( 'simple-page-ordering', false, dirname( plugin_basename( __FILE__ ) ) . '/localization/' );
54
  }
55
 
56
  /**
275
  $class = ( get_query_var('orderby') == 'menu_order title' ) ? 'current' : '';
276
  $query_string = remove_query_arg(array( 'orderby', 'order' ));
277
  $query_string = add_query_arg( 'orderby', urlencode('menu_order title'), $query_string );
278
+ $views['byorder'] = sprintf('<a href="%s" class="%s">%s</a>', $query_string, $class, __("Sort by Order", 'simple-page-ordering'));
279
+
280
  return $views;
281
  }
282
 
295
 
296
  Simple_Page_Ordering::get_instance();
297
 
298
+ endif;
299
+
300
+ // dummy, to be used by poedit
301
+ if (false) {
302
+ // Plugin description
303
+ __('Order your pages and hierarchical post types using drag and drop on the built in page list. For further instructions, open the "Help" tab on the Pages screen.', 'simple-page-ordering');
304
+ }