Skip to content

Commit

Permalink
Fixed translation and localization issues
Browse files Browse the repository at this point in the history
Updated to version 1.9.4
Added new .pot file.
Tested and verified translation was working with Icelandic language
files
  • Loading branch information
ErinMorelli committed Sep 28, 2013
1 parent 02cc42a commit 2e44a4d
Show file tree
Hide file tree
Showing 6 changed files with 582 additions and 70 deletions.
44 changes: 32 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,28 @@
Manage your beers with WordPress. Integrates simply with Untappd beer checkins. Great for everyone from home brewers to professional breweries!


### Overview ####
## Overview ###

This plugin allows beer creators from home brewers to professional breweries to easily manage and display their beers. Includes a comprehensive beer management section with a variety of options, including:

* A custom beer "style" taxonomy for classifying your beers pre-populated with styles from BeerPal
* A customizable "group" taxonomy for categorizing and grouping your beers
* Shortcodes and template tags for displaying all or a select number of beers
* Custom meta boxes to store detailed information about each beer, including abv, ibu, and ingredients
* Custom meta boxes to store detailed information about each beer, including ABV, IBU, and ingredients
* Simple beer checkin integration with Untappd
* A "Beer List" widget for simply displaying your beers in sidebars
* A "Recent Check-Ins" widget for displaying recent beer check-ins for your brewery on Untappd
* Custom page display for beers and styles

#### Planned Features ####
### Planned Features ###

* Post/Page “Add Beer” page/post editor button to auto-generate shortcode input
* Add a [beer-group] shortcode & improve template tag usability
* Customization for “Beer Profile” input fields (e.g. allow users to remove “Additions/Spices” or add “OG”)
* Expand Untappd integration to include further brewery/beer options
* Add a ratings/review system (possibly as separate add-on)

#### Screenshots ####
### Screenshots ###

1. [The "Beer" management screen](https://raw.github.com/ErinMorelli/em-beer-manager/master/screenshot-1.jpg)
2. [Beer profile information](https://raw.github.com/ErinMorelli/em-beer-manager/master/screenshot-2.jpg)
Expand All @@ -41,11 +42,12 @@ This plugin allows beer creators from home brewers to professional breweries to
*****


### Latest Release ###
## Latest Release ##


#### [Version 1.9.3 - Minor Bug Fix](https://github.com/ErinMorelli/em-beer-manager/releases/tag/v1.9.3) ###
* Fixed bug with beer-list shortcode pagination not working on index pages
### [Version 1.9.4 - Minor Bug Fix](https://github.com/ErinMorelli/em-beer-manager/releases/tag/v1.9.4) ###
* Fixed localization and translation issues
* Updated .POT language file to latest version



Expand All @@ -61,33 +63,51 @@ This plugin allows beer creators from home brewers to professional breweries to

*****

### Usage ###
## Usage ##


Use these shortcodes to display beers in your posts or use the template tags in your theme files.


#### Single Beer Display ####
### Single Beer Display ###

This will display a single beer entry given it's ID number (found in "Beers" admin).

__Shortcode:__

`[beer id={beer id}]`

__Template tag:__

`<?php echo embm_beer_single( beer id (required), show_profile, show_extras ); ?>`

This will display a single beer entry given it's ID number (found in "Beers" admin). Optional attributes for both shortcode and template tag:

__Options:__

_For both shortcode & template tag_

* __show_profile=`"true/false"`__ (Default = `true`) // *Displays or hides the "Beer Profile" information*

* __show_extras=`"true/false"`__ (Default = `true`) // *Displays or hides the "More Information" section*


#### List All Beers ####
### List All Beers ###

This will display a formatted listing of all beers in the database.

__Shortcode:__

`[beer-list]`

__Template tag:__

`<?php echo embm_beer_list( exclude, show_profile, show_extras, style, group,`
`beers_per_page, paginate, orderby, order ); ?>`

This will display a formatted listing of all beers in the database. Optional attributes for both shortcode and template tag:
__Options:__

_For both shortcode & template tag_

* __exclude=`"beer ids"`__ (String separated by commas e.g. `"4,23,24"`) // *Hides listed beers from output*

Expand Down
36 changes: 30 additions & 6 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://erinmorelli.com/wordpress/
Tags: beer, beers, brewery, untappd
Requires at least: 3.0.1
Tested up to: 3.6.1
Stable tag: 1.9.3
Stable tag: 1.9.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -26,32 +26,48 @@ This plugin allows beer creators from home brewers to professional breweries to



### Usage ###
## Usage ##

Use these shortcodes to display beers in your posts or use the template tags in your theme files.


#### Single Beer Display ####
### Single Beer Display ###


__Shortcode:__

This will display a single beer entry given it's ID number (found in "Beers" admin).

`[beer id={beer id}]`

__Template tag:__

`<?php echo embm_beer_single( beer id (required), show_profile, show_extras ); ?>`

This will display a single beer entry given it's ID number (found in "Beers" admin). Optional attributes for both shortcode and template tag:
__Options:__

_For both shortcode & template tag_

* __show_profile=`"true/false"`__ (Default = `true`) // *Displays or hides the "Beer Profile" information*

* __show_extras=`"true/false"`__ (Default = `true`) // *Displays or hides the "More Information" section*


#### List All Beers ####
### List All Beers ###

This will display a formatted listing of all beers in the database.

__Shortcode:__

`[beer-list]`

__Template tag:__

`<?php echo embm_beer_list( exclude, show_profile, show_extras, style, group, beers_per_page, paginate, orderby, order ); ?>`

This will display a formatted listing of all beers in the database. Optional attributes for both shortcode and template tag:
__Options:__

_For both shortcode & template tag_

* __exclude=`"beer ids"`__ (String separated by commas e.g. `"4,23,24"`) // *Hides listed beers from output*

Expand All @@ -77,6 +93,7 @@ This will display a formatted listing of all beers in the database. Optional att
### Planned Features ###

* Post/Page “Add Beer” page/post editor button to auto-generate shortcode input
* Add a [beer-group] shortcode & improve template tag usability
* Customization for “Beer Profile” input fields (e.g. allow users to remove “Additions/Spices” or add “OG”)
* Expand Untappd integration to include further brewery/beer options
* Add a ratings/review system (possibly as separate add-on)
Expand Down Expand Up @@ -147,6 +164,10 @@ Try refreshing your permalinks by going to "Settings" -> "Permalinks" and clicki

== Changelog ==

= 1.9.4 =
* Fixed localization and translation issues
* Updated .POT language file to latest version

= 1.9.3 =
* Fixed bug with beer-list shortcode pagination not working on index pages

Expand Down Expand Up @@ -205,6 +226,9 @@ Try refreshing your permalinks by going to "Settings" -> "Permalinks" and clicki

== Upgrade Notice ==

= 1.9.4 =
Plugin localization and translation is now working properly

= 1.9.2 =
Fixed major issue with comments setting overriding site-wide comments

Expand Down
13 changes: 6 additions & 7 deletions em-beer-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: EM Beer Manager
* Plugin URI: http://erinmorelli.com/wordpress/em-beer-manager
* Description: Catalog and display your beers with WordPress. Integrates very simply with Untappd for individual beer checkins. Great for everyone from home brewers to professional breweries!
* Version: 1.9.3
* Version: 1.9.4
* Author: Erin Morelli
* Author URI: http://erinmorelli.com/
* License: GPLv2 or later
Expand Down Expand Up @@ -36,16 +36,18 @@ function embm_plugin_load(){


// Localization
$plugin_dir = EMBM_PLUGIN_DIR . 'languages';
load_plugin_textdomain( 'embm', WP_PLUGIN_DIR.'/'.$plugin_dir, $plugin_dir );
if ( !defined('PLUGINDIR') )
define( 'PLUGINDIR', 'wp-content/plugins' );

load_plugin_textdomain( 'embm', PLUGINDIR.'/em-beer-manager/languages', 'em-beer-manager/languages' );


// Activation setup
register_activation_hook(__FILE__, 'embm_plugin_activation');

function embm_plugin_activation() {
// Check for new version
$embm_curr_version = '1.9.3';
$embm_curr_version = '1.9.4';

if (!defined('EMBM_VERSION_KEY')) {
// Define new version option
Expand Down Expand Up @@ -178,9 +180,6 @@ function embm_plugin_action_links($links, $file) {
}

if ($file == $this_plugin) {
// The "page" query string value must be equal to the slug
// of the Settings admin page we defined earlier, which in
// this case equals "myplugin-settings".
$settings_link = '<a href="' . get_bloginfo('wpurl') . '/wp-admin/admin.php?page=embm-settings">';
$settings_link .= __('Settings', 'embm');
$settings_link .= '</a>';
Expand Down
Binary file added languages/embm-is_IS.mo
Binary file not shown.
Loading

0 comments on commit 2e44a4d

Please sign in to comment.