Skip to content

Commit

Permalink
Langs and POT file
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Nov 26, 2015
1 parent f3f577f commit 804a7ec
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 239 deletions.
Binary file removed languages/wp-post-series-pt_BR.mo
Binary file not shown.
115 changes: 0 additions & 115 deletions languages/wp-post-series-pt_BR.po

This file was deleted.

Binary file removed languages/wp-post-series-sv_SE.mo
Binary file not shown.
115 changes: 0 additions & 115 deletions languages/wp-post-series-sv_SE.po

This file was deleted.

88 changes: 88 additions & 0 deletions languages/wp-post-series.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Copyright (C) 2015 WP Post Series
# This file is distributed under the same license as the WP Post Series package.
msgid ""
msgstr ""
"Project-Id-Version: WP Post Series 1.0.2\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-post-series\n"
"POT-Creation-Date: 2015-11-26 16:25:03+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"

#: templates/series-box.php:9
msgid "This is post #%d of %d in the series <em>&ldquo;%s&rdquo;</em>"
msgstr ""

#: wp-post-series.php:57 wp-post-series.php:58
msgid "Post series"
msgstr ""

#: wp-post-series.php:66 wp-post-series.php:160
msgid "Series"
msgstr ""

#: wp-post-series.php:69
msgid "Search %s"
msgstr ""

#: wp-post-series.php:70
msgid "All %s"
msgstr ""

#: wp-post-series.php:71
msgid "%s"
msgstr ""

#: wp-post-series.php:72
msgid "%s:"
msgstr ""

#: wp-post-series.php:73
msgid "Edit %s"
msgstr ""

#: wp-post-series.php:74
msgid "Update %s"
msgstr ""

#: wp-post-series.php:75
msgid "Add New %s"
msgstr ""

#: wp-post-series.php:76
msgid "New %s Name"
msgstr ""

#: wp-post-series.php:180
msgid "N/A"
msgstr ""

#: wp-post-series.php:203
msgid "Show all series"
msgstr ""

#. Plugin Name of the plugin/theme
msgid "WP Post Series"
msgstr ""

#. Plugin URI of the plugin/theme
msgid "https://github.com/mikejolley/wp-post-series"
msgstr ""

#. Description of the plugin/theme
msgid ""
"Lets you setup a simple series of posts using taxonomies. Posts within a "
"series will show an information box above the content automatically with "
"links to other posts in the series and a description."
msgstr ""

#. Author of the plugin/theme
msgid "Mike Jolley"
msgstr ""

#. Author URI of the plugin/theme
msgid "http://mikejolley.com"
msgstr ""
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: mikejolley
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&currency_code=&amount=&return=&item_name=Buy+me+a+coffee+for+WP+Post+Series
Tags: series, posts, post series, post
Requires at least: 3.8
Tested up to: 4.0
Stable tag: 1.0.1
Tested up to: 4.4
Stable tag: 1.0.2

Setup a series of posts using a new taxonomy. Posts within a series will show an info box above the content with links to other posts in the series.

Expand Down Expand Up @@ -52,6 +52,10 @@ The manual installation method involves downloading the plugin and uploading it

== Changelog ==

= 1.0.2 =
* Removed bundled language files.
* Added POT file.

= 1.0.1 =
* Added CSS Class for Series.
* Fix taxonomy class name.
Expand Down
15 changes: 8 additions & 7 deletions wp-post-series.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* Plugin Name: WP Post Series
* Plugin URI: https://github.com/mikejolley/wp-post-series
* Description: Lets you setup a simple series of posts using taxonomies. Posts within a series will show an information box above the content automatically with links to other posts in the series and a description.
* Version: 1.0.1
* Version: 1.0.2
* Author: Mike Jolley
* Author URI: http://mikejolley.com
* Requires at least: 3.8
* Tested up to: 4.0
* Tested up to: 4.4
*
* Text Domain: wp-post-series
* Domain Path: /languages/
Expand All @@ -22,7 +22,7 @@ class WP_Post_Series {
*/
public function __construct() {
// Define constants
define( 'WP_POST_SERIES_VERSION', '1.0.1' );
define( 'WP_POST_SERIES_VERSION', '1.0.2' );
define( 'WP_POST_SERIES_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'WP_POST_SERIES_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );

Expand Down Expand Up @@ -295,9 +295,9 @@ public function add_series_to_content( $content ) {
* @param string $default_path (default: '')
*/
public function get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
if ( $args && is_array($args) )
if ( $args && is_array( $args ) ) {
extract( $args );

}
include( $this->locate_template( $template_name, $template_path, $default_path ) );
}

Expand Down Expand Up @@ -332,8 +332,9 @@ public function locate_template( $template_name, $template_path = '', $default_p
);

// Get default template
if ( ! $template )
if ( ! $template ) {
$template = $default_path . $template_name;
}

// Return what we found
return apply_filters( 'wp_post_series_locate_template', $template, $template_name, $template_path );
Expand All @@ -351,4 +352,4 @@ public function frontend_scripts() {
}
}

new WP_Post_Series();
new WP_Post_Series();

0 comments on commit 804a7ec

Please sign in to comment.