Changeset 1746561
- Timestamp:
- 10/14/2017 09:36:22 PM (8 years ago)
- Location:
- em-beer-manager
- Files:
-
- 74 added
- 22 edited
-
tags/3.2.1 (added)
-
tags/3.2.1/README.txt (added)
-
tags/3.2.1/assets (added)
-
tags/3.2.1/assets/beer-styles.txt (added)
-
tags/3.2.1/assets/css (added)
-
tags/3.2.1/assets/css/admin.css (added)
-
tags/3.2.1/assets/css/output.css (added)
-
tags/3.2.1/assets/css/widgets.css (added)
-
tags/3.2.1/assets/fonts (added)
-
tags/3.2.1/assets/fonts/beer-icons.eot (added)
-
tags/3.2.1/assets/fonts/beer-icons.svg (added)
-
tags/3.2.1/assets/fonts/beer-icons.ttf (added)
-
tags/3.2.1/assets/fonts/beer-icons.woff (added)
-
tags/3.2.1/assets/img (added)
-
tags/3.2.1/assets/img/checkin-button-1.png (added)
-
tags/3.2.1/assets/img/checkin-button-2.png (added)
-
tags/3.2.1/assets/img/donate.png (added)
-
tags/3.2.1/assets/img/star-25.svg (added)
-
tags/3.2.1/assets/img/star-50.svg (added)
-
tags/3.2.1/assets/img/star-75.svg (added)
-
tags/3.2.1/assets/img/star-empty.svg (added)
-
tags/3.2.1/assets/img/star-full.svg (added)
-
tags/3.2.1/assets/img/ut-credit.png (added)
-
tags/3.2.1/assets/img/ut-icon-1.png (added)
-
tags/3.2.1/assets/img/ut-icon-2.png (added)
-
tags/3.2.1/assets/js (added)
-
tags/3.2.1/assets/js/admin.js (added)
-
tags/3.2.1/em-beer-manager.php (added)
-
tags/3.2.1/includes (added)
-
tags/3.2.1/includes/admin (added)
-
tags/3.2.1/includes/admin/embm-admin-actions.php (added)
-
tags/3.2.1/includes/admin/embm-admin-footer.php (added)
-
tags/3.2.1/includes/admin/embm-admin-notices.php (added)
-
tags/3.2.1/includes/admin/embm-admin-settings.php (added)
-
tags/3.2.1/includes/admin/integrations (added)
-
tags/3.2.1/includes/admin/integrations/embm-integrations-authorize.php (added)
-
tags/3.2.1/includes/admin/integrations/embm-integrations-untappd.php (added)
-
tags/3.2.1/includes/admin/integrations/embm-integrations-utfb.php (added)
-
tags/3.2.1/includes/admin/tabs (added)
-
tags/3.2.1/includes/admin/tabs/embm-tabs-labs.php (added)
-
tags/3.2.1/includes/admin/tabs/embm-tabs-untappd.php (added)
-
tags/3.2.1/includes/admin/tabs/embm-tabs-usage.php (added)
-
tags/3.2.1/includes/admin/tabs/embm-tabs-utfb.php (added)
-
tags/3.2.1/includes/embm-admin.php (added)
-
tags/3.2.1/includes/embm-core.php (added)
-
tags/3.2.1/includes/embm-output.php (added)
-
tags/3.2.1/includes/embm-upgrades.php (added)
-
tags/3.2.1/includes/metaboxes (added)
-
tags/3.2.1/includes/metaboxes/embm-metabox-extras.php (added)
-
tags/3.2.1/includes/metaboxes/embm-metabox-menus.php (added)
-
tags/3.2.1/includes/metaboxes/embm-metabox-profile.php (added)
-
tags/3.2.1/includes/metaboxes/embm-metabox-untappd.php (added)
-
tags/3.2.1/includes/output (added)
-
tags/3.2.1/includes/output/embm-output-filters.php (added)
-
tags/3.2.1/includes/output/embm-output-menus.php (added)
-
tags/3.2.1/includes/output/embm-output-shortcodes.php (added)
-
tags/3.2.1/includes/templates (added)
-
tags/3.2.1/includes/templates/embm-template-comments.php (added)
-
tags/3.2.1/includes/widgets (added)
-
tags/3.2.1/includes/widgets/embm-widget-list.php (added)
-
tags/3.2.1/includes/widgets/embm-widget-untappd.php (added)
-
tags/3.2.1/languages (added)
-
tags/3.2.1/languages/embm-is_IS.mo (added)
-
tags/3.2.1/languages/embm-is_IS.po (added)
-
tags/3.2.1/languages/embm-nb_NO.mo (added)
-
tags/3.2.1/languages/embm-nb_NO.po (added)
-
tags/3.2.1/languages/embm-nl_NL.mo (added)
-
tags/3.2.1/languages/embm-nl_NL.po (added)
-
tags/3.2.1/languages/embm-nl_NL_formal.mo (added)
-
tags/3.2.1/languages/embm-nl_NL_formal.po (added)
-
tags/3.2.1/languages/embm-pt_BR.mo (added)
-
tags/3.2.1/languages/embm-pt_BR.po (added)
-
tags/3.2.1/languages/embm.pot (added)
-
tags/3.2.1/license.txt (added)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/em-beer-manager.php (modified) (7 diffs)
-
trunk/includes/admin/embm-admin-footer.php (modified) (4 diffs)
-
trunk/includes/admin/embm-admin-notices.php (modified) (11 diffs)
-
trunk/includes/admin/embm-admin-settings.php (modified) (30 diffs)
-
trunk/includes/admin/integrations/embm-integrations-authorize.php (modified) (3 diffs)
-
trunk/includes/admin/integrations/embm-integrations-untappd.php (modified) (1 diff)
-
trunk/includes/admin/tabs/embm-tabs-labs.php (modified) (1 diff)
-
trunk/includes/admin/tabs/embm-tabs-untappd.php (modified) (7 diffs)
-
trunk/includes/admin/tabs/embm-tabs-usage.php (modified) (29 diffs)
-
trunk/includes/admin/tabs/embm-tabs-utfb.php (modified) (21 diffs)
-
trunk/includes/embm-admin.php (modified) (6 diffs)
-
trunk/includes/embm-core.php (modified) (12 diffs)
-
trunk/includes/embm-output.php (modified) (19 diffs)
-
trunk/includes/metaboxes/embm-metabox-extras.php (modified) (4 diffs)
-
trunk/includes/metaboxes/embm-metabox-menus.php (modified) (5 diffs)
-
trunk/includes/metaboxes/embm-metabox-profile.php (modified) (7 diffs)
-
trunk/includes/metaboxes/embm-metabox-untappd.php (modified) (12 diffs)
-
trunk/includes/output/embm-output-filters.php (modified) (1 diff)
-
trunk/includes/output/embm-output-menus.php (modified) (4 diffs)
-
trunk/includes/widgets/embm-widget-list.php (modified) (5 diffs)
-
trunk/includes/widgets/embm-widget-untappd.php (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
em-beer-manager/trunk/README.txt
r1746554 r1746561 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.8.2 7 Stable tag: 3.2. 07 Stable tag: 3.2.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 340 340 == Changelog == 341 341 342 = 3.2.1 = 343 * [FIXED] Issue introduced in version 3.2.0 that broke plugin localization 344 342 345 = 3.2.0 = 343 346 * [DEPRECATED] Ended support for PHP <= 5.2, please upgrade your PHP … … 493 496 == Upgrade Notice == 494 497 498 = 3.2.1 = 499 Please back-up your database before upgrading! Fixed issue that broke plugin localization 500 495 501 = 3.2.0 = 496 502 Please back-up your database before upgrading! -
em-beer-manager/trunk/em-beer-manager.php
r1746554 r1746561 4 4 * Plugin URI: https://www.erinmorelli.com/projects/em-beer-manager 5 5 * 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. 06 * Version: 3.2.1 7 7 * Author: Erin Morelli 8 8 * Author URI: https://www.erinmorelli.com/ … … 36 36 define('EMBM_PLUGIN_DIR', plugin_dir_path(__FILE__)); 37 37 define('EMBM_PLUGIN_URL', plugin_dir_url(__FILE__)); 38 define('EMBM_DOMAIN', 'embm');39 38 40 39 // WP general options … … 93 92 94 93 // Set current version 95 $embm_curr_version = '3.2. 0';94 $embm_curr_version = '3.2.1'; 96 95 97 96 // Define version key name … … 137 136 138 137 // 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'); 140 139 } 141 140 … … 323 322 $settings_link = '<a href="' . get_bloginfo('wpurl'); 324 323 $settings_link .= '/wp-admin/admin.php?page=embm-settings">'; 325 $settings_link .= __('Settings', EMBM_DOMAIN) . '</a>';324 $settings_link .= __('Settings', 'embm') . '</a>'; 326 325 327 326 // Add to to existing links array … … 382 381 echo '<div class="notice notice-error is-dismissible"><p>'; 383 382 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')), 386 385 '5.3' 387 386 ); … … 403 402 'untappd' => array( 404 403 'id' => 'embm-untappd-integration', 405 'title' => __('Untappd Integration', EMBM_DOMAIN),404 'title' => __('Untappd Integration', 'embm'), 406 405 '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'). 408 407 '</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'). 410 409 '</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'). 412 411 '</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'). 414 413 '</p>' 415 414 ), 416 415 'untappd_id' => array( 417 416 'id' => 'embm-untappd-beer-id', 418 'title' => __('Untappd Beer ID', EMBM_DOMAIN),417 'title' => __('Untappd Beer ID', 'embm'), 419 418 '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'). 421 420 ':</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'). 423 422 '</p>' 424 423 ), 425 424 'untappd_limit' => array ( 426 425 'id' => 'embm-untappd-api-ratelimit', 427 'title' => __('API Rate-Limit', EMBM_DOMAIN),426 'title' => __('API Rate-Limit', 'embm'), 428 427 'content' => '<p>'. 429 428 sprintf( 430 __('From the %s', EMBM_DOMAIN).':',429 __('From the %s', 'embm').':', 431 430 sprintf( 432 431 '<a href="https://untappd.com/api/docs" target="_blank">%s</a>', 433 __('Untappd API documentation', EMBM_DOMAIN)432 __('Untappd API documentation', 'embm') 434 433 ) 435 434 ).'</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'). 439 438 '</p>' 440 439 ), 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>' 444 443 ); 445 444 } -
em-beer-manager/trunk/includes/admin/embm-admin-footer.php
r1746554 r1746561 31 31 <div class="embm-settings-footer--donate"> 32 32 <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> 34 34 <a 35 35 class="embm-settings-footer--donate-button thickbox" 36 36 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'); ?>" 38 38 target="_blank" 39 39 > 40 <?php _e('Buy me a beer!', EMBM_DOMAIN); ?>40 <?php _e('Buy me a beer!', 'embm'); ?> 41 41 </a> 42 42 <span class="dashicons dashicons-smiley"></span> … … 54 54 <p> 55 55 <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> 60 60 </select> 61 61 <input … … 75 75 name="submit" 76 76 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'); ?>" 78 78 ><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" /> 80 80 </p> 81 81 </form> … … 88 88 <p class="embm-settings-footer--credits-untappd"> 89 89 <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" /> 91 91 </a> 92 92 </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> 94 94 <!-- Admin menu beer icon from SimpleIcon.com--> 95 95 <p> 96 96 <?php printf( 97 __('Free beer icon from %s', EMBM_DOMAIN),97 __('Free beer icon from %s', 'embm'), 98 98 '<a href="http://simpleicon.com" target="_blank" title="simple icon" rel="nofollow"><strong>simple icon</strong></a>' 99 99 ); ?>. -
em-beer-manager/trunk/includes/admin/embm-admin-notices.php
r1746554 r1746561 20 20 */ 21 21 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') . ':'; 25 25 26 26 // Map of notices … … 30 30 'type' => 'updated', 31 31 'title' => $SUCCESS_TITLE, 32 'message' => __('Your beer styles have been restored.', EMBM_DOMAIN)32 'message' => __('Your beer styles have been restored.', 'embm') 33 33 ) 34 34 ), … … 37 37 'type' => 'updated', 38 38 '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') 45 45 ) 46 46 ), … … 49 49 'type' => 'error', 50 50 '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') 62 62 ), 63 63 '4' => array( 64 64 'type' => 'error', 65 65 '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') 67 67 ), 68 68 '5' => array( 69 69 'type' => 'warning', 70 70 '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') 72 72 ) 73 73 ), … … 76 76 'type' => 'updated', 77 77 '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') 84 84 ) 85 85 ), … … 88 88 'type' => 'error', 89 89 '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') 101 101 ), 102 102 ), … … 105 105 'type' => 'error', 106 106 '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') 115 115 ) 116 116 ), … … 119 119 'type' => 'error', 120 120 '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') 129 129 ) 130 130 ), … … 133 133 'type' => 'error', 134 134 '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') 146 146 ), 147 147 '4' => array( 148 148 'type' => 'warning', 149 149 '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') 151 151 ) 152 152 ), … … 155 155 'type' => 'updated', 156 156 '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') 168 168 ) 169 169 ) … … 221 221 // Set fallback message 222 222 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'); 224 224 } 225 225 -
em-beer-manager/trunk/includes/admin/embm-admin-settings.php
r1746554 r1746561 39 39 // Setup admin page 40 40 $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'), 43 43 'manage_options', 44 44 'embm-settings', … … 67 67 68 68 // 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'); 72 72 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'); 76 76 } 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'); 78 78 } 79 79 80 80 // 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'); 84 84 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'); 86 86 } 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'); 88 88 } 89 89 90 90 // 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'); 94 94 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'); 96 96 } 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'); 98 98 } 99 99 100 100 // 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'); 104 104 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'); 106 106 } 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'); 108 108 } 109 109 110 110 // 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'); 113 113 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'); 115 115 } 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'); 117 117 } 118 118 119 119 // 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'); 123 123 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'); 125 125 } 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'); 127 127 } 128 128 } … … 190 190 function EMBM_Admin_Settings_Untappd_login() 191 191 { 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>'; 193 193 } 194 194 … … 208 208 209 209 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>'; 211 211 echo '<a data-help="embm-untappd-integration" class="embm-settings--help">?</a></p>'; 212 212 } … … 275 275 // Set up possible options 276 276 $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)' 279 279 ); 280 280 … … 331 331 $output .= checked('1', $view_profile, false).' /> '; 332 332 $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')); 334 334 $output .= '</label><a data-help="embm-settings-faq" class="embm-settings--help">?</a></p>'; 335 335 … … 338 338 $output .= checked('1', $view_extras, false).' /> '; 339 339 $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')); 341 341 $output .= '</label><a data-help="embm-settings-faq" class="embm-settings--help">?</a></p>'; 342 342 … … 368 368 $output .= checked('1', $view_rating, false).' /> '; 369 369 $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')); 371 371 $output .= '</label></p>'; 372 372 … … 387 387 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>'; 388 388 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'); 390 390 echo '</p>'; 391 391 } … … 398 398 function EMBM_Admin_Settings_Global_display() 399 399 { 400 echo EMBM_Admin_Settings_Section_display(__('globally', EMBM_DOMAIN));400 echo EMBM_Admin_Settings_Section_display(__('globally', 'embm')); 401 401 } 402 402 … … 408 408 function EMBM_Admin_Settings_Global_untappd() 409 409 { 410 echo EMBM_Admin_Settings_Section_untappd(__('globally', EMBM_DOMAIN));410 echo EMBM_Admin_Settings_Section_untappd(__('globally', 'embm')); 411 411 } 412 412 … … 423 423 echo sanitize_key($options['embm_group_slug']); 424 424 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 />'; 426 426 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')) 429 429 ).'</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>'; 431 431 } 432 432 … … 438 438 function EMBM_Admin_Settings_Group_display() 439 439 { 440 echo EMBM_Admin_Settings_Section_display(__('in groups', EMBM_DOMAIN), 'group');440 echo EMBM_Admin_Settings_Section_display(__('in groups', 'embm'), 'group'); 441 441 } 442 442 … … 448 448 function EMBM_Admin_Settings_Group_untappd() 449 449 { 450 echo EMBM_Admin_Settings_Section_untappd(__('in groups', EMBM_DOMAIN), 'group');450 echo EMBM_Admin_Settings_Section_untappd(__('in groups', 'embm'), 'group'); 451 451 } 452 452 … … 458 458 function EMBM_Admin_Settings_Style_reset() 459 459 { 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>'; 462 462 463 463 // Add modal prompt … … 467 467 <div id="embm-styles-reset-prompt" style="display:none;"> 468 468 <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> 470 470 <p> 471 471 <?php 472 472 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')) 475 475 ); 476 476 ?> 477 477 </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> 479 479 <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> 482 482 </p> 483 483 </div> … … 487 487 class="thickbox" 488 488 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'); ?>" 490 490 style="display:none;" 491 491 ></a> … … 500 500 function EMBM_Admin_Settings_Style_display() 501 501 { 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'); 503 503 } 504 504 … … 510 510 function EMBM_Admin_Settings_Style_untappd() 511 511 { 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'); 513 513 } 514 514 … … 520 520 function EMBM_Admin_Settings_Menu_display() 521 521 { 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'); 523 523 } 524 524 … … 530 530 function EMBM_Admin_Settings_Menu_untappd() 531 531 { 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'); 533 533 } 534 534 … … 548 548 549 549 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>'; 551 551 } 552 552 … … 558 558 function EMBM_Admin_Settings_Single_display() 559 559 { 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'); 561 561 } 562 562 … … 575 575 576 576 // 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'); 578 578 579 579 // Output review setting 580 580 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>'; 582 582 583 583 // 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'); 585 585 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); 587 587 echo '</label></p>'; 588 588 589 589 // 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>'; 591 591 } 592 592 … … 602 602 array( 603 603 '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')), 605 605 'hide' => EMBM_Core_Beer_disabled() 606 606 ), 607 607 array( 608 608 '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')), 610 610 'hide' => EMBM_Core_Beer_disabled() 611 611 ), 612 612 array( 613 613 'id' => 'usage', 614 'name' => __('Usage', EMBM_DOMAIN),614 'name' => __('Usage', 'embm'), 615 615 'hide' => false 616 616 ) … … 619 619 // Get settings page sections 620 620 global $wp_settings_sections; 621 $sections = $wp_settings_sections[ EMBM_DOMAIN];621 $sections = $wp_settings_sections['embm']; 622 622 623 623 // Check user permissions 624 624 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')); 626 626 } 627 627 … … 633 633 634 634 <h1 class="embm-settings--title"> 635 <?php _e('EM Beer Manager', EMBM_DOMAIN); ?>635 <?php _e('EM Beer Manager', 'embm'); ?> 636 636 <span class="embm-settings--title-version"><?php echo 'v'.get_option(EMBM_VERSION_KEY); ?></span> 637 637 </h1> … … 641 641 <li> 642 642 <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'); ?> 644 644 </a> 645 645 </li> … … 659 659 <span 660 660 class="dashicons dashicons-arrow-right-alt2" 661 title="<?php _e('Collpase/Expand Panel', EMBM_DOMAIN); ?>"661 title="<?php _e('Collpase/Expand Panel', 'embm'); ?>" 662 662 id="embm-settings--navbox-toggle"> 663 663 </span> 664 664 <ul> 665 665 <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> 667 667 <?php foreach ($sections as $section): ?> 668 668 <li><a href="#<?php echo $section['id']; ?>"><?php echo $section['title']; ?></a></li> … … 673 673 <?php 674 674 settings_fields(EMBM_OPTIONS); 675 do_settings_sections( EMBM_DOMAIN);675 do_settings_sections('embm'); 676 676 ?> 677 677 <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'); ?>" /> 679 679 </p> 680 680 </form> -
em-beer-manager/trunk/includes/admin/integrations/embm-integrations-authorize.php
r1746554 r1746561 92 92 ?> 93 93 <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> 95 95 </p> 96 96 <?php … … 115 115 <div class="embm-settings--status"> 116 116 <p> 117 <?php _e('You are logged in to Untappd as', EMBM_DOMAIN); ?>:117 <?php _e('You are logged in to Untappd as', 'embm'); ?>: 118 118 <a 119 119 href="<?php echo $user->untappd_url; ?>" … … 124 124 class="dashicons dashicons-<?php echo ($is_brewery ? 'groups' : 'admin-users'); ?>" 125 125 ></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> 127 127 </p> 128 128 </div> -
em-beer-manager/trunk/includes/admin/integrations/embm-integrations-untappd.php
r1746554 r1746561 129 129 function EMBM_Admin_Untappd_ratelimit() 130 130 { 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'); 132 132 } 133 133 -
em-beer-manager/trunk/includes/admin/tabs/embm-tabs-labs.php
r1746554 r1746561 25 25 ?> 26 26 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( 28 28 '%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') 31 31 ); ?></p> 32 32 33 33 <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');?> 35 35 <a href="mailto:[email protected]?Subject=<?php echo $email_subj; ?>">[email protected]</a>. 36 36 </p> -
em-beer-manager/trunk/includes/admin/tabs/embm-tabs-untappd.php
r1746554 r1746561 30 30 { 31 31 ?> 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> 34 34 <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> 37 37 <p> 38 38 <?php … … 166 166 <tr> 167 167 <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'); ?> 171 171 </p> 172 172 </th> … … 193 193 </p> 194 194 <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> 196 196 </p> 197 197 <p class="description"> 198 198 <?php 199 199 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'), 201 201 '<code>shift</code>', 202 202 '<code>ctrl</code>', … … 209 209 </tr> 210 210 <tr> 211 <th scope="row"><?php _e('Import All Beers', EMBM_DOMAIN); ?></th>211 <th scope="row"><?php _e('Import All Beers', 'embm'); ?></th> 212 212 <td> 213 213 <p> 214 214 <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).')'; ?> 216 216 </a> 217 217 </p> … … 223 223 /> 224 224 <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).')'; ?> 226 226 </label> 227 227 </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> 233 233 <td> 234 234 <p> … … 237 237 name="embm-untappd-beer-id" 238 238 type="number" 239 placeholder="<?php _e('Untappd Beer ID', EMBM_DOMAIN); ?>"239 placeholder="<?php _e('Untappd Beer ID', 'embm'); ?>" 240 240 /> 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> 242 242 <a data-help="embm-untappd-beer-id" class="embm-settings--help">?</a> 243 243 </p> 244 244 <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> 263 263 </p> 264 264 <p> … … 269 269 /> 270 270 <label for="embm-untappd--sync-delete"> 271 <?php _e('Delete Missing', EMBM_DOMAIN); ?>271 <?php _e('Delete Missing', 'embm'); ?> 272 272 </label> 273 273 <a data-help="embm-untappd-api-sync" class="embm-settings--help">?</a> 274 274 </p> 275 275 <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'); ?> 277 277 </p> 278 278 </td> -
em-beer-manager/trunk/includes/admin/tabs/embm-tabs-usage.php
r1746554 r1746561 24 24 array( 25 25 'id' => 'embm_single_beer_display', 26 'title' => 'Single Beer Display'26 'title' => __('Single Beer Display', 'embm') 27 27 ), 28 28 array( 29 29 'id' => 'embm_list_all_beers', 30 'title' => 'List All Beers'30 'title' => __('List All Beers', 'embm') 31 31 ), 32 32 array( 33 33 'id' => 'embm_beer_menu_display', 34 'title' => 'Beer Menu Display'34 'title' => __('Beer Menu Display', 'embm') 35 35 ) 36 36 ); … … 41 41 <span 42 42 class="dashicons dashicons-arrow-right-alt2" 43 title="<?php _e('Collpase/Expand Panel', EMBM_DOMAIN); ?>"43 title="<?php _e('Collpase/Expand Panel', 'embm'); ?>" 44 44 id="embm-usage--navbox-toggle"> 45 45 </span> 46 46 <ul> 47 47 <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> 49 49 <?php foreach ($sections as $section): ?> 50 50 <li> … … 56 56 57 57 <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> 63 63 64 64 <blockquote> … … 66 66 </blockquote> 67 67 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> 69 69 70 70 <blockquote> … … 73 73 <?php 74 74 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'), 76 76 '<code>$beer_id</code>', 77 77 '<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')) 79 79 ); 80 80 ?>: … … 95 95 </blockquote> 96 96 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> 100 100 101 101 <table class="embm-settings--table" cellpadding="0" cellspacing="0" border="0"> 102 102 <thead> 103 103 <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> 108 108 </tr> 109 109 </thead> … … 113 113 <td><code>true, false</code></td> 114 114 <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> 116 116 </tr> 117 117 <tr> … … 119 119 <td><code>true, false</code></td> 120 120 <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> 122 122 </tr> 123 123 <tr> … … 125 125 <td><code>true, false</code></td> 126 126 <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> 128 128 </tr> 129 129 <tr> … … 131 131 <td><code>true, false</code></td> 132 132 <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> 134 134 </tr> 135 135 <tr> 136 136 <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> 138 138 <td><code>5</code></td> 139 139 <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'), 141 141 '<code>15</code>' 142 142 ); ?></td> … … 148 148 149 149 <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> 155 155 156 156 <blockquote> … … 158 158 </blockquote> 159 159 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> 161 161 162 162 <blockquote> … … 165 165 <?php 166 166 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'), 168 168 '<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')) 170 170 ); 171 171 ?>: … … 186 186 </blockquote> 187 187 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> 191 191 192 192 <table class="embm-settings--table" cellpadding="0" cellspacing="0" border="0"> 193 193 <thead> 194 194 <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> 199 199 </tr> 200 200 </thead> … … 204 204 <td><code>true, false</code></td> 205 205 <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> 207 207 </tr> 208 208 <tr> … … 210 210 <td><code>true, false</code></td> 211 211 <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> 213 213 </tr> 214 214 <tr> … … 216 216 <td><code>true, false</code></td> 217 217 <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> 219 219 </tr> 220 220 <tr> 221 221 <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> 223 223 <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> 225 225 </tr> 226 226 <tr> 227 227 <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> 229 229 <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> 231 231 </tr> 232 232 <tr> 233 233 <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> 235 235 <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> 237 237 </tr> 238 238 <tr> 239 239 <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> 243 243 </tr> 244 244 <tr> 245 245 <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> 249 249 </tr> 250 250 <tr> … … 252 252 <td><code>true, false</code></td> 253 253 <td><code>true</code></td> 254 <td><?php _e('Disables/enables pagination', EMBM_DOMAIN); ?></td>254 <td><?php _e('Disables/enables pagination', 'embm'); ?></td> 255 255 </tr> 256 256 <tr> … … 259 259 <?php 260 260 printf( 261 __('See %s for options', EMBM_DOMAIN),261 __('See %s for options', 'embm'), 262 262 sprintf( 263 263 '<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') 265 265 ) 266 266 ); … … 268 268 </td> 269 269 <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> 271 271 </tr> 272 272 <tr> … … 277 277 <?php 278 278 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'), 280 280 '<code>orderby</code>' 281 281 ); … … 289 289 290 290 <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> 296 296 297 297 <blockquote> … … 299 299 </blockquote> 300 300 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> 302 302 303 303 <blockquote> … … 306 306 <?php 307 307 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'), 309 309 '<code>$menu_id</code>', 310 310 '<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')) 312 312 ); 313 313 ?>: … … 330 330 </blockquote> 331 331 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> 335 335 336 336 <table class="embm-settings--table" cellpadding="0" cellspacing="0" border="0"> 337 337 <thead> 338 338 <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> 343 343 </tr> 344 344 </thead> … … 348 348 <td><code>true, false</code></td> 349 349 <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> 351 351 </tr> 352 352 <tr> … … 354 354 <td><code>true, false</code></td> 355 355 <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> 357 357 </tr> 358 358 <tr> … … 360 360 <td><code>true, false</code></td> 361 361 <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> 363 363 </tr> 364 364 <tr> … … 366 366 <td><code>true, false</code></td> 367 367 <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> 369 369 </tr> 370 370 </tbody> -
em-beer-manager/trunk/includes/admin/tabs/embm-tabs-utfb.php
r1746554 r1746561 32 32 <div id="embm-labs-utfb"> 33 33 <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> 35 35 <table class="form-table"> 36 36 <tbody> 37 37 <tr> 38 <th scope="row"><?php _e('API Key', EMBM_DOMAIN); ?></th>38 <th scope="row"><?php _e('API Key', 'embm'); ?></th> 39 39 <td> 40 40 <p> … … 44 44 <p class="description"> 45 45 <?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')), 48 48 sprintf( 49 49 '<a href="%s" target="_blank">%s</a>', 50 50 'https://business.untappd.com/api_tokens', 51 __('here', EMBM_DOMAIN)51 __('here', 'embm') 52 52 ) 53 53 ); ?> … … 56 56 </tr> 57 57 <tr> 58 <th scope="row"><?php _e('Account Email', EMBM_DOMAIN); ?></th>58 <th scope="row"><?php _e('Account Email', 'embm'); ?></th> 59 59 <td> 60 60 <p><input value="" id="embm-utfb--email" type="text"></p> … … 64 64 <th colspan="2"> 65 65 <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> 67 67 </p> 68 68 </th> … … 79 79 printf( 80 80 '<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'), 82 82 '<a data-help="embm-utfb-integration" class="embm-settings--help">?</a>' 83 83 ); … … 121 121 <div class="embm-settings--status"> 122 122 <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'); ?>: 124 124 <a 125 125 href="<?php echo $href; ?>" … … 130 130 class="dashicons dashicons-admin-users" 131 131 ></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> 133 133 </p> 134 134 </div> … … 137 137 <tbody> 138 138 <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> 140 140 <td> 141 141 <p> … … 146 146 data-action="menu" 147 147 > 148 <option value="">-- <?php _e('Select', EMBM_DOMAIN); ?> --</option>148 <option value="">-- <?php _e('Select', 'embm'); ?> --</option> 149 149 <?php foreach ($locations as $location) : ?> 150 150 <option value="<?php echo $location->id; ?>"><?php echo $location->name; ?></option> … … 153 153 <a data-help="embm-utfb-integration" class="embm-settings--help">?</a> 154 154 </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> 156 156 </td> 157 157 </tr> 158 158 <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> 160 160 <td> 161 161 <p> … … 166 166 data-action="section" 167 167 > 168 <option value="">-- <?php _e('Select', EMBM_DOMAIN); ?> --</option>168 <option value="">-- <?php _e('Select', 'embm'); ?> --</option> 169 169 </select> 170 170 <button … … 172 172 class="button button-primary embm-utfb--import" 173 173 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> 177 177 <p class="embm-utfb-section--import-all"> 178 178 <button … … 180 180 class="button button-secondary embm-utfb--import" 181 181 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> 185 185 </td> 186 186 </tr> 187 187 <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> 189 189 <td> 190 190 <p> … … 195 195 data-action="beer" 196 196 > 197 <option value="">-- <?php _e('Select', EMBM_DOMAIN); ?> --</option>197 <option value="">-- <?php _e('Select', 'embm'); ?> --</option> 198 198 </select> 199 199 <button … … 201 201 class="button button-primary embm-utfb--import" 202 202 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> 206 206 <p class="embm-utfb-section--import-all"> 207 207 <button … … 209 209 class="button button-secondary embm-utfb--import" 210 210 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> 214 214 </td> 215 215 </tr> 216 216 <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> 218 218 <td> 219 219 <p> … … 223 223 class="embm-utfb--dropdown" 224 224 > 225 <option value="">-- <?php _e('Select', EMBM_DOMAIN); ?> --</option>225 <option value="">-- <?php _e('Select', 'embm'); ?> --</option> 226 226 </select> 227 227 <button … … 229 229 class="button button-primary embm-utfb--import" 230 230 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> 234 234 <p class="embm-utfb-section--import-all"> 235 235 <button … … 237 237 class="button button-secondary embm-utfb--import" 238 238 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> 242 242 </td> 243 243 </tr> 244 244 <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> 246 246 <td> 247 247 <p> … … 249 249 type="button" 250 250 class="embm-utfb--sync button-secondary" 251 ><?php _e('Sync Data', EMBM_DOMAIN); ?></button>251 ><?php _e('Sync Data', 'embm'); ?></button> 252 252 </p> 253 253 <p> … … 258 258 /> 259 259 <label for="embm-utfb--sync-delete"> 260 <?php _e('Delete Missing', EMBM_DOMAIN); ?>260 <?php _e('Delete Missing', 'embm'); ?> 261 261 </label> 262 262 <a data-help="embm-untappd-api-sync" class="embm-settings--help">?</a> 263 263 </p> 264 264 <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 /> 267 267 </p> 268 268 </td> 269 269 </tr> 270 270 <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> 274 274 <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'); ?> 276 276 </p> 277 277 </td> -
em-beer-manager/trunk/includes/embm-admin.php
r1746554 r1746561 56 56 57 57 // 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'); 59 59 $sconfirm = __( 60 60 'WARNING: This will override any changes you have made to %s. %s', 61 EMBM_DOMAIN61 'embm' 62 62 ); 63 63 $uconfirm = __( 64 64 'WARNING: This will override any custom menu-beer associations you have made '. 65 65 'as well as any changes made to Untappd for Business-linked menus. %s', 66 EMBM_DOMAIN66 'embm' 67 67 ); 68 68 $urmconfirm = __( 69 69 'WARNING: Enabling this will permanently remove any Untappd for Business-linked menus not found during the sync. %s', 70 EMBM_DOMAIN70 'embm' 71 71 ); 72 72 $rmconfirm = __( 73 73 'WARNING: Enabling this will move any Untappd-linked beers not found during the sync to the trash. %s', 74 EMBM_DOMAIN74 'embm' 75 75 ); 76 76 … … 83 83 'plugin_url' => EMBM_PLUGIN_URL, 84 84 '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'), 86 86 '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), 90 90 'sync_confirm_utfb' => sprintf($uconfirm, $confirm), 91 91 'sync_confirm_utfb_rm' => sprintf($urmconfirm, $confirm), … … 110 110 $cols = array( 111 111 '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') 121 121 ); 122 122 123 123 // Add Untappd columns, if enabled 124 124 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'); 127 127 } 128 128 129 129 // Add released date column 130 $cols['date'] = __('Released', EMBM_DOMAIN);130 $cols['date'] = __('Released', 'embm'); 131 131 132 132 // Return new column array … … 315 315 array( 316 316 'id' => 'embm-utfb-integration', 317 'title' => __('Untappd for Business Integration', EMBM_DOMAIN),317 'title' => __('Untappd for Business Integration', 'embm'), 318 318 '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'). 320 320 '</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'). 322 322 '</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'). 324 324 '</p><p><strong>'. 325 __('Where do I find my API key?', EMBM_DOMAIN).325 __('Where do I find my API key?', 'embm'). 326 326 '</strong></p><p>'. 327 327 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'), 329 329 sprintf( 330 330 '<a href="https://business.untappd.com/api_tokens" target="_blank">%s</a>', 331 __('here', EMBM_DOMAIN)331 __('here', 'embm') 332 332 ) 333 333 ). … … 340 340 array ( 341 341 'id' => 'embm-untappd-api-sync', 342 'title' => __('Syncing', EMBM_DOMAIN),342 'title' => __('Syncing', 'embm'), 343 343 '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'). 349 349 '</p>' 350 350 ) … … 355 355 array( 356 356 'id' => 'embm-settings-faq', 357 'title' => __('Settings FAQ', EMBM_DOMAIN),357 'title' => __('Settings FAQ', 'embm'), 358 358 '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'). 360 360 '</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'). 362 362 '</p><p><strong>'. 363 __('What\'s the difference between "profile" and "extras"?', EMBM_DOMAIN).363 __('What\'s the difference between "profile" and "extras"?', 'embm'). 364 364 '</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'). 366 366 '</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'). 368 368 '</p>' 369 369 ) -
em-beer-manager/trunk/includes/embm-core.php
r1746554 r1746561 29 29 // Set custom post type terminology 30 30 $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'), 42 42 'parent_ithwh_colon' => '', 43 'menu_name' => __('Beers', EMBM_DOMAIN)43 'menu_name' => __('Beers', 'embm') 44 44 ); 45 45 … … 47 47 $args = array( 48 48 'labels' => $labels, 49 'description' => __('Holds beer specific data', EMBM_DOMAIN),49 'description' => __('Holds beer specific data', 'embm'), 50 50 'public' => true, 51 51 'capability_type' => 'post', … … 58 58 'rest_controller_class' => 'WP_REST_Posts_Controller', 59 59 'rewrite' => array( 60 'slug' => __('beers', EMBM_DOMAIN),60 'slug' => __('beers', 'embm'), 61 61 'with_front' => false, 62 62 'feeds' => true, … … 217 217 // Help sidebar 218 218 $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>' . 220 220 $default_help['sidebar'] 221 221 ); … … 370 370 'desc' => sprintf( 371 371 '★★★★☆ (4.0) | 1,234 %s', 372 __('Ratings', EMBM_DOMAIN)372 __('Ratings', 'embm') 373 373 ) 374 374 ) … … 403 403 // Set custom taxonomy terminology 404 404 $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') 418 418 ); 419 419 … … 426 426 'query_var' => true, 427 427 'rewrite' => array( 428 'slug' => __('beers/style', EMBM_DOMAIN),428 'slug' => __('beers/style', 'embm'), 429 429 'with_front' => false 430 430 ), … … 486 486 // Set custom taxonomy terminology 487 487 $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') 501 501 ); 502 502 … … 543 543 // Set custom taxonomy terminology 544 544 $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') 558 558 ); 559 559 … … 788 788 return array( 789 789 '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'), 791 791 'context' => array('view', 'edit'), 792 792 'items' => array( 793 793 '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'), 795 795 'type' => 'string' 796 796 ), 797 797 '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'), 799 799 'type' => 'string' 800 800 ), 801 801 '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'), 803 803 'type' => 'string' 804 804 ), 805 805 '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'), 807 807 'type' => 'string' 808 808 ), 809 809 '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'), 811 811 'type' => 'integer' 812 812 ), 813 813 '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'), 815 815 'type' => 'number' 816 816 ) … … 823 823 return array( 824 824 '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'), 826 826 'context' => array('view', 'edit'), 827 827 'items' => array( 828 828 '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'), 830 830 'type' => 'string' 831 831 ), 832 832 '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'), 834 834 'type' => 'string' 835 835 ), 836 836 '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'), 838 838 'type' => 'integer' 839 839 ) … … 846 846 return array( 847 847 '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'), 849 849 'context' => array('view', 'edit'), 850 850 'items' => array( 851 851 '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'), 853 853 'type' => 'integer' 854 854 ) -
em-beer-manager/trunk/includes/embm-output.php
r1746554 r1746561 55 55 // Beer style 56 56 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)); 58 58 59 59 $output .= '<span class="embm-beer--header-style">('; … … 106 106 if ((is_tax(EMBM_STYLE) || is_archive()) && !is_tax(EMBM_GROUP) && !is_tax(EMBM_MENU)) { 107 107 $output .= ' <a class="read-more" href="'.get_permalink($beer_id).'">'; 108 $output .= __('More', EMBM_DOMAIN).'...';108 $output .= __('More', 'embm').'...'; 109 109 $output .= '</a>'; 110 110 } … … 195 195 196 196 // Set up translatable title text 197 $untap_title = __('Check in on Untappd', EMBM_DOMAIN);197 $untap_title = __('Check in on Untappd', 'embm'); 198 198 199 199 // Get icon set … … 257 257 if ($abv != '0%') { 258 258 $output .= '<div class="abv"><span class="label">'; 259 $output .= __('ABV', EMBM_DOMAIN).':';259 $output .= __('ABV', 'embm').':'; 260 260 $output .= '</span><span class="value">'.$abv.'</span></div>'."\n"; 261 261 } … … 263 263 if ($ibu != '0') { 264 264 $output .= '<div class="ibu"><span class="label">'; 265 $output .= __('IBU', EMBM_DOMAIN).':';265 $output .= __('IBU', 'embm').':'; 266 266 $output .= '</span><span class="value">'.$ibu.'</span></div>'."\n"; 267 267 } … … 269 269 if ($malts != '') { 270 270 $output .= '<div class="malts"><span class="label">'; 271 $output .= __('Malts', EMBM_DOMAIN).':';271 $output .= __('Malts', 'embm').':'; 272 272 $output .= '</span><span class="value">'.$malts.'</span></div>'."\n"; 273 273 } … … 275 275 if ($hops != '') { 276 276 $output .= '<div class="hops"><span class="label">'; 277 $output .= __('Hops', EMBM_DOMAIN).':';277 $output .= __('Hops', 'embm').':'; 278 278 $output .= '</span><span class="value">'.$hops.'</span></div>'."\n"; 279 279 } … … 281 281 if ($adds != '') { 282 282 $output .= '<div class="other"><span class="label">'; 283 $output .= __('Other', EMBM_DOMAIN).':';283 $output .= __('Other', 'embm').':'; 284 284 $output .= '</span><span class="value">'.$adds.'</span></div>'."\n"; 285 285 } … … 287 287 if ($yeast != '') { 288 288 $output .= '<div class="yeast"><span class="label">'; 289 $output .= __('Yeast', EMBM_DOMAIN).':';289 $output .= __('Yeast', 'embm').':'; 290 290 $output .= '</span><span class="value">'.$yeast.'</span></div>'."\n"; 291 291 } … … 339 339 if ($bnum != '#') { 340 340 $output .= '<div class="beer_num"><span class="label">'; 341 $output .= __('Beer Number', EMBM_DOMAIN).':';341 $output .= __('Beer Number', 'embm').':'; 342 342 $output .= '</span><span class="value">'.$bnum.'</span></div>'."\n"; 343 343 } … … 345 345 if ($avail != '') { 346 346 $output .= '<div class="avail"><span class="label">'; 347 $output .= __('Availability', EMBM_DOMAIN).':';347 $output .= __('Availability', 'embm').':'; 348 348 $output .= '</span><span class="value">'.$avail.'</span></div>'."\n"; 349 349 } … … 351 351 if ($notes != '') { 352 352 $output .= '<div class="notes"><span class="label">'; 353 $output .= __('Additional Notes', EMBM_DOMAIN);353 $output .= __('Additional Notes', 'embm'); 354 354 $output .= '</span><span class="value">'.$notes.'</span></div>'."\n"; 355 355 } … … 414 414 // Generate HTML output 415 415 $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')); 417 417 $output .= EMBM_Output_Rating_styles(); 418 418 $output .= '</div>'."\n"; … … 560 560 // Start reviews output 561 561 $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"; 563 563 564 564 // Check that we have reviews … … 573 573 // Friendly text for when there are no reviews 574 574 $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'); 576 576 $output .= '</p>'; 577 577 } … … 582 582 // Add 'more' link 583 583 if (count($reviews) > 0) { 584 $more_text = __('View More', EMBM_DOMAIN);584 $more_text = __('View More', 'embm'); 585 585 $output .= '<div class="embm-beer--reviews-more">'; 586 586 $output .= '<a href="'.$untappd_url.'" target="_blank" title="' . $more_text . '">'; … … 591 591 592 592 // Add Untappd credit 593 $credit_text = __('Powered by Untappd', EMBM_DOMAIN);593 $credit_text = __('Powered by Untappd', 'embm'); 594 594 $output .= '<div class="embm-beer--reviews-credit">'; 595 595 $output .= '<a href="https://untappd.com" target="_blank" rel="nofollow" title="' . $credit_text . '">'; … … 674 674 $output .= '<span class="embm-beer--review-link">'; 675 675 $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'); 677 677 $output .= '</a></span>'; 678 678 … … 778 778 // Display the collaboration 779 779 $output .= '<div class="embm-beer--collab">'."\n"; 780 $output .= __('A collaboration with', EMBM_DOMAIN)." ";780 $output .= __('A collaboration with', 'embm')." "; 781 781 $output .= join(', ', $collaborators); 782 782 $output .= "</div>\n"; -
em-beer-manager/trunk/includes/metaboxes/embm-metabox-extras.php
r1746554 r1746561 30 30 add_meta_box( 31 31 'embm_beer_extras', 32 __('Extra Beer Information', EMBM_DOMAIN),32 __('Extra Beer Information', 'embm'), 33 33 'EMBM_Admin_Metabox_Extras_content', 34 34 EMBM_BEER, … … 76 76 <div class="embm-metabox__field embm-metabox--extras-num"> 77 77 <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 /> 79 79 <input type="number" name="embm_beer_num" id="embm_beer_num" min="0000" max="9999" step="1" value="<?php echo $b_num; ?>" /> 80 80 </p> … … 82 82 <div class="embm-metabox__field embm-metabox--extras-avail"> 83 83 <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 /> 85 85 <input type="text" name="embm_avail" id="embm_avail" value="<?php echo $b_avail; ?>" /> 86 86 </p> … … 90 90 <div class="embm-metabox--extras-notes"> 91 91 <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> 93 93 </p> 94 94 <?php wp_editor($b_notes, 'embm_notes', $notes_settings); ?> -
em-beer-manager/trunk/includes/metaboxes/embm-metabox-menus.php
r1746554 r1746561 36 36 <div class="form-field term-utfb-id"> 37 37 <label for="embm_utfb_id"> 38 <?php _e('Untappd for Business ID', EMBM_DOMAIN); ?>38 <?php _e('Untappd for Business ID', 'embm'); ?> 39 39 </label> 40 40 <input type="number" name="embm_utfb_id" id="embm_utfb_id" value="" /> … … 48 48 type="checkbox" 49 49 > 50 <span><?php _e('Exclude from Sync', EMBM_DOMAIN); ?></span>50 <span><?php _e('Exclude from Sync', 'embm'); ?></span> 51 51 </label> 52 52 </div> … … 83 83 <th scope="row" valign="top"> 84 84 <label for="embm_utfb_id"> 85 <?php _e('Untappd for Business ID', EMBM_DOMAIN); ?>85 <?php _e('Untappd for Business ID', 'embm'); ?> 86 86 </label> 87 87 </th> … … 93 93 <th scope="row" valign="top"> 94 94 <label for="embm_sync_exclude"> 95 <strong><?php _e('Exclude from Sync', EMBM_DOMAIN); ?></strong>95 <strong><?php _e('Exclude from Sync', 'embm'); ?></strong> 96 96 </label> 97 97 </th> … … 188 188 // Add UTFB columns, if enabled 189 189 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'); 192 192 } 193 193 return $columns; -
em-beer-manager/trunk/includes/metaboxes/embm-metabox-profile.php
r1746554 r1746561 30 30 add_meta_box( 31 31 'embm_beer_profile', 32 __('Beer Profile', EMBM_DOMAIN),32 __('Beer Profile', 'embm'), 33 33 'EMBM_Admin_Metabox_Profile_content', 34 34 EMBM_BEER, … … 70 70 <div class="embm-metabox__field embm-metabox--profile-malts"> 71 71 <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 /> 73 73 <input type="text" name="embm_malts" id="embm_malts" style="width:100%;" value="<?php echo $b_malts; ?>" /> 74 74 </p> … … 76 76 <div class="embm-metabox__field embm-metabox--profile-hops"> 77 77 <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 /> 79 79 <input type="text" name="embm_hops" id="embm_hops" style="width:100%;" value="<?php echo $b_hops; ?>" /> 80 80 </p> … … 82 82 <div class="embm-metabox__field embm-metabox--profile-adds"> 83 83 <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 /> 85 85 <input type="text" name="embm_adds" id="embm_adds" style="width:100%;" value="<?php echo $b_adds; ?>" /> 86 86 </p> … … 88 88 <div class="embm-metabox__field embm-metabox--profile-yeast"> 89 89 <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 /> 91 91 <input type="text" name="embm_yeast" id="embm_yeast" style="width:100%;" value="<?php echo $b_yeast; ?>" /> 92 92 </p> … … 95 95 <div class="embm-metabox__field embm-metabox--profile-abv"> 96 96 <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 /> 98 98 <input type="number" name="embm_abv" id="embm_abv" min="0.0" max="100.0" step="0.1" value="<?php echo $b_abv; ?>" /> % 99 99 </p> … … 101 101 <div class="embm-metabox__field embm-metabox--profile-ibu"> 102 102 <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 /> 104 104 <input type="number" name="embm_ibu" id="embm_style" min="0" max="100" step="1" value="<?php echo $b_ibu; ?>" /> 105 105 </p> -
em-beer-manager/trunk/includes/metaboxes/embm-metabox-untappd.php
r1746554 r1746561 35 35 add_meta_box( 36 36 'embm_beer_untappd', 37 __('Untappd', EMBM_DOMAIN),37 __('Untappd', 'embm'), 38 38 'EMBM_Admin_Metabox_Untappd_content', 39 39 EMBM_BEER, … … 146 146 // Set reviews_count input 147 147 $reviews_count_input = sprintf( 148 __('Show %s checkins (max. %d)', EMBM_DOMAIN),148 __('Show %s checkins (max. %d)', 'embm'), 149 149 '<input 150 150 id="embm_reviews_count" … … 167 167 <div class="embm-metabox__field embm-metabox--untappd-id"> 168 168 <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 /> 170 170 <input 171 171 type="number" … … 184 184 <?php if ($is_brewery && !$show_api_error) : ?> 185 185 <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 /> 187 187 <select id="untappd_id_select" name="untappd_id_select"> 188 188 <option value="" 189 189 <?php selected($beer_found, false); ?> 190 >-- <?php _e('Custom/Unaffiliated', EMBM_DOMAIN); ?> --</option>190 >-- <?php _e('Custom/Unaffiliated', 'embm'); ?> --</option> 191 191 <?php foreach ($beer_list as $item) : $beer = $item->beer; ?> 192 192 <option … … 202 202 <?php if (null !== $utfb_data && !$show_api_error) : ?> 203 203 <p> 204 <strong><?php _e('Untappd for Business Menus', EMBM_DOMAIN); ?></strong><br />204 <strong><?php _e('Untappd for Business Menus', 'embm'); ?></strong><br /> 205 205 <ul> 206 206 <?php foreach ($menus as $menu): ?> … … 233 233 <div class="embm-metabox--untappd-checkboxes"> 234 234 <p> 235 <strong><?php printf('Override Display Settings', EMBM_DOMAIN); ?></strong>235 <strong><?php printf('Override Display Settings', 'embm'); ?></strong> 236 236 </p> 237 237 <div class="embm-metabox--untappd-rating"> … … 244 244 <?php checked('1', $hide_rating); ?> 245 245 > 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> 247 247 </p> 248 248 </div> … … 256 256 <?php checked('1', $hide_reviews); ?> 257 257 > 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> 259 259 </p> 260 260 <p class="embm-metabox--untappd-review-count"> … … 266 266 <div class="embm-metabox--untappd-flush"> 267 267 <p> 268 <strong><?php _e('Refresh Untappd Beer Data', EMBM_DOMAIN); ?></strong>268 <strong><?php _e('Refresh Untappd Beer Data', 'embm'); ?></strong> 269 269 </p> 270 270 <p> 271 271 <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'); ?> 273 273 </a> 274 274 </p> 275 275 <p class="description"> 276 <?php _e('This is automatically done daily.', EMBM_DOMAIN); ?>276 <?php _e('This is automatically done daily.', 'embm'); ?> 277 277 </p> 278 278 </div> 279 279 <div class="embm-metabox--untappd-sync"> 280 280 <p> 281 <strong><?php _e('Sync Untappd Beer Data', EMBM_DOMAIN); ?></strong>281 <strong><?php _e('Sync Untappd Beer Data', 'embm'); ?></strong> 282 282 </p> 283 283 <p> 284 284 <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'); ?> 286 286 </a> 287 287 </p> 288 288 <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'); ?> 291 291 </p> 292 292 <p> … … 299 299 > 300 300 <label for="embm_sync_exclude"> 301 <strong><?php _e('Exclude from Sync', EMBM_DOMAIN); ?></strong>301 <strong><?php _e('Exclude from Sync', 'embm'); ?></strong> 302 302 </label> 303 303 </p> … … 308 308 <?php elseif ($untappd_id == '') : ?> 309 309 <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'); ?> 311 311 </p> 312 312 <?php else : ?> … … 314 314 <?php 315 315 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'), 317 317 sprintf( 318 318 '<a href="%s">%s</a>', 319 319 get_admin_url(null, 'options-general.php?page=embm-settings'), 320 __('settings page', EMBM_DOMAIN)320 __('settings page', 'embm') 321 321 ) 322 322 ); -
em-beer-manager/trunk/includes/output/embm-output-filters.php
r1746554 r1746561 251 251 $output .= '<span class="embm-beer--header-style">('; 252 252 $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).'">'; 254 254 $output .= $style; 255 255 $output .= '</a>)</span>'."\n"; -
em-beer-manager/trunk/includes/output/embm-output-menus.php
r1746554 r1746561 34 34 // Make sure we're authorized 35 35 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'); 37 37 } 38 38 … … 52 52 'Could not locate Untappd for Business data for this Menu. '. 53 53 'Please make sure an ID is set in the Menus admin', 54 EMBM_DOMAIN54 'embm' 55 55 ); 56 56 } … … 77 77 if ($showupdated) { 78 78 $output .= '<p class="embm-beer-menu--updated">'; 79 $output .= __('Last updated', EMBM_DOMAIN).': ';79 $output .= __('Last updated', 'embm').': '; 80 80 $output .= $menu_updated_formatted.'</p>'; 81 81 } … … 135 135 $output .= '<p class="embm-beer-menu--beer-data">'; 136 136 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>'; 138 138 } 139 139 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>'; 141 141 } 142 142 -
em-beer-manager/trunk/includes/widgets/embm-widget-list.php
r1746554 r1746561 34 34 $widget_options = array( 35 35 'classname' => EMBM_WIDGET_BEER_LIST, 36 'description' => __('Displays a list of beers', EMBM_DOMAIN)36 'description' => __('Displays a list of beers', 'embm') 37 37 ); 38 38 parent::__construct( 39 39 EMBM_WIDGET_BEER_LIST, 40 __('Beer List', EMBM_DOMAIN),40 __('Beer List', 'embm'), 41 41 $widget_options 42 42 ); … … 78 78 <div class="embm-beer-list-widget"> 79 79 <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 /> 81 81 <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; ?>" /> 82 82 </p> 83 83 <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> 89 89 <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; ?>" /> 90 90 </p> 91 91 <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> 93 93 <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); ?> /> 94 94 </p> 95 95 <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> <?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> <?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> 101 101 <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> 103 103 <?php $beer_styles = get_terms(EMBM_STYLE); foreach ($beer_styles as $beer_style) : ?> 104 104 <option value="<?php echo $beer_style->slug; ?>" <?php echo selected($style, $beer_style->slug, false); ?>><?php echo $beer_style->name; ?></option> … … 107 107 </p> 108 108 <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> 110 110 <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> 112 112 <?php $beer_groups = get_terms(EMBM_GROUP); foreach ($beer_groups as $beer_group) : ?> 113 113 <option value="<?php echo $beer_group->slug; ?>" <?php echo selected($group, $beer_group->slug, false); ?>><?php echo $beer_group->name; ?></option> … … 255 255 $output .= substr($beer_summary, 0, $beer_sum_end).'...'; 256 256 $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'); 258 258 $output .= '</a>'; 259 259 $output .= '</span>'; … … 271 271 } else { 272 272 // Fall back message for when no beers are found 273 $error = __('No beers found.', EMBM_DOMAIN);273 $error = __('No beers found.', 'embm'); 274 274 return $error; 275 275 } -
em-beer-manager/trunk/includes/widgets/embm-widget-untappd.php
r1746554 r1746561 44 44 $widget_options = array( 45 45 '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') 47 47 ); 48 48 … … 53 53 parent::__construct( 54 54 EMBM_WIDGET_RECENT_UNTAPPD, 55 __('Recent Untappd Check-ins', EMBM_DOMAIN),55 __('Recent Untappd Check-ins', 'embm'), 56 56 $widget_options 57 57 ); … … 95 95 array( 96 96 'id' => 'embm-untappd-brewery-id', 97 'title' => __('Untappd Beer ID', EMBM_DOMAIN),97 'title' => __('Untappd Beer ID', 'embm'), 98 98 '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'). 100 100 ' (i.e. <code>https://untappd.com/BreweryName</code>). '. 101 101 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'), 103 103 '"Brewery Feed (RSS)"' 104 104 ).':</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'). 107 107 '</p>' 108 108 ) … … 183 183 <div class="embm-untappd-widget"> 184 184 <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 /> 186 186 <input 187 187 id="<?php echo $this->get_field_id('title'); ?>" … … 193 193 </p> 194 194 <p class="embm-untappd-widget--brewery"> 195 <label for="<?php echo $this->get_field_id('brewery'); ?>"><?php _e('Brewery ID', EMBM_DOMAIN); ?> </label>195 <label for="<?php echo $this->get_field_id('brewery'); ?>"><?php _e('Brewery ID', 'embm'); ?> </label> 196 196 <input 197 197 id="<?php echo $this->get_field_id('brewery'); ?>" … … 204 204 </p> 205 205 <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); ?>: </label>206 <label for="<?php echo $this->get_field_id('items'); ?>"><?php _e('Number of items to show', 'embm'); ?>: </label> 207 207 <input 208 208 id="<?php echo $this->get_field_id('items'); ?>" … … 215 215 value="<?php echo $items; ?>" 216 216 /><br /> 217 <small><em>(<?php printf(__('Max. %d', EMBM_DOMAIN), 15); ?></em>)</small>217 <small><em>(<?php printf(__('Max. %d', 'embm'), 15); ?></em>)</small> 218 218 </p> 219 219 <hr /> … … 226 226 <?php checked('1', $rating); ?> 227 227 /> 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> 229 229 </p> 230 230 <p class="embm-untappd-widget--comment"> … … 236 236 <?php checked('1', $comment); ?> 237 237 /> 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> 239 239 </p> 240 240 <p class="embm-untappd-widget--venue"> … … 246 246 <?php checked('1', $venue); ?> 247 247 /> 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> 249 249 </p> 250 250 <p class="embm-untappd-widget--thumb" style="margin-bottom:0;"> … … 256 256 <?php checked('1', $thumb); ?> 257 257 /> 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> 259 259 </p> 260 260 <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> 262 262 </p> 263 263 <p class="embm-untappd-widget--more"> … … 269 269 <?php checked('1', $more); ?> 270 270 /> 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> 272 272 </p> 273 273 <hr /> 274 274 <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> 276 276 </p> 277 277 <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> 279 279 </p> 280 280 <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> 282 282 </p> 283 283 <?php echo $errors; ?> … … 439 439 if (!$brewery_id) { 440 440 $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'); 442 442 $output .= '</li>'."\n"; 443 443 $output .= '</ul>'."\n"; … … 464 464 // Add 'more' link 465 465 if ($show_more) { 466 $more_text = __('View More', EMBM_DOMAIN);466 $more_text = __('View More', 'embm'); 467 467 $output .= '<span class="embm-untappd-list--more">'; 468 468 $output .= '<a href="https://untappd.com/brewery/'.$brewery_id.'" target="_blank" title="' . $more_text . '">'; … … 473 473 474 474 // Add Untappd credit 475 $credit_text = __('Powered by Untappd', EMBM_DOMAIN);475 $credit_text = __('Powered by Untappd', 'embm'); 476 476 $credit_class = $show_more ? '' : ' embm-untappd-list--credit__left'; 477 477 $output .= '<span class="embm-untappd-list--credit'.$credit_class.'">'; … … 524 524 // Make sure we have check-ins to show 525 525 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'); 527 527 return sprintf('<p class="embm-untappd-list--empty">%s</p>', $error); 528 528 } … … 608 608 // Check for errors 609 609 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'); 611 611 return sprintf('<p class="embm-untappd-list--empty">%s</p>', $error); 612 612 } … … 617 617 // Make sure we have check-ins to show 618 618 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'); 620 620 return sprintf('<p class="embm-untappd-list--empty">%s</p>', $error); 621 621 } … … 718 718 719 719 // 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'); 721 721 722 722 // Entry title 723 723 $output .= '<span class="embm-untappd-list--item-title">'; 724 724 $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).' '; 726 726 $output .= sprintf($link_format, $entry['beer']['link'], $entry['beer']['name']); 727 727 $output .= '</span>'; … … 757 757 758 758 // 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')); 760 760 761 761 // End meta & content
Note: See TracChangeset
for help on using the changeset viewer.