Plugin Directory

Changeset 1746561


Ignore:
Timestamp:
10/14/2017 09:36:22 PM (8 years ago)
Author:
ErinMorelli
Message:

Adding version 3.2.1 - quick bug fix

Location:
em-beer-manager
Files:
74 added
22 edited

Legend:

Unmodified
Added
Removed
  • em-beer-manager/trunk/README.txt

    r1746554 r1746561  
    55Requires at least: 3.0.1
    66Tested up to: 4.8.2
    7 Stable tag: 3.2.0
     7Stable tag: 3.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    340340== Changelog ==
    341341
     342= 3.2.1 =
     343* [FIXED] Issue introduced in version 3.2.0 that broke plugin localization
     344
    342345= 3.2.0 =
    343346* [DEPRECATED] Ended support for PHP <= 5.2, please upgrade your PHP
     
    493496== Upgrade Notice ==
    494497
     498= 3.2.1 =
     499Please back-up your database before upgrading! Fixed issue that broke plugin localization
     500
    495501= 3.2.0 =
    496502Please back-up your database before upgrading!
  • em-beer-manager/trunk/em-beer-manager.php

    r1746554 r1746561  
    44 * Plugin URI: https://www.erinmorelli.com/projects/em-beer-manager
    55 * Description: Manage and display your beers with WordPress. Integrates simply with Untappd and Untappd for Business. Great for everyone from home brewers to professional breweries!
    6  * Version: 3.2.0
     6 * Version: 3.2.1
    77 * Author: Erin Morelli
    88 * Author URI: https://www.erinmorelli.com/
     
    3636define('EMBM_PLUGIN_DIR', plugin_dir_path(__FILE__));
    3737define('EMBM_PLUGIN_URL', plugin_dir_url(__FILE__));
    38 define('EMBM_DOMAIN', 'embm');
    3938
    4039// WP general options
     
    9392
    9493    // Set current version
    95     $embm_curr_version = '3.2.0';
     94    $embm_curr_version = '3.2.1';
    9695
    9796    // Define version key name
     
    137136
    138137    // Plugin localization
    139     load_plugin_textdomain(EMBM_DOMAIN, false, plugin_basename(dirname(__FILE__)).'/languages');
     138    load_plugin_textdomain('embm', false, plugin_basename(dirname(__FILE__)).'/languages');
    140139}
    141140
     
    323322    $settings_link = '<a href="' . get_bloginfo('wpurl');
    324323    $settings_link .= '/wp-admin/admin.php?page=embm-settings">';
    325     $settings_link .= __('Settings', EMBM_DOMAIN) . '</a>';
     324    $settings_link .= __('Settings', 'embm') . '</a>';
    326325
    327326    // Add to to existing links array
     
    382381    echo '<div class="notice notice-error is-dismissible"><p>';
    383382    printf(
    384         __('%s only supports PHP version %s or higher. Please upgrade your PHP to use this plugin.', EMBM_DOMAIN),
    385         sprintf('<strong>%s</strong>', __('EM Beer Manager', EMBM_DOMAIN)),
     383        __('%s only supports PHP version %s or higher. Please upgrade your PHP to use this plugin.', 'embm'),
     384        sprintf('<strong>%s</strong>', __('EM Beer Manager', 'embm')),
    386385        '5.3'
    387386    );
     
    403402        'untappd'       => array(
    404403            'id'        => 'embm-untappd-integration',
    405             'title'     => __('Untappd Integration', EMBM_DOMAIN),
     404            'title'     => __('Untappd Integration', 'embm'),
    406405            'content'   => '<p>'.
    407                 __('Checking the "Disable site-wide integration" option under the EM Beer Manager "Untappd settings", will completely disable all Untappd functionality, including the Recent Check-ins widget, ratings, check-ins, check-in buttons, and any Untappd-related Labs features.', EMBM_DOMAIN).
     406                __('Checking the "Disable site-wide integration" option under the EM Beer Manager "Untappd settings", will completely disable all Untappd functionality, including the Recent Check-ins widget, ratings, check-ins, check-in buttons, and any Untappd-related Labs features.', 'embm').
    408407                '</p><p>'.
    409                 __('You can disable the Untappd check-in button for an individual beer by simply leaving the "Beer ID" setting empty. Beers that have an active check-in button will display a square Untappd icon next to their entry on the Beers admin page.', EMBM_DOMAIN).
     408                __('You can disable the Untappd check-in button for an individual beer by simply leaving the "Beer ID" setting empty. Beers that have an active check-in button will display a square Untappd icon next to their entry on the Beers admin page.', 'embm').
    410409                '</p><p>'.
    411                 __('You can display Untappd beer ratings and recent check-ins if you are logged in to Untappd. Ratings are shown in all beer views, including shortcodes. Check-ins are only displayed on single beer pages. This option can be disabled for specific beers. You can specify how many check-ins to show.', EMBM_DOMAIN).
     410                __('You can display Untappd beer ratings and recent check-ins if you are logged in to Untappd. Ratings are shown in all beer views, including shortcodes. Check-ins are only displayed on single beer pages. This option can be disabled for specific beers. You can specify how many check-ins to show.', 'embm').
    412411                '</p></p>'.
    413                 __('Data from Untappd for ratings and check-ins is refreshed automatically, or can be refreshed manually. We do not recommend doing this often as Untappd places a limit on how many API calls can be made per hour.', EMBM_DOMAIN).
     412                __('Data from Untappd for ratings and check-ins is refreshed automatically, or can be refreshed manually. We do not recommend doing this often as Untappd places a limit on how many API calls can be made per hour.', 'embm').
    414413                '</p>'
    415414        ),
    416415        'untappd_id'    => array(
    417416            'id'        => 'embm-untappd-beer-id',
    418             'title'     => __('Untappd Beer ID', EMBM_DOMAIN),
     417            'title'     => __('Untappd Beer ID', 'embm'),
    419418            'content'   => '<p>'.
    420                 __('Find your Untappd Beer ID by visiting your beer\'s official page. The URL will be formatted like this', EMBM_DOMAIN).
     419                __('Find your Untappd Beer ID by visiting your beer\'s official page. The URL will be formatted like this', 'embm').
    421420                ':</p><p><code>https://untappd.com/b/the-alchemist-heady-topper/<strong>4691</strong></code></p><p>'.
    422                 __('The string of numbers at the end of the URL is your beer\'s ID.', EMBM_DOMAIN).
     421                __('The string of numbers at the end of the URL is your beer\'s ID.', 'embm').
    423422                '</p>'
    424423        ),
    425424        'untappd_limit' => array (
    426425            'id'        => 'embm-untappd-api-ratelimit',
    427             'title'     => __('API Rate-Limit', EMBM_DOMAIN),
     426            'title'     => __('API Rate-Limit', 'embm'),
    428427            'content'   => '<p>'.
    429428                sprintf(
    430                     __('From the %s', EMBM_DOMAIN).':',
     429                    __('From the %s', 'embm').':',
    431430                    sprintf(
    432431                        '<a href="https://untappd.com/api/docs" target="_blank">%s</a>',
    433                         __('Untappd API documentation', EMBM_DOMAIN)
     432                        __('Untappd API documentation', 'embm')
    434433                    )
    435434                ).'</p><p><blockquote><em>"'.
    436                 __('All API applications are rate-limited to protect against abuse and keep the platform healthy. The default limit for API access is 100 calls per hour per key.', EMBM_DOMAIN).'"</em></blockquote></p><p>'.
    437                 __('If you see this message, it means your authenticated API session has reached this limit and any actions that require an API call will be limited until your access is reset in the next hour.', EMBM_DOMAIN).'</p><p>'.
    438                 __('In most cases you should still be able to use all of the Untappd features with cached data, but rare cases may display a rate-limit warning messages when no cached data is available.', EMBM_DOMAIN).
     435                __('All API applications are rate-limited to protect against abuse and keep the platform healthy. The default limit for API access is 100 calls per hour per key.', 'embm').'"</em></blockquote></p><p>'.
     436                __('If you see this message, it means your authenticated API session has reached this limit and any actions that require an API call will be limited until your access is reset in the next hour.', 'embm').'</p><p>'.
     437                __('In most cases you should still be able to use all of the Untappd features with cached data, but rare cases may display a rate-limit warning messages when no cached data is available.', 'embm').
    439438                '</p>'
    440439        ),
    441         'sidebar'       => '<p><strong>' . __('For more information', EMBM_DOMAIN) . ':</strong></p>' .
    442             '<p><a href="https://www.erinmorelli.com/projects/em-beer-manager" target="_blank">' . __('Plugin Website', EMBM_DOMAIN) . '</a></p>' .
    443             '<p><a href="https://wordpress.org/support/plugin/em-beer-manager" target="_blank">' . __('Support Forums', EMBM_DOMAIN) . '</a></p>'
     440        'sidebar'       => '<p><strong>' . __('For more information', 'embm') . ':</strong></p>' .
     441            '<p><a href="https://www.erinmorelli.com/projects/em-beer-manager" target="_blank">' . __('Plugin Website', 'embm') . '</a></p>' .
     442            '<p><a href="https://wordpress.org/support/plugin/em-beer-manager" target="_blank">' . __('Support Forums', 'embm') . '</a></p>'
    444443    );
    445444}
  • em-beer-manager/trunk/includes/admin/embm-admin-footer.php

    r1746554 r1746561  
    3131<div class="embm-settings-footer--donate">
    3232    <p class="embm-settings-footer--donate-text">
    33         <span><?php _e('Like this plugin?', EMBM_DOMAIN); ?></span>
     33        <span><?php _e('Like this plugin?', 'embm'); ?></span>
    3434        <a
    3535            class="embm-settings-footer--donate-button thickbox"
    3636            href="#TB_inline?width=250&height=150&inlineId=embm-settings-footer--donate-modal"
    37             title="<?php _e('Buy me a beer!', EMBM_DOMAIN); ?>"
     37            title="<?php _e('Buy me a beer!', 'embm'); ?>"
    3838            target="_blank"
    3939        >
    40             <?php _e('Buy me a beer!', EMBM_DOMAIN); ?>
     40            <?php _e('Buy me a beer!', 'embm'); ?>
    4141        </a>
    4242        <span class="dashicons dashicons-smiley"></span>
     
    5454        <p>
    5555            <select name="amount-select" id="embm-settings-footer--donate-select">
    56                 <option value="6.00" selected><?php printf('%s ($6)', __('A Pint', EMBM_DOMAIN)); ?></option>
    57                 <option value="12.00"><?php printf('%s ($12)', __('A 6-Pack', EMBM_DOMAIN)); ?></option>
    58                 <option value="24.00"><?php printf('%s ($24)', __('A Case', EMBM_DOMAIN)); ?></option>
    59                 <option value="other"><?php _e('Custom Amount', EMBM_DOMAIN); ?></option>
     56                <option value="6.00" selected><?php printf('%s ($6)', __('A Pint', 'embm')); ?></option>
     57                <option value="12.00"><?php printf('%s ($12)', __('A 6-Pack', 'embm')); ?></option>
     58                <option value="24.00"><?php printf('%s ($24)', __('A Case', 'embm')); ?></option>
     59                <option value="other"><?php _e('Custom Amount', 'embm'); ?></option>
    6060            </select>
    6161            <input
     
    7575                name="submit"
    7676                class="embm-settings-footer--donate-button"
    77                 value="<?php _e('Buy me a beer!', EMBM_DOMAIN); ?>"
     77                value="<?php _e('Buy me a beer!', 'embm'); ?>"
    7878            ><br />
    79             <img src="<?php echo EMBM_PLUGIN_URL; ?>/assets/img/donate.png" alt="<?php _e('PayPal', EMBM_DOMAIN); ?>" border="0" />
     79            <img src="<?php echo EMBM_PLUGIN_URL; ?>/assets/img/donate.png" alt="<?php _e('PayPal', 'embm'); ?>" border="0" />
    8080        </p>
    8181    </form>
     
    8888    <p class="embm-settings-footer--credits-untappd">
    8989        <a href="https://untappd.com" target="_blank" rel="nofollow">
    90             <img src="<?php echo EMBM_PLUGIN_URL; ?>/assets/img/ut-credit.png" alt="<?php _e('Powered by Untappd', EMBM_DOMAIN); ?>" border="0" />
     90            <img src="<?php echo EMBM_PLUGIN_URL; ?>/assets/img/ut-credit.png" alt="<?php _e('Powered by Untappd', 'embm'); ?>" border="0" />
    9191        </a>
    9292    </p>
    93     <p><?php printf(__('All Untappd logo graphics are the sole property of %s', EMBM_DOMAIN), '<strong>Untappd LLC.</strong>'); ?></p>
     93    <p><?php printf(__('All Untappd logo graphics are the sole property of %s', 'embm'), '<strong>Untappd LLC.</strong>'); ?></p>
    9494    <!-- Admin menu beer icon from SimpleIcon.com-->
    9595    <p>
    9696        <?php printf(
    97             __('Free beer icon from %s', EMBM_DOMAIN),
     97            __('Free beer icon from %s', 'embm'),
    9898            '<a href="http://simpleicon.com" target="_blank" title="simple icon" rel="nofollow"><strong>simple icon</strong></a>'
    9999        ); ?>.
  • em-beer-manager/trunk/includes/admin/embm-admin-notices.php

    r1746554 r1746561  
    2020 */
    2121
    22 $SUCCESS_TITLE = __('Success!', EMBM_DOMAIN);
    23 $ERROR_TITLE   = __('ERROR', EMBM_DOMAIN) . ':';
    24 $WARNING_TITLE = __('WARNING', EMBM_DOMAIN) . ':';
     22$SUCCESS_TITLE = __('Success!', 'embm');
     23$ERROR_TITLE   = __('ERROR', 'embm') . ':';
     24$WARNING_TITLE = __('WARNING', 'embm') . ':';
    2525
    2626// Map of notices
     
    3030            'type'      => 'updated',
    3131            'title'     => $SUCCESS_TITLE,
    32             'message'   => __('Your beer styles have been restored.', EMBM_DOMAIN)
     32            'message'   => __('Your beer styles have been restored.', 'embm')
    3333        )
    3434    ),
     
    3737            'type'      => 'updated',
    3838            'title'     => $SUCCESS_TITLE,
    39             'message'   => __('Your beer has been imported from Untappd.', EMBM_DOMAIN)
    40         ),
    41         '2' => array(
    42             'type'      => 'updated',
    43             'title'     => $SUCCESS_TITLE,
    44             'message'   => __('Your beers have been imported from Untappd.', EMBM_DOMAIN)
     39            'message'   => __('Your beer has been imported from Untappd.', 'embm')
     40        ),
     41        '2' => array(
     42            'type'      => 'updated',
     43            'title'     => $SUCCESS_TITLE,
     44            'message'   => __('Your beers have been imported from Untappd.', 'embm')
    4545        )
    4646    ),
     
    4949            'type'      => 'error',
    5050            'title'     => $ERROR_TITLE,
    51             'message'   => __('There was a problem! You may have reached your API token\'s rate limit for the hour. Please try again later.', EMBM_DOMAIN)
    52         ),
    53         '2' => array(
    54             'type'      => 'error',
    55             'title'     => $ERROR_TITLE,
    56             'message'   => __('There was a problem during the import! The beer you specified was not found on Untappd.', EMBM_DOMAIN)
    57         ),
    58         '3' => array(
    59             'type'      => 'error',
    60             'title'     => $ERROR_TITLE,
    61             'message'   => __('This beer does not belong to your brewery! You can only import beers that are owned by your Untappd brewery account.', EMBM_DOMAIN)
     51            'message'   => __('There was a problem! You may have reached your API token\'s rate limit for the hour. Please try again later.', 'embm')
     52        ),
     53        '2' => array(
     54            'type'      => 'error',
     55            'title'     => $ERROR_TITLE,
     56            'message'   => __('There was a problem during the import! The beer you specified was not found on Untappd.', 'embm')
     57        ),
     58        '3' => array(
     59            'type'      => 'error',
     60            'title'     => $ERROR_TITLE,
     61            'message'   => __('This beer does not belong to your brewery! You can only import beers that are owned by your Untappd brewery account.', 'embm')
    6262        ),
    6363        '4' => array(
    6464            'type'      => 'error',
    6565            'title'     => $ERROR_TITLE,
    66             'message'   => __('There was a problem during the import! Please try again later.', EMBM_DOMAIN)
     66            'message'   => __('There was a problem during the import! Please try again later.', 'embm')
    6767        ),
    6868        '5' => array(
    6969            'type'      => 'warning',
    7070            'title'     => $WARNING_TITLE,
    71             'message'   => __('There was a problem during the import! One or more beers was not imported. Please try again later.', EMBM_DOMAIN)
     71            'message'   => __('There was a problem during the import! One or more beers was not imported. Please try again later.', 'embm')
    7272        )
    7373    ),
     
    7676            'type'      => 'updated',
    7777            'title'     => $SUCCESS_TITLE,
    78             'message'   => __('Your beers have been updated from Untappd.', EMBM_DOMAIN)
    79         ),
    80         '2' => array(
    81             'type'      => 'updated',
    82             'title'     => $SUCCESS_TITLE,
    83             'message'   => __('Your beer has been updated from Untappd.', EMBM_DOMAIN)
     78            'message'   => __('Your beers have been updated from Untappd.', 'embm')
     79        ),
     80        '2' => array(
     81            'type'      => 'updated',
     82            'title'     => $SUCCESS_TITLE,
     83            'message'   => __('Your beer has been updated from Untappd.', 'embm')
    8484        )
    8585    ),
     
    8888            'type'      => 'error',
    8989            'title'     => $ERROR_TITLE,
    90             'message'   => __('There was a problem during the sync! Please try again later.', EMBM_DOMAIN)
    91         ),
    92         '2' => array(
    93             'type'      => 'warning',
    94             'title'     => $WARNING_TITLE,
    95             'message'   => __('There was a problem during the sync! One or more beers were not updated. Please try again later.', EMBM_DOMAIN)
    96         ),
    97         '3' => array(
    98             'type'      => 'error',
    99             'title'     => $ERROR_TITLE,
    100             'message'   => __('There was a problem during the sync! The selected beer does not have an Untappd ID.', EMBM_DOMAIN)
     90            'message'   => __('There was a problem during the sync! Please try again later.', 'embm')
     91        ),
     92        '2' => array(
     93            'type'      => 'warning',
     94            'title'     => $WARNING_TITLE,
     95            'message'   => __('There was a problem during the sync! One or more beers were not updated. Please try again later.', 'embm')
     96        ),
     97        '3' => array(
     98            'type'      => 'error',
     99            'title'     => $ERROR_TITLE,
     100            'message'   => __('There was a problem during the sync! The selected beer does not have an Untappd ID.', 'embm')
    101101        ),
    102102    ),
     
    105105            'type'      => 'error',
    106106            'title'     => $ERROR_TITLE,
    107             'message'   => __('There was a problem saving your beer\'s Untappd data!', EMBM_DOMAIN).' '.
    108                 __('You may have reached your API token\'s rate limit for the hour. Please try again later.', EMBM_DOMAIN)
    109         ),
    110         '2' => array(
    111             'type'      => 'error',
    112             'title'     => $ERROR_TITLE,
    113             'message'   => __('There was a problem saving your menu\'s Untappd for Business data!', EMBM_DOMAIN).' '.
    114                 __('You may have reached your API token\'s rate limit for the hour. Please try again later.', EMBM_DOMAIN)
     107            'message'   => __('There was a problem saving your beer\'s Untappd data!', 'embm').' '.
     108                __('You may have reached your API token\'s rate limit for the hour. Please try again later.', 'embm')
     109        ),
     110        '2' => array(
     111            'type'      => 'error',
     112            'title'     => $ERROR_TITLE,
     113            'message'   => __('There was a problem saving your menu\'s Untappd for Business data!', 'embm').' '.
     114                __('You may have reached your API token\'s rate limit for the hour. Please try again later.', 'embm')
    115115        )
    116116    ),
     
    119119            'type'      => 'error',
    120120            'title'     => $ERROR_TITLE,
    121             'message'   => __('There was a problem retrieving check-in data from Untappd!', EMBM_DOMAIN).' '.
    122                 __('Please try again later.', EMBM_DOMAIN)
    123         ),
    124         '2' => array(
    125             'type'      => 'error',
    126             'title'     => $ERROR_TITLE,
    127             'message'   => __('There was a problem refreshing check-in data from Untappd!', EMBM_DOMAIN).' '.
    128                 __('Please try again later.', EMBM_DOMAIN)
     121            'message'   => __('There was a problem retrieving check-in data from Untappd!', 'embm').' '.
     122                __('Please try again later.', 'embm')
     123        ),
     124        '2' => array(
     125            'type'      => 'error',
     126            'title'     => $ERROR_TITLE,
     127            'message'   => __('There was a problem refreshing check-in data from Untappd!', 'embm').' '.
     128                __('Please try again later.', 'embm')
    129129        )
    130130    ),
     
    133133            'type'      => 'error',
    134134            'title'     => $ERROR_TITLE,
    135             'message'   => __('There was a problem connecting your Untappd for Business account! Please try again later.', EMBM_DOMAIN)
    136         ),
    137         '2' => array(
    138             'type'      => 'error',
    139             'title'     => $ERROR_TITLE,
    140             'message'   => __('There was a problem during the import! Please try again later.', EMBM_DOMAIN)
    141         ),
    142         '3' => array(
    143             'type'      => 'warning',
    144             'title'     => $WARNING_TITLE,
    145             'message'   => __('There was a problem during the import! One or more beers were not imported. Please try again later.', EMBM_DOMAIN)
     135            'message'   => __('There was a problem connecting your Untappd for Business account! Please try again later.', 'embm')
     136        ),
     137        '2' => array(
     138            'type'      => 'error',
     139            'title'     => $ERROR_TITLE,
     140            'message'   => __('There was a problem during the import! Please try again later.', 'embm')
     141        ),
     142        '3' => array(
     143            'type'      => 'warning',
     144            'title'     => $WARNING_TITLE,
     145            'message'   => __('There was a problem during the import! One or more beers were not imported. Please try again later.', 'embm')
    146146        ),
    147147        '4' => array(
    148148            'type'      => 'warning',
    149149            'title'     => $WARNING_TITLE,
    150             'message'   => __('There was a problem during the sync! One or more beers were not updated. Please try again later.', EMBM_DOMAIN)
     150            'message'   => __('There was a problem during the sync! One or more beers were not updated. Please try again later.', 'embm')
    151151        )
    152152    ),
     
    155155            'type'      => 'updated',
    156156            'title'     => $SUCCESS_TITLE,
    157             'message'   => __('Your Untappd for Business account has been connected.', EMBM_DOMAIN)
    158         ),
    159         '2' => array(
    160             'type'      => 'updated',
    161             'title'     => $SUCCESS_TITLE,
    162             'message'   => __('Your beers have been imported from your Untappd for Business account.', EMBM_DOMAIN)
    163         ),
    164         '3' => array(
    165             'type'      => 'updated',
    166             'title'     => $SUCCESS_TITLE,
    167             'message'   => __('Your beers have been synced with your Untappd for Business menus.', EMBM_DOMAIN)
     157            'message'   => __('Your Untappd for Business account has been connected.', 'embm')
     158        ),
     159        '2' => array(
     160            'type'      => 'updated',
     161            'title'     => $SUCCESS_TITLE,
     162            'message'   => __('Your beers have been imported from your Untappd for Business account.', 'embm')
     163        ),
     164        '3' => array(
     165            'type'      => 'updated',
     166            'title'     => $SUCCESS_TITLE,
     167            'message'   => __('Your beers have been synced with your Untappd for Business menus.', 'embm')
    168168        )
    169169    )
     
    221221    // Set fallback message
    222222    if (is_null($msg)) {
    223         $msg = __('There was a problem! You may have reached your API token\'s rate limit for the hour. Please try again later.', EMBM_DOMAIN);
     223        $msg = __('There was a problem! You may have reached your API token\'s rate limit for the hour. Please try again later.', 'embm');
    224224    }
    225225
  • em-beer-manager/trunk/includes/admin/embm-admin-settings.php

    r1746554 r1746561  
    3939    // Setup admin page
    4040    $embm_admin_page = add_options_page(
    41         __('EM Beer Manager Settings', EMBM_DOMAIN),
    42         __('EM Beer Manager', EMBM_DOMAIN),
     41        __('EM Beer Manager Settings', 'embm'),
     42        __('EM Beer Manager', 'embm'),
    4343        'manage_options',
    4444        'embm-settings',
     
    6767
    6868    // Untappd Settings
    69     add_settings_section('embm_untappd_settings', __('Untappd Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_untappd', EMBM_DOMAIN);
    70     add_settings_field('embm_untappd_integration', __('Site-wide Integration', EMBM_DOMAIN), 'EMBM_Admin_Settings_Untappd_integration', EMBM_DOMAIN, 'embm_untappd_settings');
    71     add_settings_field('embm_untappd_icons', __('Icon Set', EMBM_DOMAIN), 'EMBM_Admin_Settings_Untappd_icons', EMBM_DOMAIN, 'embm_untappd_settings');
     69    add_settings_section('embm_untappd_settings', __('Untappd Settings', 'embm'), 'EMBM_Admin_Settings_untappd', 'embm');
     70    add_settings_field('embm_untappd_integration', __('Site-wide Integration', 'embm'), 'EMBM_Admin_Settings_Untappd_integration', 'embm', 'embm_untappd_settings');
     71    add_settings_field('embm_untappd_icons', __('Icon Set', 'embm'), 'EMBM_Admin_Settings_Untappd_icons', 'embm', 'embm_untappd_settings');
    7272    if ($logged_in) {
    73         add_settings_field('embm_untappd_rating_format', __('Rating Display Format', EMBM_DOMAIN), 'EMBM_Admin_Settings_Untappd_rating', EMBM_DOMAIN, 'embm_untappd_settings');
    74         add_settings_field('embm_untappd_rating_color', __('Rating Star Color', EMBM_DOMAIN), 'EMBM_Admin_Settings_Untappd_Rating_color', EMBM_DOMAIN, 'embm_untappd_settings');
    75         add_settings_field('embm_untappd_rating_opacity', __('Rating Star Empty Opacity', EMBM_DOMAIN), 'EMBM_Admin_Settings_Untappd_Rating_opacity', EMBM_DOMAIN, 'embm_untappd_settings');
     73        add_settings_field('embm_untappd_rating_format', __('Rating Display Format', 'embm'), 'EMBM_Admin_Settings_Untappd_rating', 'embm', 'embm_untappd_settings');
     74        add_settings_field('embm_untappd_rating_color', __('Rating Star Color', 'embm'), 'EMBM_Admin_Settings_Untappd_Rating_color', 'embm', 'embm_untappd_settings');
     75        add_settings_field('embm_untappd_rating_opacity', __('Rating Star Empty Opacity', 'embm'), 'EMBM_Admin_Settings_Untappd_Rating_opacity', 'embm', 'embm_untappd_settings');
    7676    } else {
    77         add_settings_field('embm_untappd_logged_out', '', 'EMBM_Admin_Settings_Untappd_login', EMBM_DOMAIN, 'embm_untappd_settings');
     77        add_settings_field('embm_untappd_logged_out', '', 'EMBM_Admin_Settings_Untappd_login', 'embm', 'embm_untappd_settings');
    7878    }
    7979
    8080    // Global settings
    81     add_settings_section('embm_global_settings', __('Global Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_section', EMBM_DOMAIN);
    82     add_settings_field('embm_css_url', __('Custom Stylesheet (URL)', EMBM_DOMAIN), 'EMBM_Admin_Settings_Global_css', EMBM_DOMAIN, 'embm_global_settings', array('label_for' => 'embm_css_url'));
    83     add_settings_field('embm_display_settings', __('Display Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Global_display', EMBM_DOMAIN, 'embm_global_settings');
     81    add_settings_section('embm_global_settings', __('Global Settings', 'embm'), 'EMBM_Admin_Settings_section', 'embm');
     82    add_settings_field('embm_css_url', __('Custom Stylesheet (URL)', 'embm'), 'EMBM_Admin_Settings_Global_css', 'embm', 'embm_global_settings', array('label_for' => 'embm_css_url'));
     83    add_settings_field('embm_display_settings', __('Display Settings', 'embm'), 'EMBM_Admin_Settings_Global_display', 'embm', 'embm_global_settings');
    8484    if ($logged_in) {
    85         add_settings_field('embm_untappd_settings', __('Untappd Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Global_untappd', EMBM_DOMAIN, 'embm_global_settings');
     85        add_settings_field('embm_untappd_settings', __('Untappd Settings', 'embm'), 'EMBM_Admin_Settings_Global_untappd', 'embm', 'embm_global_settings');
    8686    } else {
    87         add_settings_field('embm_untappd_settings', __('Untappd Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Untappd_login', EMBM_DOMAIN, 'embm_global_settings');
     87        add_settings_field('embm_untappd_settings', __('Untappd Settings', 'embm'), 'EMBM_Admin_Settings_Untappd_login', 'embm', 'embm_global_settings');
    8888    }
    8989
    9090    // Group Tax Settings
    91     add_settings_section('embm_group_settings', __('Beer Group Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_section', EMBM_DOMAIN);
    92     add_settings_field('embm_group_slug', __('Custom Taxonomy Slug', EMBM_DOMAIN), 'EMBM_Admin_Settings_Group_slug', EMBM_DOMAIN, 'embm_group_settings', array('label_for' => 'embm_group_slug'));
    93     add_settings_field('embm_group_display_settings', __('Display Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Group_display', EMBM_DOMAIN, 'embm_group_settings');
     91    add_settings_section('embm_group_settings', __('Beer Group Settings', 'embm'), 'EMBM_Admin_Settings_section', 'embm');
     92    add_settings_field('embm_group_slug', __('Custom Taxonomy Slug', 'embm'), 'EMBM_Admin_Settings_Group_slug', 'embm', 'embm_group_settings', array('label_for' => 'embm_group_slug'));
     93    add_settings_field('embm_group_display_settings', __('Display Settings', 'embm'), 'EMBM_Admin_Settings_Group_display', 'embm', 'embm_group_settings');
    9494    if ($logged_in) {
    95         add_settings_field('embm_group_untappd_settings', __('Untappd Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Group_untappd', EMBM_DOMAIN, 'embm_group_settings');
     95        add_settings_field('embm_group_untappd_settings', __('Untappd Settings', 'embm'), 'EMBM_Admin_Settings_Group_untappd', 'embm', 'embm_group_settings');
    9696    } else {
    97         add_settings_field('embm_group_untappd_settings', __('Untappd Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Untappd_login', EMBM_DOMAIN, 'embm_group_settings');
     97        add_settings_field('embm_group_untappd_settings', __('Untappd Settings', 'embm'), 'EMBM_Admin_Settings_Untappd_login', 'embm', 'embm_group_settings');
    9898    }
    9999
    100100    // Style Tax Settings
    101     add_settings_section('embm_style_settings', __('Beer Style Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_section', EMBM_DOMAIN);
    102     add_settings_field('embm_style_rest', __('Restore Styles', EMBM_DOMAIN), 'EMBM_Admin_Settings_Style_reset', EMBM_DOMAIN, 'embm_style_settings');
    103     add_settings_field('embm_style_display_settings', __('Display Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Style_display', EMBM_DOMAIN, 'embm_style_settings');
     101    add_settings_section('embm_style_settings', __('Beer Style Settings', 'embm'), 'EMBM_Admin_Settings_section', 'embm');
     102    add_settings_field('embm_style_rest', __('Restore Styles', 'embm'), 'EMBM_Admin_Settings_Style_reset', 'embm', 'embm_style_settings');
     103    add_settings_field('embm_style_display_settings', __('Display Settings', 'embm'), 'EMBM_Admin_Settings_Style_display', 'embm', 'embm_style_settings');
    104104    if ($logged_in) {
    105         add_settings_field('embm_style_untappd_settings', __('Untappd Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Style_untappd', EMBM_DOMAIN, 'embm_style_settings');
     105        add_settings_field('embm_style_untappd_settings', __('Untappd Settings', 'embm'), 'EMBM_Admin_Settings_Style_untappd', 'embm', 'embm_style_settings');
    106106    } else {
    107         add_settings_field('embm_style_untappd_settings', __('Untappd Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Untappd_login', EMBM_DOMAIN, 'embm_style_settings');
     107        add_settings_field('embm_style_untappd_settings', __('Untappd Settings', 'embm'), 'EMBM_Admin_Settings_Untappd_login', 'embm', 'embm_style_settings');
    108108    }
    109109
    110110    // Menu Tax Settings
    111     add_settings_section('embm_menu_settings', __('Beer Menu Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_section', EMBM_DOMAIN);
    112     add_settings_field('embm_menu_display_settings', __('Display Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Menu_display', EMBM_DOMAIN, 'embm_menu_settings');
     111    add_settings_section('embm_menu_settings', __('Beer Menu Settings', 'embm'), 'EMBM_Admin_Settings_section', 'embm');
     112    add_settings_field('embm_menu_display_settings', __('Display Settings', 'embm'), 'EMBM_Admin_Settings_Menu_display', 'embm', 'embm_menu_settings');
    113113    if ($logged_in) {
    114         add_settings_field('embm_menu_untappd_settings', __('Untappd Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Menu_untappd', EMBM_DOMAIN, 'embm_menu_settings');
     114        add_settings_field('embm_menu_untappd_settings', __('Untappd Settings', 'embm'), 'EMBM_Admin_Settings_Menu_untappd', 'embm', 'embm_menu_settings');
    115115    } else {
    116         add_settings_field('embm_menu_untappd_settings', __('Untappd Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Untappd_login', EMBM_DOMAIN, 'embm_menu_settings');
     116        add_settings_field('embm_menu_untappd_settings', __('Untappd Settings', 'embm'), 'EMBM_Admin_Settings_Untappd_login', 'embm', 'embm_menu_settings');
    117117    }
    118118
    119119    // Single Beer Settings
    120     add_settings_section('embm_single_settings', __('Single Beer Page Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_section', EMBM_DOMAIN);
    121     add_settings_field('embm_comments_toggle', __('Comments', EMBM_DOMAIN), 'EMBM_Admin_Settings_Single_comments', EMBM_DOMAIN, 'embm_single_settings');
    122     add_settings_field('embm_single_display_settings', __('Display Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Single_display', EMBM_DOMAIN, 'embm_single_settings');
     120    add_settings_section('embm_single_settings', __('Single Beer Page Settings', 'embm'), 'EMBM_Admin_Settings_section', 'embm');
     121    add_settings_field('embm_comments_toggle', __('Comments', 'embm'), 'EMBM_Admin_Settings_Single_comments', 'embm', 'embm_single_settings');
     122    add_settings_field('embm_single_display_settings', __('Display Settings', 'embm'), 'EMBM_Admin_Settings_Single_display', 'embm', 'embm_single_settings');
    123123    if ($logged_in) {
    124         add_settings_field('embm_single_untappd_settings', __('Untappd Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Single_untappd', EMBM_DOMAIN, 'embm_single_settings');
     124        add_settings_field('embm_single_untappd_settings', __('Untappd Settings', 'embm'), 'EMBM_Admin_Settings_Single_untappd', 'embm', 'embm_single_settings');
    125125    } else {
    126         add_settings_field('embm_single_untappd_settings', __('Untappd Settings', EMBM_DOMAIN), 'EMBM_Admin_Settings_Untappd_login', EMBM_DOMAIN, 'embm_single_settings');
     126        add_settings_field('embm_single_untappd_settings', __('Untappd Settings', 'embm'), 'EMBM_Admin_Settings_Untappd_login', 'embm', 'embm_single_settings');
    127127    }
    128128}
     
    190190function EMBM_Admin_Settings_Untappd_login()
    191191{
    192     echo '<p class="description">'.__('Log in to Untappd to access additional display options.', EMBM_DOMAIN).'</p>';
     192    echo '<p class="description">'.__('Log in to Untappd to access additional display options.', 'embm').'</p>';
    193193}
    194194
     
    208208
    209209    echo '<p><input name="embm_options[embm_untappd_check]" type="checkbox" id="embm_untappd_check" value="1"'.checked('1', $use_untappd, false).' /> ';
    210     echo '<label for="embm_untappd_check">'.__('Disable site-wide integration', EMBM_DOMAIN).'</label>';
     210    echo '<label for="embm_untappd_check">'.__('Disable site-wide integration', 'embm').'</label>';
    211211    echo '<a data-help="embm-untappd-integration" class="embm-settings--help">?</a></p>';
    212212}
     
    275275    // Set up possible options
    276276    $icon_sets = array(
    277         '1' => __('Original', EMBM_DOMAIN).' (v1)',
    278         '2' => __('Modern', EMBM_DOMAIN).' (v2)'
     277        '1' => __('Original', 'embm').' (v1)',
     278        '2' => __('Modern', 'embm').' (v2)'
    279279    );
    280280
     
    331331    $output .= checked('1', $view_profile, false).' /> ';
    332332    $output .= '<label for="'.$show_profile.'">';
    333     $output .= sprintf(__('Hide "profile" info %s', EMBM_DOMAIN), __($title, EMBM_DOMAIN));
     333    $output .= sprintf(__('Hide "profile" info %s', 'embm'), __($title, 'embm'));
    334334    $output .= '</label><a data-help="embm-settings-faq" class="embm-settings--help">?</a></p>';
    335335
     
    338338    $output .= checked('1', $view_extras, false).' /> ';
    339339    $output .= '<label for="'.$show_extras.'">';
    340     $output .= sprintf(__('Hide "extras" info %s', EMBM_DOMAIN), __($title, EMBM_DOMAIN));
     340    $output .= sprintf(__('Hide "extras" info %s', 'embm'), __($title, 'embm'));
    341341    $output .= '</label><a data-help="embm-settings-faq" class="embm-settings--help">?</a></p>';
    342342
     
    368368    $output .= checked('1', $view_rating, false).' /> ';
    369369    $output .= '<label for="'.$show_rating.'">';
    370     $output .= sprintf(__('Hide Untappd rating %s', EMBM_DOMAIN), __($title, EMBM_DOMAIN));
     370    $output .= sprintf(__('Hide Untappd rating %s', 'embm'), __($title, 'embm'));
    371371    $output .= '</label></p>';
    372372
     
    387387    echo '<p><input id="embm_css_url" name="embm_options[embm_css_url]" size="50" type="url" value="'.esc_url($options['embm_css_url']).'" /></p>';
    388388    echo '<p class="description">';
    389     echo __('Enter a full URL that points to a stylesheet file to override default EM Beer Manager styles.', EMBM_DOMAIN);
     389    echo __('Enter a full URL that points to a stylesheet file to override default EM Beer Manager styles.', 'embm');
    390390    echo '</p>';
    391391}
     
    398398function EMBM_Admin_Settings_Global_display()
    399399{
    400     echo EMBM_Admin_Settings_Section_display(__('globally', EMBM_DOMAIN));
     400    echo EMBM_Admin_Settings_Section_display(__('globally', 'embm'));
    401401}
    402402
     
    408408function EMBM_Admin_Settings_Global_untappd()
    409409{
    410     echo EMBM_Admin_Settings_Section_untappd(__('globally', EMBM_DOMAIN));
     410    echo EMBM_Admin_Settings_Section_untappd(__('globally', 'embm'));
    411411}
    412412
     
    423423    echo sanitize_key($options['embm_group_slug']);
    424424    echo '" /></p><p class="description">';
    425     echo __('Rename the beer group URLs with your own custom slug name.', EMBM_DOMAIN) . '<br />';
     425    echo __('Rename the beer group URLs with your own custom slug name.', 'embm') . '<br />';
    426426    echo sprintf(
    427         __('You must %s after changing this.', EMBM_DOMAIN),
    428         sprintf('<a href="options-permalink.php">%s</a>', __('refresh your permalinks', EMBM_DOMAIN))
     427        __('You must %s after changing this.', 'embm'),
     428        sprintf('<a href="options-permalink.php">%s</a>', __('refresh your permalinks', 'embm'))
    429429    ).'</p><p class="timezone-info">';
    430     echo __('By default URLs will look like', EMBM_DOMAIN).': <code>yoursite.com/<strong>group</strong>/your-group-name</code>.</p>';
     430    echo __('By default URLs will look like', 'embm').': <code>yoursite.com/<strong>group</strong>/your-group-name</code>.</p>';
    431431}
    432432
     
    438438function EMBM_Admin_Settings_Group_display()
    439439{
    440     echo EMBM_Admin_Settings_Section_display(__('in groups', EMBM_DOMAIN), 'group');
     440    echo EMBM_Admin_Settings_Section_display(__('in groups', 'embm'), 'group');
    441441}
    442442
     
    448448function EMBM_Admin_Settings_Group_untappd()
    449449{
    450     echo EMBM_Admin_Settings_Section_untappd(__('in groups', EMBM_DOMAIN), 'group');
     450    echo EMBM_Admin_Settings_Section_untappd(__('in groups', 'embm'), 'group');
    451451}
    452452
     
    458458function EMBM_Admin_Settings_Style_reset()
    459459{
    460     echo '<p><button class="embm-settings--styles-button button-secondary">'.__('Restore Styles', EMBM_DOMAIN).'</button></p>';
    461     echo '<p class="description">'.__('Restore missing or deleted beer styles from the pre-loaded list.', EMBM_DOMAIN).'</p>';
     460    echo '<p><button class="embm-settings--styles-button button-secondary">'.__('Restore Styles', 'embm').'</button></p>';
     461    echo '<p class="description">'.__('Restore missing or deleted beer styles from the pre-loaded list.', 'embm').'</p>';
    462462
    463463    // Add modal prompt
     
    467467    <div id="embm-styles-reset-prompt" style="display:none;">
    468468        <div class="embm-styles-reset-prompt--content">
    469             <p><?php _e('This will restore any missing or deleted beer styles from the pre-loaded Untappd list.', EMBM_DOMAIN); ?></p>
     469            <p><?php _e('This will restore any missing or deleted beer styles from the pre-loaded Untappd list.', 'embm'); ?></p>
    470470            <p>
    471471                <?php
    472472                    printf(
    473                         __('Your custom or modified styles will %s be affected by this action.', EMBM_DOMAIN),
    474                         sprintf('<span class="emphasis">%s</span>', __('NOT', EMBM_DOMAIN))
     473                        __('Your custom or modified styles will %s be affected by this action.', 'embm'),
     474                        sprintf('<span class="emphasis">%s</span>', __('NOT', 'embm'))
    475475                    );
    476476                ?>
    477477            </p>
    478             <p><strong><?php _e('Do you wish to proceed?', EMBM_DOMAIN); ?></strong></p>
     478            <p><strong><?php _e('Do you wish to proceed?', 'embm'); ?></strong></p>
    479479            <p>
    480                 <a href="#" id="embm-styles-reset-prompt--yes" class="button-primary"><?php _e('YES', EMBM_DOMAIN); ?></a>
    481                 <a href="#" id="embm-styles-reset-prompt--no" class="button-secondary"><?php _e('NO', EMBM_DOMAIN); ?></a>
     480                <a href="#" id="embm-styles-reset-prompt--yes" class="button-primary"><?php _e('YES', 'embm'); ?></a>
     481                <a href="#" id="embm-styles-reset-prompt--no" class="button-secondary"><?php _e('NO', 'embm'); ?></a>
    482482            </p>
    483483        </div>
     
    487487        class="thickbox"
    488488        id="embm-styles-reset-prompt--button"
    489         title="<?php _e('Restore EM Beer Manager Styles', EMBM_DOMAIN); ?>"
     489        title="<?php _e('Restore EM Beer Manager Styles', 'embm'); ?>"
    490490        style="display:none;"
    491491    ></a>
     
    500500function EMBM_Admin_Settings_Style_display()
    501501{
    502     echo EMBM_Admin_Settings_Section_display(__('on style pages', EMBM_DOMAIN), 'style');
     502    echo EMBM_Admin_Settings_Section_display(__('on style pages', 'embm'), 'style');
    503503}
    504504
     
    510510function EMBM_Admin_Settings_Style_untappd()
    511511{
    512     echo EMBM_Admin_Settings_Section_untappd(__('on style pages', EMBM_DOMAIN), 'style');
     512    echo EMBM_Admin_Settings_Section_untappd(__('on style pages', 'embm'), 'style');
    513513}
    514514
     
    520520function EMBM_Admin_Settings_Menu_display()
    521521{
    522     echo EMBM_Admin_Settings_Section_display(__('on menu pages', EMBM_DOMAIN), 'menu');
     522    echo EMBM_Admin_Settings_Section_display(__('on menu pages', 'embm'), 'menu');
    523523}
    524524
     
    530530function EMBM_Admin_Settings_Menu_untappd()
    531531{
    532     echo EMBM_Admin_Settings_Section_untappd(__('on menu pages', EMBM_DOMAIN), 'menu');
     532    echo EMBM_Admin_Settings_Section_untappd(__('on menu pages', 'embm'), 'menu');
    533533}
    534534
     
    548548
    549549    echo '<p><input name="embm_options[embm_comment_check]" type="checkbox" id="embm_comment_check" value="1"'.checked('1', $use_comments, false).' /> ';
    550     echo '<label for="embm_comment_check">'.__('Enable comments on single beer pages', EMBM_DOMAIN).'</label></p>';
     550    echo '<label for="embm_comment_check">'.__('Enable comments on single beer pages', 'embm').'</label></p>';
    551551}
    552552
     
    558558function EMBM_Admin_Settings_Single_display()
    559559{
    560     echo EMBM_Admin_Settings_Section_display(__('on single beer pages', EMBM_DOMAIN), 'single');
     560    echo EMBM_Admin_Settings_Section_display(__('on single beer pages', 'embm'), 'single');
    561561}
    562562
     
    575575
    576576    // Output ratings setting
    577     echo EMBM_Admin_Settings_Section_untappd(__('on single beer pages', EMBM_DOMAIN), 'single');
     577    echo EMBM_Admin_Settings_Section_untappd(__('on single beer pages', 'embm'), 'single');
    578578
    579579    // Output review setting
    580580    echo '<p><input name="embm_options[embm_reviews_show_single]" type="checkbox" id="embm_reviews_show_single" value="1"'.checked('1', $view_reviews, false).' /> ';
    581     echo '<label for="embm_reviews_show_single">'.__('Hide Untappd check-ins on single beer pages', EMBM_DOMAIN).'</label>';
     581    echo '<label for="embm_reviews_show_single">'.__('Hide Untappd check-ins on single beer pages', 'embm').'</label>';
    582582
    583583    // Output review count setting
    584     echo '<p class="embm-settings--review-count"><label for="embm_reviews_count_single">'.__('Show', EMBM_DOMAIN);
     584    echo '<p class="embm-settings--review-count"><label for="embm_reviews_count_single">'.__('Show', 'embm');
    585585    echo '<input id="embm_reviews_count_single" name="embm_options[embm_reviews_count_single]" type="number" min="1" max="15" value="'.$reviews_count.'" />';
    586     echo sprintf(__('check-ins (max. %d)', EMBM_DOMAIN), 15);
     586    echo sprintf(__('check-ins (max. %d)', 'embm'), 15);
    587587    echo '</label></p>';
    588588
    589589    // Output section description
    590     echo '<p class="description">('.__('This setting may be overridden for individual beers.', EMBM_DOMAIN).')</p>';
     590    echo '<p class="description">('.__('This setting may be overridden for individual beers.', 'embm').')</p>';
    591591}
    592592
     
    602602        array(
    603603            'id'      => 'untappd',
    604             'name'    => sprintf('%s <span>%s</span>', __('Untappd Import', EMBM_DOMAIN), __('Labs', EMBM_DOMAIN)),
     604            'name'    => sprintf('%s <span>%s</span>', __('Untappd Import', 'embm'), __('Labs', 'embm')),
    605605            'hide'    => EMBM_Core_Beer_disabled()
    606606        ),
    607607        array(
    608608            'id'      => 'utfb',
    609             'name'    => sprintf('%s <span>%s</span>', __('Untappd for Business Import', EMBM_DOMAIN), __('Labs', EMBM_DOMAIN)),
     609            'name'    => sprintf('%s <span>%s</span>', __('Untappd for Business Import', 'embm'), __('Labs', 'embm')),
    610610            'hide'    => EMBM_Core_Beer_disabled()
    611611        ),
    612612        array(
    613613            'id'      => 'usage',
    614             'name'    => __('Usage', EMBM_DOMAIN),
     614            'name'    => __('Usage', 'embm'),
    615615            'hide'    => false
    616616        )
     
    619619    // Get settings page sections
    620620    global $wp_settings_sections;
    621     $sections = $wp_settings_sections[EMBM_DOMAIN];
     621    $sections = $wp_settings_sections['embm'];
    622622
    623623    // Check user permissions
    624624    if (!current_user_can('manage_options')) {
    625         wp_die(__('You do not have sufficient permissions to access this page.', EMBM_DOMAIN));
     625        wp_die(__('You do not have sufficient permissions to access this page.', 'embm'));
    626626    }
    627627
     
    633633
    634634    <h1 class="embm-settings--title">
    635         <?php _e('EM Beer Manager', EMBM_DOMAIN); ?>
     635        <?php _e('EM Beer Manager', 'embm'); ?>
    636636        <span class="embm-settings--title-version"><?php echo 'v'.get_option(EMBM_VERSION_KEY); ?></span>
    637637    </h1>
     
    641641            <li>
    642642                <a href="#settings" class="embm-nav-tab nav-tab nav-tab-active nav-tab-settings">
    643                     <?php _e('Settings', EMBM_DOMAIN); ?>
     643                    <?php _e('Settings', 'embm'); ?>
    644644                </a>
    645645            </li>
     
    659659                <span
    660660                    class="dashicons dashicons-arrow-right-alt2"
    661                     title="<?php _e('Collpase/Expand Panel', EMBM_DOMAIN); ?>"
     661                    title="<?php _e('Collpase/Expand Panel', 'embm'); ?>"
    662662                    id="embm-settings--navbox-toggle">
    663663                </span>
    664664                <ul>
    665665                    <li><strong>Jump to:</strong></li>
    666                     <li><a href="#top"><?php _e('Top', EMBM_DOMAIN); ?></a></li>
     666                    <li><a href="#top"><?php _e('Top', 'embm'); ?></a></li>
    667667                    <?php foreach ($sections as $section): ?>
    668668                        <li><a href="#<?php echo $section['id']; ?>"><?php echo $section['title']; ?></a></li>
     
    673673                <?php
    674674                    settings_fields(EMBM_OPTIONS);
    675                     do_settings_sections(EMBM_DOMAIN);
     675                    do_settings_sections('embm');
    676676                ?>
    677677                <p style="margin-top:1em;">
    678                     <input name="Submit" type="submit" class="button-primary" value="<?php _e('Save Changes', EMBM_DOMAIN); ?>" />
     678                    <input name="Submit" type="submit" class="button-primary" value="<?php _e('Save Changes', 'embm'); ?>" />
    679679                </p>
    680680            </form>
  • em-beer-manager/trunk/includes/admin/integrations/embm-integrations-authorize.php

    r1746554 r1746561  
    9292?>
    9393    <p>
    94         <button class="embm-labs--authorize button-secondary"><?php _e('Log In to Authorize Untappd', EMBM_DOMAIN); ?></button>
     94        <button class="embm-labs--authorize button-secondary"><?php _e('Log In to Authorize Untappd', 'embm'); ?></button>
    9595    </p>
    9696<?php
     
    115115    <div class="embm-settings--status">
    116116        <p>
    117             <?php _e('You are logged in to Untappd as', EMBM_DOMAIN); ?>:
     117            <?php _e('You are logged in to Untappd as', 'embm'); ?>:
    118118            <a
    119119                href="<?php echo $user->untappd_url; ?>"
     
    124124                class="dashicons dashicons-<?php echo ($is_brewery ? 'groups' : 'admin-users'); ?>"
    125125            ></span><strong><?php echo $user->first_name . ' ' . $user->last_name; ?></strong></a>
    126             <a href="#" class="embm-untappd--deauthorize button button-small"><?php _e('Log Out', EMBM_DOMAIN); ?></a>
     126            <a href="#" class="embm-untappd--deauthorize button button-small"><?php _e('Log Out', 'embm'); ?></a>
    127127        </p>
    128128    </div>
  • em-beer-manager/trunk/includes/admin/integrations/embm-integrations-untappd.php

    r1746554 r1746561  
    129129function EMBM_Admin_Untappd_ratelimit()
    130130{
    131     return __('Your Untappd API rate-limit has been reached for this hour. Please try again later.', EMBM_DOMAIN);
     131    return __('Your Untappd API rate-limit has been reached for this hour. Please try again later.', 'embm');
    132132}
    133133
  • em-beer-manager/trunk/includes/admin/tabs/embm-tabs-labs.php

    r1746554 r1746561  
    2525?>
    2626
    27 <p><span class="warning"><?php _e('WARNING', EMBM_DOMAIN); ?>:</span> <?php printf(
     27<p><span class="warning"><?php _e('WARNING', 'embm'); ?>:</span> <?php printf(
    2828    '%s. <span class="emphasis">%s</span>.',
    29     __('The features on this page are experimental', EMBM_DOMAIN),
    30     __('Use at your own risk', EMBM_DOMAIN)
     29    __('The features on this page are experimental', 'embm'),
     30    __('Use at your own risk', 'embm')
    3131); ?></p>
    3232
    3333<p>
    34     <?php _e('If you encounter any problems when using these features, please report them to', EMBM_DOMAIN);?>
     34    <?php _e('If you encounter any problems when using these features, please report them to', 'embm');?>
    3535    <a href="mailto:[email protected]?Subject=<?php echo $email_subj; ?>">[email protected]</a>.
    3636</p>
  • em-beer-manager/trunk/includes/admin/tabs/embm-tabs-untappd.php

    r1746554 r1746561  
    3030{
    3131?>
    32     <p class="warning"><?php _e('Sorry, Untappd importing is only supported for brewery accounts.', EMBM_DOMAIN); ?></p>
    33     <p><?php _e('Please re-authorize with a brewery account to use this feature.', EMBM_DOMAIN); ?></p>
     32    <p class="warning"><?php _e('Sorry, Untappd importing is only supported for brewery accounts.', 'embm'); ?></p>
     33    <p><?php _e('Please re-authorize with a brewery account to use this feature.', 'embm'); ?></p>
    3434    <p>
    35         <button class="embm-labs--reauthorize button-secondary"><?php _e('Re-authorize with Untappd', EMBM_DOMAIN); ?></button><br />
    36         <small><em><?php _e('You will need to log out of the Untappd.com website before re-authorizing.', EMBM_DOMAIN); ?></em></small>
     35        <button class="embm-labs--reauthorize button-secondary"><?php _e('Re-authorize with Untappd', 'embm'); ?></button><br />
     36        <small><em><?php _e('You will need to log out of the Untappd.com website before re-authorizing.', 'embm'); ?></em></small>
    3737    <p>
    3838<?php
     
    166166            <tr>
    167167                <th scope="row">
    168                     <?php _e('Import Specific Beers', EMBM_DOMAIN); ?>
    169                     <p class="description">
    170                         <?php _e('Includes collaboration beers, listed by co-brewer after your brewery\'s beers', EMBM_DOMAIN); ?>
     168                    <?php _e('Import Specific Beers', 'embm'); ?>
     169                    <p class="description">
     170                        <?php _e('Includes collaboration beers, listed by co-brewer after your brewery\'s beers', 'embm'); ?>
    171171                    </p>
    172172                </th>
     
    193193                    </p>
    194194                    <p>
    195                         <a class="button-primary embm-untappd--import" data-type="1"><?php _e('Import Selected Beer(s)', EMBM_DOMAIN); ?></a>
     195                        <a class="button-primary embm-untappd--import" data-type="1"><?php _e('Import Selected Beer(s)', 'embm'); ?></a>
    196196                    </p>
    197197                    <p class="description">
    198198                        <?php
    199199                            printf(
    200                                 __('Use the %s and %s/%s keys to select multiple beers.', EMBM_DOMAIN),
     200                                __('Use the %s and %s/%s keys to select multiple beers.', 'embm'),
    201201                                '<code>shift</code>',
    202202                                '<code>ctrl</code>',
     
    209209            </tr>
    210210            <tr>
    211                 <th scope="row"><?php _e('Import All Beers', EMBM_DOMAIN); ?></th>
     211                <th scope="row"><?php _e('Import All Beers', 'embm'); ?></th>
    212212                <td>
    213213                    <p>
    214214                        <a class="button-primary embm-untappd--import" data-type="3">
    215                             <?php echo __('Import All Beers', EMBM_DOMAIN).' ('.count($beer_list).')'; ?>
     215                            <?php echo __('Import All Beers', 'embm').' ('.count($beer_list).')'; ?>
    216216                        </a>
    217217                    </p>
     
    223223                        />
    224224                        <label for="embm-untappd--import-collabs">
    225                             <?php echo __('Include Collaboration Beers', EMBM_DOMAIN).' ('.count($collab_list).')'; ?>
     225                            <?php echo __('Include Collaboration Beers', 'embm').' ('.count($collab_list).')'; ?>
    226226                        </label>
    227227                    </p>
    228                     <p class="description"><?php _e('If you have a lot of beers, this could take a while.', EMBM_DOMAIN); ?></p>
    229                 </td>
    230             </tr>
    231             <tr>
    232                 <th scope="row"><?php _e('Import Beer By ID', EMBM_DOMAIN); ?></th>
     228                    <p class="description"><?php _e('If you have a lot of beers, this could take a while.', 'embm'); ?></p>
     229                </td>
     230            </tr>
     231            <tr>
     232                <th scope="row"><?php _e('Import Beer By ID', 'embm'); ?></th>
    233233                <td>
    234234                    <p>
     
    237237                            name="embm-untappd-beer-id"
    238238                            type="number"
    239                             placeholder="<?php _e('Untappd Beer ID', EMBM_DOMAIN); ?>"
     239                            placeholder="<?php _e('Untappd Beer ID', 'embm'); ?>"
    240240                        />
    241                         <a class="button-primary embm-untappd--import" data-type="2"><?php _e('Import Beer', EMBM_DOMAIN); ?></a>
     241                        <a class="button-primary embm-untappd--import" data-type="2"><?php _e('Import Beer', 'embm'); ?></a>
    242242                        <a data-help="embm-untappd-beer-id" class="embm-settings--help">?</a>
    243243                    </p>
    244244                    <p class="description">
    245                         <?php _e('Import beers from your brewery account that are not accessible in the features above.', EMBM_DOMAIN); ?>
    246                     </p>
    247                 </td>
    248             </tr>
    249             <tr>
    250                 <th scope="row"><?php _e('Refresh Untappd Data', EMBM_DOMAIN); ?></th>
    251                 <td>
    252                     <p><a href="#" class="embm-untappd--flush button-secondary"><?php _e('Flush Cache', EMBM_DOMAIN); ?></a></p>
    253                     <p class="description">
    254                         <?php _e('Update the data from Untappd used in the above features. This is automatically done daily.', EMBM_DOMAIN); ?>
    255                     </p>
    256                 </td>
    257             </tr>
    258             <tr>
    259                 <th scope="row"><?php _e('Sync Untappd Data', EMBM_DOMAIN); ?></th>
    260                 <td>
    261                     <p>
    262                         <a href="#" class="embm-untappd--sync button-secondary"><?php _e('Sync Data', EMBM_DOMAIN); ?></a>
     245                        <?php _e('Import beers from your brewery account that are not accessible in the features above.', 'embm'); ?>
     246                    </p>
     247                </td>
     248            </tr>
     249            <tr>
     250                <th scope="row"><?php _e('Refresh Untappd Data', 'embm'); ?></th>
     251                <td>
     252                    <p><a href="#" class="embm-untappd--flush button-secondary"><?php _e('Flush Cache', 'embm'); ?></a></p>
     253                    <p class="description">
     254                        <?php _e('Update the data from Untappd used in the above features. This is automatically done daily.', 'embm'); ?>
     255                    </p>
     256                </td>
     257            </tr>
     258            <tr>
     259                <th scope="row"><?php _e('Sync Untappd Data', 'embm'); ?></th>
     260                <td>
     261                    <p>
     262                        <a href="#" class="embm-untappd--sync button-secondary"><?php _e('Sync Data', 'embm'); ?></a>
    263263                    </p>
    264264                    <p>
     
    269269                        />
    270270                        <label for="embm-untappd--sync-delete">
    271                             <?php _e('Delete Missing', EMBM_DOMAIN); ?>
     271                            <?php _e('Delete Missing', 'embm'); ?>
    272272                        </label>
    273273                        <a data-help="embm-untappd-api-sync" class="embm-settings--help">?</a>
    274274                    </p>
    275275                    <p class="description">
    276                         <?php _e('Update your WordPress beers with data from Untappd.', EMBM_DOMAIN); ?>
     276                        <?php _e('Update your WordPress beers with data from Untappd.', 'embm'); ?>
    277277                    </p>
    278278                </td>
  • em-beer-manager/trunk/includes/admin/tabs/embm-tabs-usage.php

    r1746554 r1746561  
    2424    array(
    2525        'id'       => 'embm_single_beer_display',
    26         'title'    => 'Single Beer Display'
     26        'title'    => __('Single Beer Display', 'embm')
    2727    ),
    2828    array(
    2929        'id'       => 'embm_list_all_beers',
    30         'title'    => 'List All Beers'
     30        'title'    => __('List All Beers', 'embm')
    3131    ),
    3232    array(
    3333        'id'       => 'embm_beer_menu_display',
    34         'title'    => 'Beer Menu Display'
     34        'title'    => __('Beer Menu Display', 'embm')
    3535    )
    3636);
     
    4141    <span
    4242        class="dashicons dashicons-arrow-right-alt2"
    43         title="<?php _e('Collpase/Expand Panel', EMBM_DOMAIN); ?>"
     43        title="<?php _e('Collpase/Expand Panel', 'embm'); ?>"
    4444        id="embm-usage--navbox-toggle">
    4545    </span>
    4646    <ul>
    4747        <li><strong>Jump to:</strong></li>
    48         <li><a href="#top"><?php _e('Top', EMBM_DOMAIN); ?></a></li>
     48        <li><a href="#top"><?php _e('Top', 'embm'); ?></a></li>
    4949        <?php foreach ($sections as $section): ?>
    5050            <li>
     
    5656
    5757<a name="embm_single_beer_display"></a>
    58 <h2><?php _e('Single Beer Display', EMBM_DOMAIN); ?></h2>
    59 
    60 <p><?php _e('These will display a single beer entry given it\'s ID number.', EMBM_DOMAIN); ?></p>
    61 
    62 <h3 class="embm-settings--subhead"><?php _e('Shortcode', EMBM_DOMAIN); ?></h3>
     58<h2><?php _e('Single Beer Display', 'embm'); ?></h2>
     59
     60<p><?php _e('These will display a single beer entry given it\'s ID number.', 'embm'); ?></p>
     61
     62<h3 class="embm-settings--subhead"><?php _e('Shortcode', 'embm'); ?></h3>
    6363
    6464<blockquote>
     
    6666</blockquote>
    6767
    68 <h3 class="embm-settings--subhead"><?php _e('Template tag', EMBM_DOMAIN); ?></h3>
     68<h3 class="embm-settings--subhead"><?php _e('Template tag', 'embm'); ?></h3>
    6969
    7070<blockquote>
     
    7373        <?php
    7474            printf(
    75                 __('Where %s is required and %s is a PHP array of comma-separated %s pairs. For example', EMBM_DOMAIN),
     75                __('Where %s is required and %s is a PHP array of comma-separated %s pairs. For example', 'embm'),
    7676                '<code>$beer_id</code>',
    7777                '<code>$args</code>',
    78                 sprintf('<code>%s => %s</code>', __('key', EMBM_DOMAIN), __('value', EMBM_DOMAIN))
     78                sprintf('<code>%s => %s</code>', __('key', 'embm'), __('value', 'embm'))
    7979            );
    8080        ?>:
     
    9595</blockquote>
    9696
    97 <h3 class="embm-settings--subhead"><?php _e('Options', EMBM_DOMAIN); ?></h3>
    98 
    99 <p><?php _e('For use with both the shortcode and template code.', EMBM_DOMAIN); ?></p>
     97<h3 class="embm-settings--subhead"><?php _e('Options', 'embm'); ?></h3>
     98
     99<p><?php _e('For use with both the shortcode and template code.', 'embm'); ?></p>
    100100
    101101<table class="embm-settings--table" cellpadding="0" cellspacing="0" border="0">
    102102    <thead>
    103103        <tr>
    104             <th><?php _e('Option Name', EMBM_DOMAIN); ?></th>
    105             <th><?php _e('Values', EMBM_DOMAIN); ?></th>
    106             <th><?php _e('Default', EMBM_DOMAIN); ?></th>
    107             <th><?php _e('Description', EMBM_DOMAIN); ?></th>
     104            <th><?php _e('Option Name', 'embm'); ?></th>
     105            <th><?php _e('Values', 'embm'); ?></th>
     106            <th><?php _e('Default', 'embm'); ?></th>
     107            <th><?php _e('Description', 'embm'); ?></th>
    108108        </tr>
    109109    </thead>
     
    113113            <td><code>true, false</code></td>
    114114            <td><code>true</code></td>
    115             <td><?php _e('Displays or hides the "Beer Profile" information', EMBM_DOMAIN); ?></td>
     115            <td><?php _e('Displays or hides the "Beer Profile" information', 'embm'); ?></td>
    116116        </tr>
    117117        <tr>
     
    119119            <td><code>true, false</code></td>
    120120            <td><code>true</code></td>
    121             <td><?php _e('Displays or hides the "Extra Beer Information" section', EMBM_DOMAIN); ?></td>
     121            <td><?php _e('Displays or hides the "Extra Beer Information" section', 'embm'); ?></td>
    122122        </tr>
    123123        <tr>
     
    125125            <td><code>true, false</code></td>
    126126            <td><code>true</code></td>
    127             <td><?php _e('Displays or hides the Untappd beer rating', EMBM_DOMAIN); ?></td>
     127            <td><?php _e('Displays or hides the Untappd beer rating', 'embm'); ?></td>
    128128        </tr>
    129129        <tr>
     
    131131            <td><code>true, false</code></td>
    132132            <td><code>true</code></td>
    133             <td><?php _e('Displays or hides the Untappd check-ins section', EMBM_DOMAIN); ?></td>
     133            <td><?php _e('Displays or hides the Untappd check-ins section', 'embm'); ?></td>
    134134        </tr>
    135135        <tr>
    136136            <td><code><strong>checkins_count</strong></code></td>
    137             <td><?php _e('A number', EMBM_DOMAIN); ?><br /> e.g. <code>10</code></td>
     137            <td><?php _e('A number', 'embm'); ?><br /> e.g. <code>10</code></td>
    138138            <td><code>5</code></td>
    139139            <td><?php printf(
    140                 __('The number of recent Untappd check-ins to display. Limit is %s.', EMBM_DOMAIN),
     140                __('The number of recent Untappd check-ins to display. Limit is %s.', 'embm'),
    141141                '<code>15</code>'
    142142            ); ?></td>
     
    148148
    149149<a name="embm_list_all_beers"></a>
    150 <h2><?php _e('List All Beers', EMBM_DOMAIN); ?></h2>
    151 
    152 <p><?php _e('These will display a formatted listing of all beers.', EMBM_DOMAIN); ?></p>
    153 
    154 <h3 class="embm-settings--subhead"><?php _e('Shortcode', EMBM_DOMAIN); ?></h3>
     150<h2><?php _e('List All Beers', 'embm'); ?></h2>
     151
     152<p><?php _e('These will display a formatted listing of all beers.', 'embm'); ?></p>
     153
     154<h3 class="embm-settings--subhead"><?php _e('Shortcode', 'embm'); ?></h3>
    155155
    156156<blockquote>
     
    158158</blockquote>
    159159
    160 <h3 class="embm-settings--subhead"><?php _e('Template tag', EMBM_DOMAIN); ?></h3>
     160<h3 class="embm-settings--subhead"><?php _e('Template tag', 'embm'); ?></h3>
    161161
    162162<blockquote>
     
    165165        <?php
    166166            printf(
    167                 __('Where %s is a PHP array of comma-separated %s pairs. For example', EMBM_DOMAIN),
     167                __('Where %s is a PHP array of comma-separated %s pairs. For example', 'embm'),
    168168                '<code>$args</code>',
    169                 sprintf('<code>%s => %s</code>', __('key', EMBM_DOMAIN), __('value', EMBM_DOMAIN))
     169                sprintf('<code>%s => %s</code>', __('key', 'embm'), __('value', 'embm'))
    170170            );
    171171        ?>:
     
    186186</blockquote>
    187187
    188 <h3 class="embm-settings--subhead"><?php _e('Options', EMBM_DOMAIN); ?></h3>
    189 
    190 <p><?php _e('For use with both the shortcode and template code.', EMBM_DOMAIN); ?></p>
     188<h3 class="embm-settings--subhead"><?php _e('Options', 'embm'); ?></h3>
     189
     190<p><?php _e('For use with both the shortcode and template code.', 'embm'); ?></p>
    191191
    192192<table class="embm-settings--table" cellpadding="0" cellspacing="0" border="0">
    193193    <thead>
    194194        <tr>
    195             <th><?php _e('Option Name', EMBM_DOMAIN); ?></th>
    196             <th><?php _e('Values', EMBM_DOMAIN); ?></th>
    197             <th><?php _e('Default', EMBM_DOMAIN); ?></th>
    198             <th><?php _e('Description', EMBM_DOMAIN); ?></th>
     195            <th><?php _e('Option Name', 'embm'); ?></th>
     196            <th><?php _e('Values', 'embm'); ?></th>
     197            <th><?php _e('Default', 'embm'); ?></th>
     198            <th><?php _e('Description', 'embm'); ?></th>
    199199        </tr>
    200200    </thead>
     
    204204            <td><code>true, false</code></td>
    205205            <td><code>true</code></td>
    206             <td><?php _e('Displays or hides the "Beer Profile" information for each listing', EMBM_DOMAIN); ?></td>
     206            <td><?php _e('Displays or hides the "Beer Profile" information for each listing', 'embm'); ?></td>
    207207        </tr>
    208208        <tr>
     
    210210            <td><code>true, false</code></td>
    211211            <td><code>true</code></td>
    212             <td><?php _e('Displays or hides the "Extra Beer Information" section for each listing', EMBM_DOMAIN); ?></td>
     212            <td><?php _e('Displays or hides the "Extra Beer Information" section for each listing', 'embm'); ?></td>
    213213        </tr>
    214214        <tr>
     
    216216            <td><code>true, false</code></td>
    217217            <td><code>true</code></td>
    218             <td><?php _e('Displays or hides the Untappd beer rating', EMBM_DOMAIN); ?></td>
     218            <td><?php _e('Displays or hides the Untappd beer rating', 'embm'); ?></td>
    219219        </tr>
    220220        <tr>
    221221            <td><code><strong>style</strong></code></td>
    222             <td><?php _e('Comma-separated list of style names, slugs, or IDs', EMBM_DOMAIN); ?><br />e.g. <code>"india-pale-ale, pale-ale"</code></td>
     222            <td><?php _e('Comma-separated list of style names, slugs, or IDs', 'embm'); ?><br />e.g. <code>"india-pale-ale, pale-ale"</code></td>
    223223            <td>n/a</td>
    224             <td><?php _e('Displays only beers belonging to specific beer styles', EMBM_DOMAIN); ?></td>
     224            <td><?php _e('Displays only beers belonging to specific beer styles', 'embm'); ?></td>
    225225        </tr>
    226226        <tr>
    227227            <td><code><strong>group</strong></code></td>
    228             <td><?php _e('Comma-separated list of group names, slugs, or IDs', EMBM_DOMAIN); ?><br />e.g. <code>"Seasonal, Barrel-Aged"</code></td>
     228            <td><?php _e('Comma-separated list of group names, slugs, or IDs', 'embm'); ?><br />e.g. <code>"Seasonal, Barrel-Aged"</code></td>
    229229            <td>n/a</td>
    230             <td><?php _e('Displays only beers belonging to specific groups', EMBM_DOMAIN); ?></td>
     230            <td><?php _e('Displays only beers belonging to specific groups', 'embm'); ?></td>
    231231        </tr>
    232232        <tr>
    233233            <td><code><strong>exclude</strong></code></td>
    234             <td><?php _e('Comma-separated list of beer IDs', EMBM_DOMAIN); ?><br />e.g. <code>"4,23,24"</code></td>
     234            <td><?php _e('Comma-separated list of beer IDs', 'embm'); ?><br />e.g. <code>"4,23,24"</code></td>
    235235            <td>n/a</td>
    236             <td><?php _e('Hides listed beers from output', EMBM_DOMAIN); ?></td>
     236            <td><?php _e('Hides listed beers from output', 'embm'); ?></td>
    237237        </tr>
    238238        <tr>
    239239            <td><code><strong>beers_per_page</strong></code></td>
    240             <td><?php _e('A number', EMBM_DOMAIN); ?><br /> e.g. <code>5</code></td>
    241             <td><code>-1</code><br /><?php _e('Shows all beers', EMBM_DOMAIN); ?></td>
    242             <td><?php _e('Paginates output and displays the given number of beers per page', EMBM_DOMAIN); ?></td>
     240            <td><?php _e('A number', 'embm'); ?><br /> e.g. <code>5</code></td>
     241            <td><code>-1</code><br /><?php _e('Shows all beers', 'embm'); ?></td>
     242            <td><?php _e('Paginates output and displays the given number of beers per page', 'embm'); ?></td>
    243243        </tr>
    244244        <tr>
    245245            <td><code><strong>offset</strong></code></td>
    246             <td><?php _e('A number', EMBM_DOMAIN); ?><br /> e.g. <code>2</code></td>
    247             <td><code>0</code><br /><?php _e('Starts at the first beer', EMBM_DOMAIN); ?></td>
    248             <td><?php _e('Offsets the output of beers by given number', EMBM_DOMAIN); ?></td>
     246            <td><?php _e('A number', 'embm'); ?><br /> e.g. <code>2</code></td>
     247            <td><code>0</code><br /><?php _e('Starts at the first beer', 'embm'); ?></td>
     248            <td><?php _e('Offsets the output of beers by given number', 'embm'); ?></td>
    249249        </tr>
    250250        <tr>
     
    252252            <td><code>true, false</code></td>
    253253            <td><code>true</code></td>
    254             <td><?php _e('Disables/enables pagination', EMBM_DOMAIN); ?></td>
     254            <td><?php _e('Disables/enables pagination', 'embm'); ?></td>
    255255        </tr>
    256256        <tr>
     
    259259                <?php
    260260                    printf(
    261                         __('See %s for options', EMBM_DOMAIN),
     261                        __('See %s for options', 'embm'),
    262262                        sprintf(
    263263                            '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">%s</a>',
    264                             __('this list', EMBM_DOMAIN)
     264                            __('this list', 'embm')
    265265                        )
    266266                    );
     
    268268            </td>
    269269            <td><code>"date"</code></td>
    270             <td><?php _e('Orders beer list output by the given parameter', EMBM_DOMAIN); ?></td>
     270            <td><?php _e('Orders beer list output by the given parameter', 'embm'); ?></td>
    271271        </tr>
    272272        <tr>
     
    277277                <?php
    278278                    printf(
    279                         __('Sorts beer list by %s value in ascending or descending order', EMBM_DOMAIN),
     279                        __('Sorts beer list by %s value in ascending or descending order', 'embm'),
    280280                        '<code>orderby</code>'
    281281                    );
     
    289289
    290290<a name="embm_beer_menu_display"></a>
    291 <h2><?php _e('Beer Menu Display', EMBM_DOMAIN); ?></h2>
    292 
    293 <p><?php _e('These will display a beer menu given it\'s Name, Slug, or ID number.', EMBM_DOMAIN); ?></p>
    294 
    295 <h3 class="embm-settings--subhead"><?php _e('Shortcode', EMBM_DOMAIN); ?></h3>
     291<h2><?php _e('Beer Menu Display', 'embm'); ?></h2>
     292
     293<p><?php _e('These will display a beer menu given it\'s Name, Slug, or ID number.', 'embm'); ?></p>
     294
     295<h3 class="embm-settings--subhead"><?php _e('Shortcode', 'embm'); ?></h3>
    296296
    297297<blockquote>
     
    299299</blockquote>
    300300
    301 <h3 class="embm-settings--subhead"><?php _e('Template tag', EMBM_DOMAIN); ?></h3>
     301<h3 class="embm-settings--subhead"><?php _e('Template tag', 'embm'); ?></h3>
    302302
    303303<blockquote>
     
    306306        <?php
    307307            printf(
    308                 __('Where %s is required and %s is a PHP array of comma-separated %s pairs. For example', EMBM_DOMAIN),
     308                __('Where %s is required and %s is a PHP array of comma-separated %s pairs. For example', 'embm'),
    309309                '<code>$menu_id</code>',
    310310                '<code>$args</code>',
    311                 sprintf('<code>%s => %s</code>', __('key', EMBM_DOMAIN), __('value', EMBM_DOMAIN))
     311                sprintf('<code>%s => %s</code>', __('key', 'embm'), __('value', 'embm'))
    312312            );
    313313        ?>:
     
    330330</blockquote>
    331331
    332 <h3 class="embm-settings--subhead"><?php _e('Options', EMBM_DOMAIN); ?></h3>
    333 
    334 <p><?php _e('For use with both the shortcode and template code.', EMBM_DOMAIN); ?></p>
     332<h3 class="embm-settings--subhead"><?php _e('Options', 'embm'); ?></h3>
     333
     334<p><?php _e('For use with both the shortcode and template code.', 'embm'); ?></p>
    335335
    336336<table class="embm-settings--table" cellpadding="0" cellspacing="0" border="0">
    337337    <thead>
    338338        <tr>
    339             <th><?php _e('Option Name', EMBM_DOMAIN); ?></th>
    340             <th><?php _e('Values', EMBM_DOMAIN); ?></th>
    341             <th><?php _e('Default', EMBM_DOMAIN); ?></th>
    342             <th><?php _e('Description', EMBM_DOMAIN); ?></th>
     339            <th><?php _e('Option Name', 'embm'); ?></th>
     340            <th><?php _e('Values', 'embm'); ?></th>
     341            <th><?php _e('Default', 'embm'); ?></th>
     342            <th><?php _e('Description', 'embm'); ?></th>
    343343        </tr>
    344344    </thead>
     
    348348            <td><code>true, false</code></td>
    349349            <td><code>true</code></td>
    350             <td><?php _e('Displays or hides the Untappd beer rating', EMBM_DOMAIN); ?></td>
     350            <td><?php _e('Displays or hides the Untappd beer rating', 'embm'); ?></td>
    351351        </tr>
    352352        <tr>
     
    354354            <td><code>true, false</code></td>
    355355            <td><code>true</code></td>
    356             <td><?php _e('Displays or hides the menu\'s last updated timestamp', EMBM_DOMAIN); ?></td>
     356            <td><?php _e('Displays or hides the menu\'s last updated timestamp', 'embm'); ?></td>
    357357        </tr>
    358358        <tr>
     
    360360            <td><code>true, false</code></td>
    361361            <td><code>true</code></td>
    362             <td><?php _e('Displays or hides the beer featured image thumbnails', EMBM_DOMAIN); ?></td>
     362            <td><?php _e('Displays or hides the beer featured image thumbnails', 'embm'); ?></td>
    363363        </tr>
    364364        <tr>
     
    366366            <td><code>true, false</code></td>
    367367            <td><code>true</code></td>
    368             <td><?php _e('Displays or hides the menu section descriptions', EMBM_DOMAIN); ?></td>
     368            <td><?php _e('Displays or hides the menu section descriptions', 'embm'); ?></td>
    369369        </tr>
    370370    </tbody>
  • em-beer-manager/trunk/includes/admin/tabs/embm-tabs-utfb.php

    r1746554 r1746561  
    3232    <div id="embm-labs-utfb">
    3333        <hr />
    34         <h3><?php _e('Connect your Untappd for Business account', EMBM_DOMAIN); ?>:</h3>
     34        <h3><?php _e('Connect your Untappd for Business account', 'embm'); ?>:</h3>
    3535        <table class="form-table">
    3636            <tbody>
    3737                <tr>
    38                     <th scope="row"><?php _e('API Key', EMBM_DOMAIN); ?></th>
     38                    <th scope="row"><?php _e('API Key', 'embm'); ?></th>
    3939                    <td>
    4040                        <p>
     
    4444                        <p class="description">
    4545                            <?php printf(
    46                                 __('You can find your API key under the %s section %s.', EMBM_DOMAIN),
    47                                 sprintf('<strong>"%s"</strong>', __('API Access Tokens', EMBM_DOMAIN)),
     46                                __('You can find your API key under the %s section %s.', 'embm'),
     47                                sprintf('<strong>"%s"</strong>', __('API Access Tokens', 'embm')),
    4848                                sprintf(
    4949                                    '<a href="%s" target="_blank">%s</a>',
    5050                                    'https://business.untappd.com/api_tokens',
    51                                     __('here', EMBM_DOMAIN)
     51                                    __('here', 'embm')
    5252                                )
    5353                            ); ?>
     
    5656                </tr>
    5757                <tr>
    58                     <th scope="row"><?php _e('Account Email', EMBM_DOMAIN); ?></th>
     58                    <th scope="row"><?php _e('Account Email', 'embm'); ?></th>
    5959                    <td>
    6060                        <p><input value="" id="embm-utfb--email" type="text"></p>
     
    6464                    <th colspan="2">
    6565                        <p>
    66                             <a href="#" class="embm-utfb--connect button-primary"><?php _e('Connect Account', EMBM_DOMAIN); ?></a>
     66                            <a href="#" class="embm-utfb--connect button-primary"><?php _e('Connect Account', 'embm'); ?></a>
    6767                        </p>
    6868                    </th>
     
    7979    printf(
    8080        '<p class="description">%s%s</p>',
    81         __('You will be asked to connect your Untappd for Business account after logging in to your Untappd account.', EMBM_DOMAIN),
     81        __('You will be asked to connect your Untappd for Business account after logging in to your Untappd account.', 'embm'),
    8282        '<a data-help="embm-utfb-integration" class="embm-settings--help">?</a>'
    8383    );
     
    121121    <div class="embm-settings--status">
    122122        <p>
    123             <?php _e('You are connected to Untappd for Business as', EMBM_DOMAIN); ?>:
     123            <?php _e('You are connected to Untappd for Business as', 'embm'); ?>:
    124124            <a
    125125                href="<?php echo $href; ?>"
     
    130130                class="dashicons dashicons-admin-users"
    131131            ></span><strong><?php echo $account->name; ?></strong></a>
    132             <a href="#" class="embm-utfb--disconnect button button-small"><?php _e('Disconnect', EMBM_DOMAIN); ?></a>
     132            <a href="#" class="embm-utfb--disconnect button button-small"><?php _e('Disconnect', 'embm'); ?></a>
    133133        </p>
    134134    </div>
     
    137137        <tbody>
    138138            <tr class="embm-utfb-section embm-utfb-section--location">
    139                 <th scope="row"><?php _e('Select a Location', EMBM_DOMAIN); ?></th>
     139                <th scope="row"><?php _e('Select a Location', 'embm'); ?></th>
    140140                <td>
    141141                    <p>
     
    146146                            data-action="menu"
    147147                        >
    148                             <option value="">-- <?php _e('Select', EMBM_DOMAIN); ?> --</option>
     148                            <option value="">-- <?php _e('Select', 'embm'); ?> --</option>
    149149                            <?php foreach ($locations as $location) :  ?>
    150150                                <option value="<?php echo $location->id; ?>"><?php echo $location->name; ?></option>
     
    153153                        <a data-help="embm-utfb-integration" class="embm-settings--help">?</a>
    154154                    </p>
    155                     <p class="description"><?php _e('Select a location to import data from.', EMBM_DOMAIN); ?></p>
     155                    <p class="description"><?php _e('Select a location to import data from.', 'embm'); ?></p>
    156156                </td>
    157157            </tr>
    158158            <tr class="embm-utfb-section embm-utfb-section--menu">
    159                 <th scope="row"><?php _e('Select or Import a Menu', EMBM_DOMAIN); ?></th>
     159                <th scope="row"><?php _e('Select or Import a Menu', 'embm'); ?></th>
    160160                <td>
    161161                    <p>
     
    166166                            data-action="section"
    167167                        >
    168                             <option value="">-- <?php _e('Select', EMBM_DOMAIN); ?> --</option>
     168                            <option value="">-- <?php _e('Select', 'embm'); ?> --</option>
    169169                        </select>
    170170                        <button
     
    172172                            class="button button-primary embm-utfb--import"
    173173                            data-resource="menu"
    174                         ><?php _e('Import Selected Menu', EMBM_DOMAIN); ?></button>
    175                     </p>
    176                     <p class="description"><?php _e('Import all beers in the selected menu.', EMBM_DOMAIN); ?></p>
     174                        ><?php _e('Import Selected Menu', 'embm'); ?></button>
     175                    </p>
     176                    <p class="description"><?php _e('Import all beers in the selected menu.', 'embm'); ?></p>
    177177                    <p class="embm-utfb-section--import-all">
    178178                        <button
     
    180180                            class="button button-secondary embm-utfb--import"
    181181                            data-resource="menu"
    182                         ><?php _e('Import All Menus', EMBM_DOMAIN); ?><span></span></button>
    183                     </p>
    184                     <p class="description"><?php _e('Imports all beers in all menus for the selected location.', EMBM_DOMAIN); ?></p>
     182                        ><?php _e('Import All Menus', 'embm'); ?><span></span></button>
     183                    </p>
     184                    <p class="description"><?php _e('Imports all beers in all menus for the selected location.', 'embm'); ?></p>
    185185                </td>
    186186            </tr>
    187187            <tr class="embm-utfb-section embm-utfb-section--section">
    188                 <th scope="row"><?php _e('Select or Import a Section', EMBM_DOMAIN); ?></th>
     188                <th scope="row"><?php _e('Select or Import a Section', 'embm'); ?></th>
    189189                <td>
    190190                    <p>
     
    195195                            data-action="beer"
    196196                        >
    197                             <option value="">-- <?php _e('Select', EMBM_DOMAIN); ?> --</option>
     197                            <option value="">-- <?php _e('Select', 'embm'); ?> --</option>
    198198                        </select>
    199199                        <button
     
    201201                            class="button button-primary embm-utfb--import"
    202202                            data-resource="section"
    203                         ><?php _e('Import Selected Section', EMBM_DOMAIN); ?></button>
    204                     </p>
    205                     <p class="description"><?php _e('Import all beers in the selected section.', EMBM_DOMAIN); ?></p>
     203                        ><?php _e('Import Selected Section', 'embm'); ?></button>
     204                    </p>
     205                    <p class="description"><?php _e('Import all beers in the selected section.', 'embm'); ?></p>
    206206                    <p class="embm-utfb-section--import-all">
    207207                        <button
     
    209209                            class="button button-secondary embm-utfb--import"
    210210                            data-resource="section"
    211                         ><?php _e('Import All Sections', EMBM_DOMAIN); ?><span></span></button>
    212                     </p>
    213                     <p class="description"><?php _e('Imports all beers in all sections for the selected menu.', EMBM_DOMAIN); ?></p>
     211                        ><?php _e('Import All Sections', 'embm'); ?><span></span></button>
     212                    </p>
     213                    <p class="description"><?php _e('Imports all beers in all sections for the selected menu.', 'embm'); ?></p>
    214214                </td>
    215215            </tr>
    216216            <tr class="embm-utfb-section embm-utfb-section--beer">
    217                 <th scope="row"><?php _e('Import Beer', EMBM_DOMAIN); ?></th>
     217                <th scope="row"><?php _e('Import Beer', 'embm'); ?></th>
    218218                <td>
    219219                    <p>
     
    223223                            class="embm-utfb--dropdown"
    224224                        >
    225                             <option value="">-- <?php _e('Select', EMBM_DOMAIN); ?> --</option>
     225                            <option value="">-- <?php _e('Select', 'embm'); ?> --</option>
    226226                        </select>
    227227                        <button
     
    229229                            class="button button-primary embm-utfb--import"
    230230                            data-resource="beer"
    231                         ><?php _e('Import Selected Beer', EMBM_DOMAIN); ?></button>
    232                     </p>
    233                     <p class="description"><?php _e('Imports only the selected beer.', EMBM_DOMAIN); ?></p>
     231                        ><?php _e('Import Selected Beer', 'embm'); ?></button>
     232                    </p>
     233                    <p class="description"><?php _e('Imports only the selected beer.', 'embm'); ?></p>
    234234                    <p class="embm-utfb-section--import-all">
    235235                        <button
     
    237237                            class="button button-secondary embm-utfb--import"
    238238                            data-resource="beer"
    239                         ><?php _e('Import All Beers', EMBM_DOMAIN); ?><span></span></button>
    240                     </p>
    241                     <p class="description"><?php _e('Imports all beers in the selected section.', EMBM_DOMAIN); ?></p>
     239                        ><?php _e('Import All Beers', 'embm'); ?><span></span></button>
     240                    </p>
     241                    <p class="description"><?php _e('Imports all beers in the selected section.', 'embm'); ?></p>
    242242                </td>
    243243            </tr>
    244244            <tr>
    245                 <th scope="row"><?php _e('Sync Untappd for Business Data', EMBM_DOMAIN); ?></th>
     245                <th scope="row"><?php _e('Sync Untappd for Business Data', 'embm'); ?></th>
    246246                <td>
    247247                    <p>
     
    249249                            type="button"
    250250                            class="embm-utfb--sync button-secondary"
    251                         ><?php _e('Sync Data', EMBM_DOMAIN); ?></button>
     251                        ><?php _e('Sync Data', 'embm'); ?></button>
    252252                    </p>
    253253                    <p>
     
    258258                        />
    259259                        <label for="embm-utfb--sync-delete">
    260                             <?php _e('Delete Missing', EMBM_DOMAIN); ?>
     260                            <?php _e('Delete Missing', 'embm'); ?>
    261261                        </label>
    262262                        <a data-help="embm-untappd-api-sync" class="embm-settings--help">?</a>
    263263                    </p>
    264264                    <p class="description">
    265                         <?php _e('A location must be selected to use this feature.', EMBM_DOMAIN); ?><br />
    266                         <?php _e('Associate existing beers with your Untappd for Business menus and update menu data.', EMBM_DOMAIN); ?><br />
     265                        <?php _e('A location must be selected to use this feature.', 'embm'); ?><br />
     266                        <?php _e('Associate existing beers with your Untappd for Business menus and update menu data.', 'embm'); ?><br />
    267267                    </p>
    268268                </td>
    269269            </tr>
    270270            <tr>
    271                 <th scope="row"><?php _e('Refresh Untappd for Business Data', EMBM_DOMAIN); ?></th>
    272                 <td>
    273                     <p><a href="#" class="embm-utfb--flush button-secondary"><?php _e('Flush Cache', EMBM_DOMAIN); ?></a></p>
     271                <th scope="row"><?php _e('Refresh Untappd for Business Data', 'embm'); ?></th>
     272                <td>
     273                    <p><a href="#" class="embm-utfb--flush button-secondary"><?php _e('Flush Cache', 'embm'); ?></a></p>
    274274                    <p class="description">
    275                         <?php _e('Update the data from Untappd for Business used in the above features. This is automatically done daily.', EMBM_DOMAIN); ?>
     275                        <?php _e('Update the data from Untappd for Business used in the above features. This is automatically done daily.', 'embm'); ?>
    276276                    </p>
    277277                </td>
  • em-beer-manager/trunk/includes/embm-admin.php

    r1746554 r1746561  
    5656
    5757    // Set sync confirmation text
    58     $confirm = __('Are you sure you want to continue?', EMBM_DOMAIN);
     58    $confirm = __('Are you sure you want to continue?', 'embm');
    5959    $sconfirm = __(
    6060        'WARNING: This will override any changes you have made to %s. %s',
    61         EMBM_DOMAIN
     61        'embm'
    6262    );
    6363    $uconfirm = __(
    6464        'WARNING: This will override any custom menu-beer associations you have made '.
    6565        'as well as any changes made to Untappd for Business-linked menus. %s',
    66         EMBM_DOMAIN
     66        'embm'
    6767    );
    6868    $urmconfirm = __(
    6969        'WARNING: Enabling this will permanently remove any Untappd for Business-linked menus not found during the sync. %s',
    70         EMBM_DOMAIN
     70        'embm'
    7171    );
    7272    $rmconfirm = __(
    7373        'WARNING: Enabling this will move any Untappd-linked beers not found during the sync to the trash. %s',
    74         EMBM_DOMAIN
     74        'embm'
    7575    );
    7676
     
    8383              'plugin_url'           => EMBM_PLUGIN_URL,
    8484              'options'              => get_option(EMBM_OPTIONS),
    85               'error'                => __('There was a problem with your request! Please try again later.', EMBM_DOMAIN),
     85              'error'                => __('There was a problem with your request! Please try again later.', 'embm'),
    8686              'utfb_resources'       => array_keys($GLOBALS['EMBM_UTFB_RESOURCE_MAP']),
    87               'utfb_section_notice'  => __('Select an option from the dropdown in the section above to enable.', EMBM_DOMAIN),
    88               'sync_confirm_plural'  => sprintf($sconfirm, __('ANY Untappd-linked beers', EMBM_DOMAIN), $confirm),
    89               'sync_confirm_single'  => sprintf($sconfirm, __('this beer', EMBM_DOMAIN), $confirm),
     87              'utfb_section_notice'  => __('Select an option from the dropdown in the section above to enable.', 'embm'),
     88              'sync_confirm_plural'  => sprintf($sconfirm, __('ANY Untappd-linked beers', 'embm'), $confirm),
     89              'sync_confirm_single'  => sprintf($sconfirm, __('this beer', 'embm'), $confirm),
    9090              'sync_confirm_utfb'    => sprintf($uconfirm, $confirm),
    9191              'sync_confirm_utfb_rm' => sprintf($urmconfirm, $confirm),
     
    110110    $cols = array(
    111111        'cb'                    => '<input type="checkbox" />',
    112         'id'                    => __('ID', EMBM_DOMAIN),
    113         'beer_num'              => __('Beer No.', EMBM_DOMAIN),
    114         'title'                 => __('Beer', EMBM_DOMAIN),
    115         'taxonomy-'.EMBM_STYLE  => __('Style', EMBM_DOMAIN),
    116         'taxonomy-'.EMBM_GROUP  => __('Group(s)', EMBM_DOMAIN),
    117         'taxonomy-'.EMBM_MENU   => __('Menu(s)', EMBM_DOMAIN),
    118         'abv'                   => __('ABV', EMBM_DOMAIN),
    119         'ibu'                   => __('IBU', EMBM_DOMAIN),
    120         'avail'                 => __('Availability', EMBM_DOMAIN)
     112        'id'                    => __('ID', 'embm'),
     113        'beer_num'              => __('Beer No.', 'embm'),
     114        'title'                 => __('Beer', 'embm'),
     115        'taxonomy-'.EMBM_STYLE  => __('Style', 'embm'),
     116        'taxonomy-'.EMBM_GROUP  => __('Group(s)', 'embm'),
     117        'taxonomy-'.EMBM_MENU   => __('Menu(s)', 'embm'),
     118        'abv'                   => __('ABV', 'embm'),
     119        'ibu'                   => __('IBU', 'embm'),
     120        'avail'                 => __('Availability', 'embm')
    121121    );
    122122
    123123    // Add Untappd columns, if enabled
    124124    if (!EMBM_Core_Beer_disabled()) {
    125         $cols['untappd'] = __('Untappd', EMBM_DOMAIN);
    126         $cols['sync_exclude'] = __('Exclude from Sync', EMBM_DOMAIN);
     125        $cols['untappd'] = __('Untappd', 'embm');
     126        $cols['sync_exclude'] = __('Exclude from Sync', 'embm');
    127127    }
    128128
    129129    // Add released date column
    130     $cols['date'] = __('Released', EMBM_DOMAIN);
     130    $cols['date'] = __('Released', 'embm');
    131131
    132132    // Return new column array
     
    315315        array(
    316316            'id'      => 'embm-utfb-integration',
    317             'title'   => __('Untappd for Business Integration', EMBM_DOMAIN),
     317            'title'   => __('Untappd for Business Integration', 'embm'),
    318318            'content' => '<p><strong>'.
    319                 __('Why is an Untappd account required in addition to an UTFB account?', EMBM_DOMAIN).
     319                __('Why is an Untappd account required in addition to an UTFB account?', 'embm').
    320320                '</strong></p><p>'.
    321                 __('Untappd for Business (UTFB) account credentials do not work with Untappd\'s API. In order to link Untappd data to beers imported from UTFB, Untappd API access is also needed.', EMBM_DOMAIN).
     321                __('Untappd for Business (UTFB) account credentials do not work with Untappd\'s API. In order to link Untappd data to beers imported from UTFB, Untappd API access is also needed.', 'embm').
    322322                '</p><p>'.
    323                 __('An Untappd brewery account is not required to work with UTFB. A standard user account will work.', EMBM_DOMAIN).
     323                __('An Untappd brewery account is not required to work with UTFB. A standard user account will work.', 'embm').
    324324                '</p><p><strong>'.
    325                 __('Where do I find my API key?', EMBM_DOMAIN).
     325                __('Where do I find my API key?', 'embm').
    326326                '</strong></p><p>'.
    327327                sprintf(
    328                     __('You can find your API key under the "API Access Tokens" section %s.', EMBM_DOMAIN),
     328                    __('You can find your API key under the "API Access Tokens" section %s.', 'embm'),
    329329                    sprintf(
    330330                        '<a href="https://business.untappd.com/api_tokens" target="_blank">%s</a>',
    331                         __('here', EMBM_DOMAIN)
     331                        __('here', 'embm')
    332332                    )
    333333                ).
     
    340340        array (
    341341            'id'        => 'embm-untappd-api-sync',
    342             'title'     => __('Syncing', EMBM_DOMAIN),
     342            'title'     => __('Syncing', 'embm'),
    343343            'content'   => '<p>'.
    344                 __('Use the "Sync" feature to update the beers that you have imported from Untappd or Untappd for Business (UTFB).', EMBM_DOMAIN).'</p><p>'.
    345                 __('This will pull in any changes you might have made on Untappd or UTFB, but will override any changes you have made to the imported beers or menus via WordPress.', EMBM_DOMAIN).'</p><p>'.
    346                 __('Use the "Delete Missing" feature to run a sync that will delete any of your Untappd-linked WordPress beers or UTFB-linked menus that no longer exist on Untappd or UTFB. This does not make any changes to your Untappd or UTFB accounts, only to your data in WordPress.', EMBM_DOMAIN).'</p><p>'.
    347                 '<strong>**'.__('IMPORTANT', EMBM_DOMAIN).'**</strong><br />'.
    348                 __('The "Delete Missing" feature works with ALL beers or menus that are attributed to an Untappd or UTFB ID number, not just beers or menus that were imported. This means that beers and menus added manually with an Untappd or UTFB ID associated with them WILL be affected by the "Delete Missing" feature. You can choose to override this functionality by checking the "Exclude from Sync" checkbox for each individual beer or menu on its respective edit page.', EMBM_DOMAIN).
     344                __('Use the "Sync" feature to update the beers that you have imported from Untappd or Untappd for Business (UTFB).', 'embm').'</p><p>'.
     345                __('This will pull in any changes you might have made on Untappd or UTFB, but will override any changes you have made to the imported beers or menus via WordPress.', 'embm').'</p><p>'.
     346                __('Use the "Delete Missing" feature to run a sync that will delete any of your Untappd-linked WordPress beers or UTFB-linked menus that no longer exist on Untappd or UTFB. This does not make any changes to your Untappd or UTFB accounts, only to your data in WordPress.', 'embm').'</p><p>'.
     347                '<strong>**'.__('IMPORTANT', 'embm').'**</strong><br />'.
     348                __('The "Delete Missing" feature works with ALL beers or menus that are attributed to an Untappd or UTFB ID number, not just beers or menus that were imported. This means that beers and menus added manually with an Untappd or UTFB ID associated with them WILL be affected by the "Delete Missing" feature. You can choose to override this functionality by checking the "Exclude from Sync" checkbox for each individual beer or menu on its respective edit page.', 'embm').
    349349                '</p>'
    350350        )
     
    355355        array(
    356356            'id'       => 'embm-settings-faq',
    357             'title'    => __('Settings FAQ', EMBM_DOMAIN),
     357            'title'    => __('Settings FAQ', 'embm'),
    358358            'content'  => '<p><strong>'.
    359                 __('I don\'t want to show that big grey box of information, how do I get rid of it?', EMBM_DOMAIN).
     359                __('I don\'t want to show that big grey box of information, how do I get rid of it?', 'embm').
    360360                '</strong></p><p>'.
    361                 __('For each of the different displays there is the option to "Hide profile info" and "Hide extras info". Check both of these to hide the grey box.', EMBM_DOMAIN).
     361                __('For each of the different displays there is the option to "Hide profile info" and "Hide extras info". Check both of these to hide the grey box.', 'embm').
    362362                '</p><p><strong>'.
    363                 __('What\'s the difference between "profile" and "extras"?', EMBM_DOMAIN).
     363                __('What\'s the difference between "profile" and "extras"?', 'embm').
    364364                '</strong></p><p>'.
    365                 __('The "profile" refers to all the content in the "Beer Profile" information stored for each beer. This includes ABV, IBU, Hops, Malts, Additions, and Yeast.', EMBM_DOMAIN).
     365                __('The "profile" refers to all the content in the "Beer Profile" information stored for each beer. This includes ABV, IBU, Hops, Malts, Additions, and Yeast.', 'embm').
    366366                '</p><p>'.
    367                 __('The "extras" setting refers to the "Extra Beer Information" content stored for each beer. This includes Beer Number, Availability, and Additional Notes.', EMBM_DOMAIN).
     367                __('The "extras" setting refers to the "Extra Beer Information" content stored for each beer. This includes Beer Number, Availability, and Additional Notes.', 'embm').
    368368                '</p>'
    369369        )
  • em-beer-manager/trunk/includes/embm-core.php

    r1746554 r1746561  
    2929    // Set custom post type terminology
    3030    $labels = array(
    31         'name'                  => __('Beers', EMBM_DOMAIN),
    32         'singular_name'         => __('Beer', EMBM_DOMAIN),
    33         'add_new'               => __('Add New', EMBM_DOMAIN),
    34         'add_new_item'          => __('Add New Beer', EMBM_DOMAIN),
    35         'edit_item'             => __('Edit Beer', EMBM_DOMAIN),
    36         'new_item'              => __('New Beer', EMBM_DOMAIN),
    37         'all_items'             => __('All Beers', EMBM_DOMAIN),
    38         'view_item'             => __('View Beer', EMBM_DOMAIN),
    39         'search_items'          => __('Search Beers', EMBM_DOMAIN),
    40         'not_found'             => __('No beers found', EMBM_DOMAIN),
    41         'not_found_in_trash'    => __('No beers found in the Trash', EMBM_DOMAIN),
     31        'name'                  => __('Beers', 'embm'),
     32        'singular_name'         => __('Beer', 'embm'),
     33        'add_new'               => __('Add New', 'embm'),
     34        'add_new_item'          => __('Add New Beer', 'embm'),
     35        'edit_item'             => __('Edit Beer', 'embm'),
     36        'new_item'              => __('New Beer', 'embm'),
     37        'all_items'             => __('All Beers', 'embm'),
     38        'view_item'             => __('View Beer', 'embm'),
     39        'search_items'          => __('Search Beers', 'embm'),
     40        'not_found'             => __('No beers found', 'embm'),
     41        'not_found_in_trash'    => __('No beers found in the Trash', 'embm'),
    4242        'parent_ithwh_colon'    => '',
    43         'menu_name'             => __('Beers', EMBM_DOMAIN)
     43        'menu_name'             => __('Beers', 'embm')
    4444    );
    4545
     
    4747    $args = array(
    4848        'labels'                => $labels,
    49         'description'           => __('Holds beer specific data', EMBM_DOMAIN),
     49        'description'           => __('Holds beer specific data', 'embm'),
    5050        'public'                => true,
    5151        'capability_type'       => 'post',
     
    5858        'rest_controller_class' => 'WP_REST_Posts_Controller',
    5959        'rewrite'               => array(
    60             'slug'              => __('beers', EMBM_DOMAIN),
     60            'slug'              => __('beers', 'embm'),
    6161            'with_front'        => false,
    6262            'feeds'             => true,
     
    217217    // Help sidebar
    218218    $screen->set_help_sidebar(
    219         '<p><a href="' . get_bloginfo('wpurl') . '/wp-admin/admin.php?page=embm-settings">' . __('EM Beer Manager Settings', EMBM_DOMAIN) . '</a></p>' .
     219        '<p><a href="' . get_bloginfo('wpurl') . '/wp-admin/admin.php?page=embm-settings">' . __('EM Beer Manager Settings', 'embm') . '</a></p>' .
    220220        $default_help['sidebar']
    221221    );
     
    370370            'desc'  => sprintf(
    371371                '&starf;&starf;&starf;&starf;&star; (4.0) | 1,234 %s',
    372                 __('Ratings', EMBM_DOMAIN)
     372                __('Ratings', 'embm')
    373373            )
    374374        )
     
    403403    // Set custom taxonomy terminology
    404404    $labels = array(
    405         'name'                          => __('Styles', EMBM_DOMAIN),
    406         'singular_name'                 => __('Style', EMBM_DOMAIN),
    407         'search_items'                  => __('Search Styles', EMBM_DOMAIN),
    408         'all_items'                     => __('All Styles', EMBM_DOMAIN),
    409         'edit_item'                     => __('Edit Style', EMBM_DOMAIN),
    410         'update_item'                   => __('Update Style', EMBM_DOMAIN),
    411         'add_new_item'                  => __('Add New Style', EMBM_DOMAIN),
    412         'new_item_name'                 => __('New Style Name', EMBM_DOMAIN),
    413         'popular_items'                 => __('Popular Styles', EMBM_DOMAIN),
    414         'choose_from_most_used'         => __('Choose from the most used styles', EMBM_DOMAIN),
    415         'separate_items_with_commas'    => __('Separate styles with commas', EMBM_DOMAIN),
    416         'add_or_remove_items'           => __('Add or remove styles', EMBM_DOMAIN),
    417         'menu_name'                     => __('Styles', EMBM_DOMAIN)
     405        'name'                          => __('Styles', 'embm'),
     406        'singular_name'                 => __('Style', 'embm'),
     407        'search_items'                  => __('Search Styles', 'embm'),
     408        'all_items'                     => __('All Styles', 'embm'),
     409        'edit_item'                     => __('Edit Style', 'embm'),
     410        'update_item'                   => __('Update Style', 'embm'),
     411        'add_new_item'                  => __('Add New Style', 'embm'),
     412        'new_item_name'                 => __('New Style Name', 'embm'),
     413        'popular_items'                 => __('Popular Styles', 'embm'),
     414        'choose_from_most_used'         => __('Choose from the most used styles', 'embm'),
     415        'separate_items_with_commas'    => __('Separate styles with commas', 'embm'),
     416        'add_or_remove_items'           => __('Add or remove styles', 'embm'),
     417        'menu_name'                     => __('Styles', 'embm')
    418418    );
    419419
     
    426426        'query_var'             => true,
    427427        'rewrite'               => array(
    428             'slug'              => __('beers/style', EMBM_DOMAIN),
     428            'slug'              => __('beers/style', 'embm'),
    429429            'with_front'        => false
    430430        ),
     
    486486    // Set custom taxonomy terminology
    487487    $labels = array(
    488         'name'                          => __('Groups', EMBM_DOMAIN),
    489         'singular_name'                 => __('Group', EMBM_DOMAIN),
    490         'search_items'                  => __('Search Groups', EMBM_DOMAIN),
    491         'all_items'                     => __('All Groups', EMBM_DOMAIN),
    492         'edit_item'                     => __('Edit Group', EMBM_DOMAIN),
    493         'update_item'                   => __('Update Group', EMBM_DOMAIN),
    494         'add_new_item'                  => __('Add New Group', EMBM_DOMAIN),
    495         'new_item_name'                 => __('New Group Name', EMBM_DOMAIN),
    496         'popular_items'                 => __('Popular Groups', EMBM_DOMAIN),
    497         'choose_from_most_used'         => __('Choose from the most used groups', EMBM_DOMAIN),
    498         'separate_items_with_commas'    => __('Separate groups with commas', EMBM_DOMAIN),
    499         'add_or_remove_items'           => __('Add or remove groups', EMBM_DOMAIN),
    500         'menu_name'                     => __('Groups', EMBM_DOMAIN)
     488        'name'                          => __('Groups', 'embm'),
     489        'singular_name'                 => __('Group', 'embm'),
     490        'search_items'                  => __('Search Groups', 'embm'),
     491        'all_items'                     => __('All Groups', 'embm'),
     492        'edit_item'                     => __('Edit Group', 'embm'),
     493        'update_item'                   => __('Update Group', 'embm'),
     494        'add_new_item'                  => __('Add New Group', 'embm'),
     495        'new_item_name'                 => __('New Group Name', 'embm'),
     496        'popular_items'                 => __('Popular Groups', 'embm'),
     497        'choose_from_most_used'         => __('Choose from the most used groups', 'embm'),
     498        'separate_items_with_commas'    => __('Separate groups with commas', 'embm'),
     499        'add_or_remove_items'           => __('Add or remove groups', 'embm'),
     500        'menu_name'                     => __('Groups', 'embm')
    501501    );
    502502
     
    543543    // Set custom taxonomy terminology
    544544    $labels = array(
    545         'name'                          => __('Menus', EMBM_DOMAIN),
    546         'singular_name'                 => __('Menu', EMBM_DOMAIN),
    547         'search_items'                  => __('Search Menus', EMBM_DOMAIN),
    548         'all_items'                     => __('All Menus', EMBM_DOMAIN),
    549         'edit_item'                     => __('Edit Menu', EMBM_DOMAIN),
    550         'update_item'                   => __('Update Menu', EMBM_DOMAIN),
    551         'add_new_item'                  => __('Add New Menu', EMBM_DOMAIN),
    552         'new_item_name'                 => __('New Menu Name', EMBM_DOMAIN),
    553         'popular_items'                 => __('Popular Menus', EMBM_DOMAIN),
    554         'choose_from_most_used'         => __('Choose from the most used menus', EMBM_DOMAIN),
    555         'separate_items_with_commas'    => __('Separate menus with commas', EMBM_DOMAIN),
    556         'add_or_remove_items'           => __('Add or remove menus', EMBM_DOMAIN),
    557         'menu_name'                     => __('Menus', EMBM_DOMAIN)
     545        'name'                          => __('Menus', 'embm'),
     546        'singular_name'                 => __('Menu', 'embm'),
     547        'search_items'                  => __('Search Menus', 'embm'),
     548        'all_items'                     => __('All Menus', 'embm'),
     549        'edit_item'                     => __('Edit Menu', 'embm'),
     550        'update_item'                   => __('Update Menu', 'embm'),
     551        'add_new_item'                  => __('Add New Menu', 'embm'),
     552        'new_item_name'                 => __('New Menu Name', 'embm'),
     553        'popular_items'                 => __('Popular Menus', 'embm'),
     554        'choose_from_most_used'         => __('Choose from the most used menus', 'embm'),
     555        'separate_items_with_commas'    => __('Separate menus with commas', 'embm'),
     556        'add_or_remove_items'           => __('Add or remove menus', 'embm'),
     557        'menu_name'                     => __('Menus', 'embm')
    558558    );
    559559
     
    788788        return array(
    789789            'type'          => 'object',
    790             'description'   => esc_html__('The beer profile information for the object.', EMBM_DOMAIN),
     790            'description'   => esc_html__('The beer profile information for the object.', 'embm'),
    791791            'context'       => array('view', 'edit'),
    792792            'items'         => array(
    793793                'malts'     => array(
    794                     'description'   => esc_html__('The beer malt data for the object.', EMBM_DOMAIN),
     794                    'description'   => esc_html__('The beer malt data for the object.', 'embm'),
    795795                    'type'          => 'string'
    796796                ),
    797797                'hops'      => array(
    798                     'description'   => esc_html__('The beer hops data for the object.', EMBM_DOMAIN),
     798                    'description'   => esc_html__('The beer hops data for the object.', 'embm'),
    799799                    'type'          => 'string'
    800800                ),
    801801                'additions' => array(
    802                     'description'   => esc_html__('The beer additions/spices data for the object.', EMBM_DOMAIN),
     802                    'description'   => esc_html__('The beer additions/spices data for the object.', 'embm'),
    803803                    'type'          => 'string'
    804804                ),
    805805                'yeast'     => array(
    806                     'description'   => esc_html__('The beer yeast data for the object.', EMBM_DOMAIN),
     806                    'description'   => esc_html__('The beer yeast data for the object.', 'embm'),
    807807                    'type'          => 'string'
    808808                ),
    809809                'ibu'       => array(
    810                     'description'   => esc_html__('The beer IBU measurement for the object.', EMBM_DOMAIN),
     810                    'description'   => esc_html__('The beer IBU measurement for the object.', 'embm'),
    811811                    'type'          => 'integer'
    812812                ),
    813813                'abv'       => array(
    814                     'description'   => esc_html__('The beer ABV percentage for the object.', EMBM_DOMAIN),
     814                    'description'   => esc_html__('The beer ABV percentage for the object.', 'embm'),
    815815                    'type'          => 'number'
    816816                )
     
    823823        return array(
    824824            'type'          => 'object',
    825             'description'   => esc_html__('The beer extras information for the object.', EMBM_DOMAIN),
     825            'description'   => esc_html__('The beer extras information for the object.', 'embm'),
    826826            'context'       => array('view', 'edit'),
    827827            'items'         => array(
    828828                'availability'  => array(
    829                     'description'   => esc_html__('The beer availability data for the object.', EMBM_DOMAIN),
     829                    'description'   => esc_html__('The beer availability data for the object.', 'embm'),
    830830                    'type'          => 'string'
    831831                ),
    832832                'notes'         => array(
    833                     'description'   => esc_html__('The beer additional notes/food parings data for the object.', EMBM_DOMAIN),
     833                    'description'   => esc_html__('The beer additional notes/food parings data for the object.', 'embm'),
    834834                    'type'          => 'string'
    835835                ),
    836836                'beer_number'   => array(
    837                     'description'   => esc_html__('The beer number for the object.', EMBM_DOMAIN),
     837                    'description'   => esc_html__('The beer number for the object.', 'embm'),
    838838                    'type'          => 'integer'
    839839                )
     
    846846        return array(
    847847            'type'          => 'object',
    848             'description'   => esc_html__('The Untappd information for the object.', EMBM_DOMAIN),
     848            'description'   => esc_html__('The Untappd information for the object.', 'embm'),
    849849            'context'       => array('view', 'edit'),
    850850            'items'         => array(
    851851                'id'    => array(
    852                     'description'   => esc_html__('The Untappd ID for the object.', EMBM_DOMAIN),
     852                    'description'   => esc_html__('The Untappd ID for the object.', 'embm'),
    853853                    'type'          => 'integer'
    854854                )
  • em-beer-manager/trunk/includes/embm-output.php

    r1746554 r1746561  
    5555    // Beer style
    5656    if (EMBM_Core_Beer_style($beer_id)) {
    57         $link_title = sprintf(__('View all %s beers', EMBM_DOMAIN), EMBM_Core_Beer_style($beer_id));
     57        $link_title = sprintf(__('View all %s beers', 'embm'), EMBM_Core_Beer_style($beer_id));
    5858
    5959        $output .= '<span class="embm-beer--header-style">(';
     
    106106    if ((is_tax(EMBM_STYLE) || is_archive()) && !is_tax(EMBM_GROUP) && !is_tax(EMBM_MENU)) {
    107107        $output .= ' <a class="read-more" href="'.get_permalink($beer_id).'">';
    108         $output .= __('More', EMBM_DOMAIN).'...';
     108        $output .= __('More', 'embm').'...';
    109109        $output .= '</a>';
    110110    }
     
    195195
    196196    // Set up translatable title text
    197     $untap_title = __('Check in on Untappd', EMBM_DOMAIN);
     197    $untap_title = __('Check in on Untappd', 'embm');
    198198
    199199    // Get icon set
     
    257257    if ($abv != '0%') {
    258258        $output .= '<div class="abv"><span class="label">';
    259         $output .= __('ABV', EMBM_DOMAIN).':';
     259        $output .= __('ABV', 'embm').':';
    260260        $output .= '</span><span class="value">'.$abv.'</span></div>'."\n";
    261261    }
     
    263263    if ($ibu != '0') {
    264264        $output .= '<div class="ibu"><span class="label">';
    265         $output .= __('IBU', EMBM_DOMAIN).':';
     265        $output .= __('IBU', 'embm').':';
    266266        $output .= '</span><span class="value">'.$ibu.'</span></div>'."\n";
    267267    }
     
    269269    if ($malts != '') {
    270270        $output .= '<div class="malts"><span class="label">';
    271         $output .= __('Malts', EMBM_DOMAIN).':';
     271        $output .= __('Malts', 'embm').':';
    272272        $output .= '</span><span class="value">'.$malts.'</span></div>'."\n";
    273273    }
     
    275275    if ($hops != '') {
    276276        $output .= '<div class="hops"><span class="label">';
    277         $output .= __('Hops', EMBM_DOMAIN).':';
     277        $output .= __('Hops', 'embm').':';
    278278        $output .= '</span><span class="value">'.$hops.'</span></div>'."\n";
    279279    }
     
    281281    if ($adds != '') {
    282282        $output .= '<div class="other"><span class="label">';
    283         $output .= __('Other', EMBM_DOMAIN).':';
     283        $output .= __('Other', 'embm').':';
    284284        $output .= '</span><span class="value">'.$adds.'</span></div>'."\n";
    285285    }
     
    287287    if ($yeast != '') {
    288288        $output .= '<div class="yeast"><span class="label">';
    289         $output .= __('Yeast', EMBM_DOMAIN).':';
     289        $output .= __('Yeast', 'embm').':';
    290290        $output .= '</span><span class="value">'.$yeast.'</span></div>'."\n";
    291291    }
     
    339339    if ($bnum != '#') {
    340340        $output .= '<div class="beer_num"><span class="label">';
    341         $output .= __('Beer Number', EMBM_DOMAIN).':';
     341        $output .= __('Beer Number', 'embm').':';
    342342        $output .= '</span><span class="value">'.$bnum.'</span></div>'."\n";
    343343    }
     
    345345    if ($avail != '') {
    346346        $output .= '<div class="avail"><span class="label">';
    347         $output .= __('Availability', EMBM_DOMAIN).':';
     347        $output .= __('Availability', 'embm').':';
    348348        $output .= '</span><span class="value">'.$avail.'</span></div>'."\n";
    349349    }
     
    351351    if ($notes != '') {
    352352        $output .= '<div class="notes"><span class="label">';
    353         $output .= __('Additional Notes', EMBM_DOMAIN);
     353        $output .= __('Additional Notes', 'embm');
    354354        $output .= '</span><span class="value">'.$notes.'</span></div>'."\n";
    355355    }
     
    414414    // Generate HTML output
    415415    $output = '<div class="embm-beer--rating">'."\n";
    416     $output .= sprintf($format['form'], $stars, $rating_score, $rating_count, __('Ratings', EMBM_DOMAIN));
     416    $output .= sprintf($format['form'], $stars, $rating_score, $rating_count, __('Ratings', 'embm'));
    417417    $output .= EMBM_Output_Rating_styles();
    418418    $output .= '</div>'."\n";
     
    560560    // Start reviews output
    561561    $output = '<div class="embm-beer--reviews">'."\n";
    562     $output .= '<h4 class="embm-beer--reviews-title">'.__('Recent Check-ins', EMBM_DOMAIN).'</h4>'."\n";
     562    $output .= '<h4 class="embm-beer--reviews-title">'.__('Recent Check-ins', 'embm').'</h4>'."\n";
    563563
    564564    // Check that we have reviews
     
    573573        // Friendly text for when there are no reviews
    574574        $output .= '<p class="embm-beer--reviews-empty">';
    575         $output .= __('This beer has no check-ins yet!', EMBM_DOMAIN);
     575        $output .= __('This beer has no check-ins yet!', 'embm');
    576576        $output .= '</p>';
    577577    }
     
    582582    // Add 'more' link
    583583    if (count($reviews) > 0) {
    584         $more_text = __('View More', EMBM_DOMAIN);
     584        $more_text = __('View More', 'embm');
    585585        $output .= '<div class="embm-beer--reviews-more">';
    586586        $output .= '<a href="'.$untappd_url.'" target="_blank" title="' . $more_text . '">';
     
    591591
    592592    // Add Untappd credit
    593     $credit_text = __('Powered by Untappd', EMBM_DOMAIN);
     593    $credit_text = __('Powered by Untappd', 'embm');
    594594    $output .= '<div class="embm-beer--reviews-credit">';
    595595    $output .= '<a href="https://untappd.com" target="_blank" rel="nofollow" title="' . $credit_text . '">';
     
    674674    $output .= '<span class="embm-beer--review-link">';
    675675    $output .= '<a href="'.$user_url.'/checkin/'.$review->checkin_id.'" target="_blank">';
    676     $output .= __('View Full Check-in', EMBM_DOMAIN);
     676    $output .= __('View Full Check-in', 'embm');
    677677    $output .= '</a></span>';
    678678
     
    778778    // Display the collaboration
    779779    $output .= '<div class="embm-beer--collab">'."\n";
    780     $output .= __('A collaboration with', EMBM_DOMAIN)."&nbsp;";
     780    $output .= __('A collaboration with', 'embm')."&nbsp;";
    781781    $output .= join(',&nbsp;', $collaborators);
    782782    $output .= "</div>\n";
  • em-beer-manager/trunk/includes/metaboxes/embm-metabox-extras.php

    r1746554 r1746561  
    3030    add_meta_box(
    3131        'embm_beer_extras',
    32         __('Extra Beer Information', EMBM_DOMAIN),
     32        __('Extra Beer Information', 'embm'),
    3333        'EMBM_Admin_Metabox_Extras_content',
    3434        EMBM_BEER,
     
    7676        <div class="embm-metabox__field embm-metabox--extras-num">
    7777            <p>
    78                 <label for="embm_beer_num"><strong><?php _e('Beer Number', EMBM_DOMAIN); ?></strong></label><br />
     78                <label for="embm_beer_num"><strong><?php _e('Beer Number', 'embm'); ?></strong></label><br />
    7979                <input type="number" name="embm_beer_num" id="embm_beer_num" min="0000" max="9999" step="1" value="<?php echo $b_num; ?>" />
    8080            </p>
     
    8282        <div class="embm-metabox__field embm-metabox--extras-avail">
    8383            <p>
    84                 <label for="embm_avail"><strong><?php _e('Availability', EMBM_DOMAIN); ?></strong></label><br />
     84                <label for="embm_avail"><strong><?php _e('Availability', 'embm'); ?></strong></label><br />
    8585                <input type="text" name="embm_avail" id="embm_avail" value="<?php echo $b_avail; ?>" />
    8686            </p>
     
    9090        <div class="embm-metabox--extras-notes">
    9191            <p class="embm-metabox--extras-notes-title">
    92                 <label for="embm_notes"><strong><?php _e('Additional Notes/Food Pairings', EMBM_DOMAIN); ?></strong></label>
     92                <label for="embm_notes"><strong><?php _e('Additional Notes/Food Pairings', 'embm'); ?></strong></label>
    9393            </p>
    9494            <?php wp_editor($b_notes, 'embm_notes', $notes_settings); ?>
  • em-beer-manager/trunk/includes/metaboxes/embm-metabox-menus.php

    r1746554 r1746561  
    3636    <div class="form-field term-utfb-id">
    3737        <label for="embm_utfb_id">
    38             <?php _e('Untappd for Business ID', EMBM_DOMAIN); ?>
     38            <?php _e('Untappd for Business ID', 'embm'); ?>
    3939        </label>
    4040        <input type="number" name="embm_utfb_id" id="embm_utfb_id" value="" />
     
    4848                type="checkbox"
    4949            >
    50             <span><?php _e('Exclude from Sync', EMBM_DOMAIN); ?></span>
     50            <span><?php _e('Exclude from Sync', 'embm'); ?></span>
    5151        </label>
    5252    </div>
     
    8383        <th scope="row" valign="top">
    8484            <label for="embm_utfb_id">
    85                 <?php _e('Untappd for Business ID', EMBM_DOMAIN); ?>
     85                <?php _e('Untappd for Business ID', 'embm'); ?>
    8686            </label>
    8787        </th>
     
    9393        <th scope="row" valign="top">
    9494            <label for="embm_sync_exclude">
    95                 <strong><?php _e('Exclude from Sync', EMBM_DOMAIN); ?></strong>
     95                <strong><?php _e('Exclude from Sync', 'embm'); ?></strong>
    9696            </label>
    9797        </th>
     
    188188    // Add UTFB columns, if enabled
    189189    if (!EMBM_Core_Beer_disabled()) {
    190         $columns['embm_utfb_id'] = __('Untappd for Business ID', EMBM_DOMAIN);
    191         $columns['embm_sync_exclude'] = __('Exclude from Sync', EMBM_DOMAIN);
     190        $columns['embm_utfb_id'] = __('Untappd for Business ID', 'embm');
     191        $columns['embm_sync_exclude'] = __('Exclude from Sync', 'embm');
    192192    }
    193193    return $columns;
  • em-beer-manager/trunk/includes/metaboxes/embm-metabox-profile.php

    r1746554 r1746561  
    3030    add_meta_box(
    3131        'embm_beer_profile',
    32         __('Beer Profile', EMBM_DOMAIN),
     32        __('Beer Profile', 'embm'),
    3333        'EMBM_Admin_Metabox_Profile_content',
    3434        EMBM_BEER,
     
    7070    <div class="embm-metabox__field embm-metabox--profile-malts">
    7171        <p>
    72             <label for="embm_malts"><strong><?php _e('Malts', EMBM_DOMAIN); ?></strong></label><br />
     72            <label for="embm_malts"><strong><?php _e('Malts', 'embm'); ?></strong></label><br />
    7373            <input type="text" name="embm_malts" id="embm_malts" style="width:100%;" value="<?php echo $b_malts; ?>" />
    7474        </p>
     
    7676    <div class="embm-metabox__field embm-metabox--profile-hops">
    7777        <p>
    78             <label for="embm_hops"><strong><?php _e('Hops', EMBM_DOMAIN); ?></strong></label><br />
     78            <label for="embm_hops"><strong><?php _e('Hops', 'embm'); ?></strong></label><br />
    7979            <input type="text" name="embm_hops" id="embm_hops" style="width:100%;" value="<?php echo $b_hops; ?>" />
    8080        </p>
     
    8282    <div class="embm-metabox__field embm-metabox--profile-adds">
    8383        <p>
    84             <label for="embm_adds"><strong><?php _e('Additions/Spices', EMBM_DOMAIN); ?></strong></label><br />
     84            <label for="embm_adds"><strong><?php _e('Additions/Spices', 'embm'); ?></strong></label><br />
    8585            <input type="text" name="embm_adds" id="embm_adds" style="width:100%;" value="<?php echo $b_adds; ?>" />
    8686        </p>
     
    8888    <div class="embm-metabox__field embm-metabox--profile-yeast">
    8989        <p>
    90             <label for="embm_yeast"><strong><?php _e('Yeast', EMBM_DOMAIN); ?></strong></label><br />
     90            <label for="embm_yeast"><strong><?php _e('Yeast', 'embm'); ?></strong></label><br />
    9191            <input type="text" name="embm_yeast" id="embm_yeast" style="width:100%;" value="<?php echo $b_yeast; ?>" />
    9292        </p>
     
    9595    <div class="embm-metabox__field embm-metabox--profile-abv">
    9696        <p>
    97             <label for="embm_abv"><strong><?php _e('ABV', EMBM_DOMAIN); ?></strong></label><br />
     97            <label for="embm_abv"><strong><?php _e('ABV', 'embm'); ?></strong></label><br />
    9898            <input type="number" name="embm_abv" id="embm_abv" min="0.0" max="100.0" step="0.1" value="<?php echo $b_abv; ?>" /> %
    9999        </p>
     
    101101    <div class="embm-metabox__field embm-metabox--profile-ibu">
    102102        <p>
    103             <label for="embm_ibu"><strong><?php _e('IBU', EMBM_DOMAIN); ?></strong></label><br />
     103            <label for="embm_ibu"><strong><?php _e('IBU', 'embm'); ?></strong></label><br />
    104104            <input type="number" name="embm_ibu" id="embm_style" min="0" max="100" step="1" value="<?php echo $b_ibu; ?>" />
    105105        </p>
  • em-beer-manager/trunk/includes/metaboxes/embm-metabox-untappd.php

    r1746554 r1746561  
    3535    add_meta_box(
    3636        'embm_beer_untappd',
    37         __('Untappd', EMBM_DOMAIN),
     37        __('Untappd', 'embm'),
    3838        'EMBM_Admin_Metabox_Untappd_content',
    3939        EMBM_BEER,
     
    146146    // Set reviews_count input
    147147    $reviews_count_input = sprintf(
    148         __('Show %s checkins (max. %d)', EMBM_DOMAIN),
     148        __('Show %s checkins (max. %d)', 'embm'),
    149149        '<input
    150150            id="embm_reviews_count"
     
    167167        <div class="embm-metabox__field embm-metabox--untappd-id">
    168168            <p>
    169                 <label for="embm_untappd"><strong><?php _e('Beer ID', EMBM_DOMAIN); ?></strong></label><br />
     169                <label for="embm_untappd"><strong><?php _e('Beer ID', 'embm'); ?></strong></label><br />
    170170                <input
    171171                    type="number"
     
    184184            <?php if ($is_brewery && !$show_api_error) : ?>
    185185                <p>
    186                     <label for="untappd_id_select"><strong><?php _e('Brewery Beer', EMBM_DOMAIN); ?></strong></label><br />
     186                    <label for="untappd_id_select"><strong><?php _e('Brewery Beer', 'embm'); ?></strong></label><br />
    187187                    <select id="untappd_id_select" name="untappd_id_select">
    188188                        <option value=""
    189189                            <?php selected($beer_found, false); ?>
    190                         >-- <?php _e('Custom/Unaffiliated', EMBM_DOMAIN); ?> --</option>
     190                        >-- <?php _e('Custom/Unaffiliated', 'embm'); ?> --</option>
    191191                    <?php foreach ($beer_list as $item) : $beer = $item->beer; ?>
    192192                        <option
     
    202202            <?php if (null !== $utfb_data && !$show_api_error) : ?>
    203203                <p>
    204                     <strong><?php _e('Untappd for Business Menus', EMBM_DOMAIN); ?></strong><br />
     204                    <strong><?php _e('Untappd for Business Menus', 'embm'); ?></strong><br />
    205205                    <ul>
    206206                        <?php foreach ($menus as $menu): ?>
     
    233233        <div class="embm-metabox--untappd-checkboxes">
    234234            <p>
    235                 <strong><?php printf('Override Display Settings', EMBM_DOMAIN); ?></strong>
     235                <strong><?php printf('Override Display Settings', 'embm'); ?></strong>
    236236            </p>
    237237            <div class="embm-metabox--untappd-rating">
     
    244244                        <?php checked('1', $hide_rating); ?>
    245245                    >
    246                     <label for="embm_hide_rating"><?php _e('Hide Untappd rating', EMBM_DOMAIN); ?></label>
     246                    <label for="embm_hide_rating"><?php _e('Hide Untappd rating', 'embm'); ?></label>
    247247                </p>
    248248            </div>
     
    256256                        <?php checked('1', $hide_reviews); ?>
    257257                    >
    258                     <label for="embm_hide_reviews"><?php _e('Hide Untappd checkins', EMBM_DOMAIN); ?></label>
     258                    <label for="embm_hide_reviews"><?php _e('Hide Untappd checkins', 'embm'); ?></label>
    259259                </p>
    260260                <p class="embm-metabox--untappd-review-count">
     
    266266            <div class="embm-metabox--untappd-flush">
    267267                <p>
    268                     <strong><?php _e('Refresh Untappd Beer Data', EMBM_DOMAIN); ?></strong>
     268                    <strong><?php _e('Refresh Untappd Beer Data', 'embm'); ?></strong>
    269269                </p>
    270270                <p>
    271271                    <a href="#" class="button-secondary" data-api-root="<?php echo $api_root; ?>">
    272                         <?php _e('Flush Cache', EMBM_DOMAIN); ?>
     272                        <?php _e('Flush Cache', 'embm'); ?>
    273273                    </a>
    274274                </p>
    275275                <p class="description">
    276                     <?php _e('This is automatically done daily.', EMBM_DOMAIN); ?>
     276                    <?php _e('This is automatically done daily.', 'embm'); ?>
    277277                </p>
    278278            </div>
    279279            <div class="embm-metabox--untappd-sync">
    280280                <p>
    281                     <strong><?php _e('Sync Untappd Beer Data', EMBM_DOMAIN); ?></strong>
     281                    <strong><?php _e('Sync Untappd Beer Data', 'embm'); ?></strong>
    282282                </p>
    283283                <p>
    284284                    <a href="#" class="button-secondary" data-api-root="<?php echo $api_root; ?>">
    285                         <?php _e('Sync Data', EMBM_DOMAIN); ?>
     285                        <?php _e('Sync Data', 'embm'); ?>
    286286                    </a>
    287287                </p>
    288288                <p class="description">
    289                     <span class="warning"><?php _e('WARNING', EMBM_DOMAIN); ?>:</span>
    290                     <?php _e('This will override any changes you have made to this beer.', EMBM_DOMAIN); ?>
     289                    <span class="warning"><?php _e('WARNING', 'embm'); ?>:</span>
     290                    <?php _e('This will override any changes you have made to this beer.', 'embm'); ?>
    291291                </p>
    292292                <p>
     
    299299                    >
    300300                    <label for="embm_sync_exclude">
    301                         <strong><?php _e('Exclude from Sync', EMBM_DOMAIN); ?></strong>
     301                        <strong><?php _e('Exclude from Sync', 'embm'); ?></strong>
    302302                    </label>
    303303                </p>
     
    308308    <?php elseif ($untappd_id == '') : ?>
    309309        <p class="embm-metabox--untappd-empty">
    310             <?php _e('Set a valid Untappd Beer ID to access additional display options.', EMBM_DOMAIN); ?>
     310            <?php _e('Set a valid Untappd Beer ID to access additional display options.', 'embm'); ?>
    311311        </p>
    312312    <?php else : ?>
     
    314314            <?php
    315315                printf(
    316                     __('Log in to Untappd on the %s to access additional display options.', EMBM_DOMAIN),
     316                    __('Log in to Untappd on the %s to access additional display options.', 'embm'),
    317317                    sprintf(
    318318                        '<a href="%s">%s</a>',
    319319                        get_admin_url(null, 'options-general.php?page=embm-settings'),
    320                         __('settings page', EMBM_DOMAIN)
     320                        __('settings page', 'embm')
    321321                    )
    322322                );
  • em-beer-manager/trunk/includes/output/embm-output-filters.php

    r1746554 r1746561  
    251251        $output .= '<span class="embm-beer--header-style">(';
    252252        $output .= '<a href="'.get_term_link($style, EMBM_STYLE).'" title="';
    253         $output .= sprintf(__('View all %s beers', EMBM_DOMAIN), $style).'">';
     253        $output .= sprintf(__('View all %s beers', 'embm'), $style).'">';
    254254        $output .= $style;
    255255        $output .= '</a>)</span>'."\n";
  • em-beer-manager/trunk/includes/output/embm-output-menus.php

    r1746554 r1746561  
    3434    // Make sure we're authorized
    3535    if (null == $credentials) {
    36         return __('Please log in to Untappd for Business to use this shortcode.', EMBM_DOMAIN);
     36        return __('Please log in to Untappd for Business to use this shortcode.', 'embm');
    3737    }
    3838
     
    5252            'Could not locate Untappd for Business data for this Menu. '.
    5353            'Please make sure an ID is set in the Menus admin',
    54             EMBM_DOMAIN
     54            'embm'
    5555        );
    5656    }
     
    7777    if ($showupdated) {
    7878        $output .= '<p class="embm-beer-menu--updated">';
    79         $output .= __('Last updated', EMBM_DOMAIN).': ';
     79        $output .= __('Last updated', 'embm').': ';
    8080        $output .= $menu_updated_formatted.'</p>';
    8181    }
     
    135135            $output .= '<p class="embm-beer-menu--beer-data">';
    136136            if ($beer_abv != '') {
    137                 $output .= '<span class="embm-beer-menu--beer-abv">'.$beer_abv.' '.__('ABV', EMBM_DOMAIN).'</span>';
     137                $output .= '<span class="embm-beer-menu--beer-abv">'.$beer_abv.' '.__('ABV', 'embm').'</span>';
    138138            }
    139139            if ($beer_ibu != '') {
    140                 $output .= '<span class="embm-beer-menu--beer-ibu">'.$beer_ibu.' '.__('IBU', EMBM_DOMAIN).'</span>';
     140                $output .= '<span class="embm-beer-menu--beer-ibu">'.$beer_ibu.' '.__('IBU', 'embm').'</span>';
    141141            }
    142142
  • em-beer-manager/trunk/includes/widgets/embm-widget-list.php

    r1746554 r1746561  
    3434        $widget_options = array(
    3535            'classname'     => EMBM_WIDGET_BEER_LIST,
    36             'description'   => __('Displays a list of beers', EMBM_DOMAIN)
     36            'description'   => __('Displays a list of beers', 'embm')
    3737        );
    3838        parent::__construct(
    3939            EMBM_WIDGET_BEER_LIST,
    40             __('Beer List', EMBM_DOMAIN),
     40            __('Beer List', 'embm'),
    4141            $widget_options
    4242        );
     
    7878    <div class="embm-beer-list-widget">
    7979        <p>
    80             <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', EMBM_DOMAIN); ?>:</label><br />
     80            <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', 'embm'); ?>:</label><br />
    8181            <input id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" style="width: 100%;" value="<?php echo $title; ?>"   />
    8282        </p>
    8383        <p>
    84             <label for="<?php echo $this->get_field_id('exclude'); ?>"><?php _e('Exclude Beers', EMBM_DOMAIN); ?>: </label><br />
    85             <input id="<?php echo $this->get_field_id('exclude'); ?>" name="<?php echo $this->get_field_name('exclude'); ?>" type="text" style="width: 100%;" value="<?php echo $exclude; ?>" /><br /><small><?php _e('Comma separated IDs', EMBM_DOMAIN); ?>, e.g. "1,2,3"</small>
    86         </p>
    87         <p>
    88             <label for="<?php echo $this->get_field_id('count'); ?>"><?php _e('Beer Count', EMBM_DOMAIN); ?>: </label>
     84            <label for="<?php echo $this->get_field_id('exclude'); ?>"><?php _e('Exclude Beers', 'embm'); ?>: </label><br />
     85            <input id="<?php echo $this->get_field_id('exclude'); ?>" name="<?php echo $this->get_field_name('exclude'); ?>" type="text" style="width: 100%;" value="<?php echo $exclude; ?>" /><br /><small><?php _e('Comma separated IDs', 'embm'); ?>, e.g. "1,2,3"</small>
     86        </p>
     87        <p>
     88            <label for="<?php echo $this->get_field_id('count'); ?>"><?php _e('Beer Count', 'embm'); ?>: </label>
    8989            <input id="<?php echo $this->get_field_id('count'); ?>" name="<?php echo $this->get_field_name('count'); ?>" type="number" style="width: 25%;" value="<?php echo $count; ?>" />
    9090        </p>
    9191        <p>
    92             <label for="<?php echo $this->get_field_id('summary'); ?>"><?php _e('Show Summary', EMBM_DOMAIN); ?>: </label>
     92            <label for="<?php echo $this->get_field_id('summary'); ?>"><?php _e('Show Summary', 'embm'); ?>: </label>
    9393            <input name="<?php echo $this->get_field_name('summary'); ?>" type="checkbox" id="<?php echo $this->get_field_id('summary'); ?>" value="1"<?php checked('1', $summary, true); ?> />
    9494        </p>
    9595        <p>
    96             <label for="<?php echo $this->get_field_id('sum_length'); ?>"><?php _e('Summary Length', EMBM_DOMAIN); ?>: </label>
    97             <input id="<?php echo $this->get_field_id('sum_length'); ?>" name="<?php echo $this->get_field_name('sum_length'); ?>" type="text" size="3" value="<?php echo $sum_length; ?>" /><small>&nbsp;<?php _e('Characters', EMBM_DOMAIN); ?></small>
    98         </p>
    99         <p>
    100             <label for="<?php echo $this->get_field_id('style'); ?>"><?php _e('Show Style', EMBM_DOMAIN); ?>: </label>
     96            <label for="<?php echo $this->get_field_id('sum_length'); ?>"><?php _e('Summary Length', 'embm'); ?>: </label>
     97            <input id="<?php echo $this->get_field_id('sum_length'); ?>" name="<?php echo $this->get_field_name('sum_length'); ?>" type="text" size="3" value="<?php echo $sum_length; ?>" /><small>&nbsp;<?php _e('Characters', 'embm'); ?></small>
     98        </p>
     99        <p>
     100            <label for="<?php echo $this->get_field_id('style'); ?>"><?php _e('Show Style', 'embm'); ?>: </label>
    101101            <select name="<?php echo $this->get_field_name('style'); ?>" id="<?php echo $this->get_field_id('style'); ?>">
    102                 <option value="all" <?php selected($style, 'all', true); ?>><?php _e('All Styles', EMBM_DOMAIN); ?></option>
     102                <option value="all" <?php selected($style, 'all', true); ?>><?php _e('All Styles', 'embm'); ?></option>
    103103                <?php $beer_styles = get_terms(EMBM_STYLE); foreach ($beer_styles as $beer_style) : ?>
    104104                    <option value="<?php echo $beer_style->slug; ?>" <?php echo selected($style, $beer_style->slug, false); ?>><?php echo $beer_style->name; ?></option>
     
    107107        </p>
    108108        <p>
    109             <label for="<?php echo $this->get_field_id('group'); ?>"><?php _e('Show Group', EMBM_DOMAIN); ?>: </label>
     109            <label for="<?php echo $this->get_field_id('group'); ?>"><?php _e('Show Group', 'embm'); ?>: </label>
    110110            <select name="<?php echo $this->get_field_name('group'); ?>" id="<?php echo $this->get_field_id('group'); ?>">
    111                 <option value="all" <?php selected($group, 'all', true); ?>><?php _e('All Groups', EMBM_DOMAIN); ?></option>
     111                <option value="all" <?php selected($group, 'all', true); ?>><?php _e('All Groups', 'embm'); ?></option>
    112112                <?php $beer_groups = get_terms(EMBM_GROUP); foreach ($beer_groups as $beer_group) : ?>
    113113                    <option value="<?php echo $beer_group->slug; ?>" <?php echo selected($group, $beer_group->slug, false); ?>><?php echo $beer_group->name; ?></option>
     
    255255                $output .= substr($beer_summary, 0, $beer_sum_end).'...';
    256256                $output .= '<a class="embm-read-more" href="'.get_permalink($post->ID).'" title="'.get_the_title($post->ID).'">';
    257                 $output .= __('More', EMBM_DOMAIN);
     257                $output .= __('More', 'embm');
    258258                $output .= '</a>';
    259259                $output .= '</span>';
     
    271271    } else {
    272272        // Fall back message for when no beers are found
    273         $error = __('No beers found.', EMBM_DOMAIN);
     273        $error = __('No beers found.', 'embm');
    274274        return $error;
    275275    }
  • em-beer-manager/trunk/includes/widgets/embm-widget-untappd.php

    r1746554 r1746561  
    4444        $widget_options = array(
    4545            'classname'     => EMBM_WIDGET_RECENT_UNTAPPD,
    46             'description'   => __('Displays a list of recent Untappd brewery check-ins', EMBM_DOMAIN)
     46            'description'   => __('Displays a list of recent Untappd brewery check-ins', 'embm')
    4747        );
    4848
     
    5353        parent::__construct(
    5454            EMBM_WIDGET_RECENT_UNTAPPD,
    55             __('Recent Untappd Check-ins', EMBM_DOMAIN),
     55            __('Recent Untappd Check-ins', 'embm'),
    5656            $widget_options
    5757        );
     
    9595            array(
    9696                'id'       => 'embm-untappd-brewery-id',
    97                 'title'    => __('Untappd Beer ID', EMBM_DOMAIN),
     97                'title'    => __('Untappd Beer ID', 'embm'),
    9898                'content'  => '<p>'.
    99                     __('Find your Untappd brewery ID number by going to your brewery\'s official page', EMBM_DOMAIN).
     99                    __('Find your Untappd brewery ID number by going to your brewery\'s official page', 'embm').
    100100                    ' (i.e. <code>https://untappd.com/BreweryName</code>). '.
    101101                    sprintf(
    102                         __('Click on the %s link in the right-hand sidebar. The link\'s URL will be formatted like this', EMBM_DOMAIN),
     102                        __('Click on the %s link in the right-hand sidebar. The link\'s URL will be formatted like this', 'embm'),
    103103                        '"Brewery Feed (RSS)"'
    104104                    ).':</p><p><code>https://untappd.com/rss/brewery/<strong>64324</strong></code></p><p>'.
    105                     __('The string of numbers at the end of the URL is your brewery ID number.', EMBM_DOMAIN).
    106                     __('If you have authenticated with Untappd in the Labs section, your brewery\'s ID will automatically populate the field.', EMBM_DOMAIN).
     105                    __('The string of numbers at the end of the URL is your brewery ID number.', 'embm').
     106                    __('If you have authenticated with Untappd in the Labs section, your brewery\'s ID will automatically populate the field.', 'embm').
    107107                    '</p>'
    108108            )
     
    183183    <div class="embm-untappd-widget">
    184184        <p class="embm-untappd-widget--title">
    185             <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', EMBM_DOMAIN); ?>:</label><br />
     185            <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', 'embm'); ?>:</label><br />
    186186            <input
    187187                id="<?php echo $this->get_field_id('title'); ?>"
     
    193193        </p>
    194194        <p class="embm-untappd-widget--brewery">
    195             <label for="<?php echo $this->get_field_id('brewery'); ?>"><?php _e('Brewery ID', EMBM_DOMAIN); ?>&nbsp;</label>
     195            <label for="<?php echo $this->get_field_id('brewery'); ?>"><?php _e('Brewery ID', 'embm'); ?>&nbsp;</label>
    196196            <input
    197197                id="<?php echo $this->get_field_id('brewery'); ?>"
     
    204204        </p>
    205205        <p class="embm-untappd-widget--count">
    206             <label for="<?php echo $this->get_field_id('items'); ?>"><?php _e('Number of items to show', EMBM_DOMAIN); ?>:&nbsp;</label>
     206            <label for="<?php echo $this->get_field_id('items'); ?>"><?php _e('Number of items to show', 'embm'); ?>:&nbsp;</label>
    207207            <input
    208208                id="<?php echo $this->get_field_id('items'); ?>"
     
    215215                value="<?php echo $items; ?>"
    216216            /><br />
    217             <small><em>(<?php printf(__('Max. %d', EMBM_DOMAIN), 15); ?></em>)</small>
     217            <small><em>(<?php printf(__('Max. %d', 'embm'), 15); ?></em>)</small>
    218218        </p>
    219219        <hr />
     
    226226                <?php checked('1', $rating); ?>
    227227            />
    228             <label for="<?php echo $this->get_field_id('rating'); ?>"><?php _e('Show check-in ratings', EMBM_DOMAIN); ?></label>
     228            <label for="<?php echo $this->get_field_id('rating'); ?>"><?php _e('Show check-in ratings', 'embm'); ?></label>
    229229        </p>
    230230        <p class="embm-untappd-widget--comment">
     
    236236                <?php checked('1', $comment); ?>
    237237            />
    238             <label for="<?php echo $this->get_field_id('comment'); ?>"><?php _e('Show check-in comments', EMBM_DOMAIN); ?></label>
     238            <label for="<?php echo $this->get_field_id('comment'); ?>"><?php _e('Show check-in comments', 'embm'); ?></label>
    239239        </p>
    240240        <p class="embm-untappd-widget--venue">
     
    246246                <?php checked('1', $venue); ?>
    247247            />
    248             <label for="<?php echo $this->get_field_id('venue'); ?>"><?php _e('Show check-in venue', EMBM_DOMAIN); ?></label>
     248            <label for="<?php echo $this->get_field_id('venue'); ?>"><?php _e('Show check-in venue', 'embm'); ?></label>
    249249        </p>
    250250        <p class="embm-untappd-widget--thumb" style="margin-bottom:0;">
     
    256256                <?php checked('1', $thumb); ?>
    257257            />
    258             <label for="<?php echo $this->get_field_id('thumb'); ?>"><?php _e('Show check-in avatar', EMBM_DOMAIN); ?></label>
     258            <label for="<?php echo $this->get_field_id('thumb'); ?>"><?php _e('Show check-in avatar', 'embm'); ?></label>
    259259        </p>
    260260        <p class="embm-untappd-widget--thumb-note" style="line-height:1;margin-top:0;padding-left:22px;">
    261             <small><em>(<?php _e('Only shows default generic avatar when not authenticated with Untappd.', EMBM_DOMAIN); ?>)</em></small>
     261            <small><em>(<?php _e('Only shows default generic avatar when not authenticated with Untappd.', 'embm'); ?>)</em></small>
    262262        </p>
    263263        <p class="embm-untappd-widget--more">
     
    269269                <?php checked('1', $more); ?>
    270270            />
    271             <label for="<?php echo $this->get_field_id('more'); ?>"><?php _e('Show "View More" link', EMBM_DOMAIN); ?></label>
     271            <label for="<?php echo $this->get_field_id('more'); ?>"><?php _e('Show "View More" link', 'embm'); ?></label>
    272272        </p>
    273273        <hr />
    274274        <p class="embm-untappd-widget--refresh" style="margin-bottom:5px;">
    275             <strong><?php _e('Refresh Untappd Check-in Data', EMBM_DOMAIN); ?></strong>
     275            <strong><?php _e('Refresh Untappd Check-in Data', 'embm'); ?></strong>
    276276        </p>
    277277        <p class="embm-untappd-widget--refresh-button" style="margin-top:0;margin-bottom:4px;">
    278             <a href="#" class="button-secondary" data-api-root="<?php echo $api_root; ?>"><?php _e('Flush Cache', EMBM_DOMAIN); ?></a>
     278            <a href="#" class="button-secondary" data-api-root="<?php echo $api_root; ?>"><?php _e('Flush Cache', 'embm'); ?></a>
    279279        </p>
    280280        <p class="embm-untappd-widget--refresh-note" style="margin-top:0;">
    281             <small><em><?php _e('This is automatically done daily.', EMBM_DOMAIN); ?></em></small>
     281            <small><em><?php _e('This is automatically done daily.', 'embm'); ?></em></small>
    282282        </p>
    283283        <?php echo $errors; ?>
     
    439439    if (!$brewery_id) {
    440440        $output .= '<li class="embm-untappd-list-item">';
    441         $output .= __('A brewery ID number has not been set.', EMBM_DOMAIN);
     441        $output .= __('A brewery ID number has not been set.', 'embm');
    442442        $output .= '</li>'."\n";
    443443        $output .= '</ul>'."\n";
     
    464464    // Add 'more' link
    465465    if ($show_more) {
    466         $more_text = __('View More', EMBM_DOMAIN);
     466        $more_text = __('View More', 'embm');
    467467        $output .= '<span class="embm-untappd-list--more">';
    468468        $output .= '<a href="https://untappd.com/brewery/'.$brewery_id.'" target="_blank" title="' . $more_text . '">';
     
    473473
    474474    // Add Untappd credit
    475     $credit_text = __('Powered by Untappd', EMBM_DOMAIN);
     475    $credit_text = __('Powered by Untappd', 'embm');
    476476    $credit_class = $show_more ? '' : ' embm-untappd-list--credit__left';
    477477    $output .= '<span class="embm-untappd-list--credit'.$credit_class.'">';
     
    524524    // Make sure we have check-ins to show
    525525    if (!$checkins->count || $checkins->count < 1) {
    526         $error = __('This brewery has no recent check-ins!', EMBM_DOMAIN);
     526        $error = __('This brewery has no recent check-ins!', 'embm');
    527527        return sprintf('<p class="embm-untappd-list--empty">%s</p>', $error);
    528528    }
     
    608608    // Check for errors
    609609    if (!is_object($xml)) {
    610         $error = __('There was a problem retrieving Untappd check-ins. Please try again later.', EMBM_DOMAIN);
     610        $error = __('There was a problem retrieving Untappd check-ins. Please try again later.', 'embm');
    611611        return sprintf('<p class="embm-untappd-list--empty">%s</p>', $error);
    612612    }
     
    617617    // Make sure we have check-ins to show
    618618    if (!$xml->channel->item->count() || $xml->channel->item->count() < 1) {
    619         $error = __('This brewery has no recent check-ins!', EMBM_DOMAIN);
     619        $error = __('This brewery has no recent check-ins!', 'embm');
    620620        return sprintf('<p class="embm-untappd-list--empty">%s</p>', $error);
    621621    }
     
    718718
    719719    // See if we need to use 'a' or 'an'
    720     $determiner = preg_match('/^[aeiou]/i', $entry['beer']['name']) ? __('an', EMBM_DOMAIN) : __('a', EMBM_DOMAIN);
     720    $determiner = preg_match('/^[aeiou]/i', $entry['beer']['name']) ? __('an', 'embm') : __('a', 'embm');
    721721
    722722    // Entry title
    723723    $output .= '<span class="embm-untappd-list--item-title">';
    724724    $output .= sprintf($link_format, $entry['user']['link'], $entry['user']['name']);
    725     $output .= ' '.sprintf(__('is drinking %s', EMBM_DOMAIN), $determiner).' ';
     725    $output .= ' '.sprintf(__('is drinking %s', 'embm'), $determiner).' ';
    726726    $output .= sprintf($link_format, $entry['beer']['link'], $entry['beer']['name']);
    727727    $output .= '</span>';
     
    757757
    758758    // Link to full check-in entry
    759     $output .= sprintf($link_format, $entry['link'], __('View Full Check-in', EMBM_DOMAIN));
     759    $output .= sprintf($link_format, $entry['link'], __('View Full Check-in', 'embm'));
    760760
    761761    // End meta & content
Note: See TracChangeset for help on using the changeset viewer.