summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'themes/mantra/includes/tgm.php')
-rw-r--r--themes/mantra/includes/tgm.php214
1 files changed, 107 insertions, 107 deletions
diff --git a/themes/mantra/includes/tgm.php b/themes/mantra/includes/tgm.php
index 4585162d..93bd5f15 100644
--- a/themes/mantra/includes/tgm.php
+++ b/themes/mantra/includes/tgm.php
@@ -26,23 +26,23 @@ function cryout_settings_plugin() {
'is_automatic' => true, // Automatically activate plugins after installation or not.
'message' => '', // Message to output right before the plugins table.
'strings' => array(
- 'page_title' => __( 'Recommended Plugins', 'cryout' ),
- 'menu_title' => ucwords(_CRYOUT_THEME_NAME) . __( ' Plugins', 'cryout' ),
- 'installing' => __( 'Installing Plugin: %s', 'cryout' ), // %s = plugin name.
- 'oops' => __( 'Something went wrong with the plugin API.', 'cryout' ),
- 'notice_can_install_required' => _n_noop( ucwords(_CRYOUT_THEME_NAME) . ' requires the following plugin: %1$s.', ucwords(_CRYOUT_THEME_NAME) . ' requires the following plugins: %1$s.', 'cryout' ), // %1$s = plugin name(s).
- 'notice_can_install_recommended' => _n_noop( ucwords(_CRYOUT_THEME_NAME) . ' recommends the following plugin: %1$s.', ucwords(_CRYOUT_THEME_NAME) . ' recommends the following plugins: %1$s.', 'cryout' ), // %1$s = plugin name(s).
- 'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.', 'cryout' ), // %1$s = plugin name(s).
- 'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'cryout' ), // %1$s = plugin name(s).
- 'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'cryout' ), // %1$s = plugin name(s).
- 'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.', 'cryout' ), // %1$s = plugin name(s).
- 'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'cryout' ), // %1$s = plugin name(s).
- 'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.', 'cryout' ), // %1$s = plugin name(s).
- 'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins', 'cryout' ),
- 'activate_link' => _n_noop( 'Begin activating plugin', 'Begin activating plugins', 'cryout' ),
- 'return' => __( 'Return to Required Plugins Installer', 'cryout' ),
- 'plugin_activated' => __( 'Plugin activated successfully.', 'cryout' ),
- 'complete' => __( 'All plugins installed and activated successfully. %s', 'cryout' ), // %s = dashboard link.
+ 'page_title' => __( 'Recommended Plugins', 'mantra' ),
+ 'menu_title' => ucwords(_CRYOUT_THEME_NAME) . __( ' Plugins', 'mantra' ),
+ 'installing' => __( 'Installing Plugin: %s', 'mantra' ), // %s = plugin name.
+ 'oops' => __( 'Something went wrong with the plugin API.', 'mantra' ),
+ 'notice_can_install_required' => _n_noop( ucwords(_CRYOUT_THEME_NAME) . ' requires the following plugin: %1$s.', ucwords(_CRYOUT_THEME_NAME) . ' requires the following plugins: %1$s.', 'mantra' ), // %1$s = plugin name(s).
+ 'notice_can_install_recommended' => _n_noop( ucwords(_CRYOUT_THEME_NAME) . ' recommends the following plugin: %1$s.', ucwords(_CRYOUT_THEME_NAME) . ' recommends the following plugins: %1$s.', 'mantra' ), // %1$s = plugin name(s).
+ 'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.', 'mantra' ), // %1$s = plugin name(s).
+ 'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'mantra' ), // %1$s = plugin name(s).
+ 'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'mantra' ), // %1$s = plugin name(s).
+ 'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.', 'mantra' ), // %1$s = plugin name(s).
+ 'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'mantra' ), // %1$s = plugin name(s).
+ 'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.', 'mantra' ), // %1$s = plugin name(s).
+ 'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins', 'mantra' ),
+ 'activate_link' => _n_noop( 'Begin activating plugin', 'Begin activating plugins', 'mantra' ),
+ 'return' => __( 'Return to Required Plugins Installer', 'mantra' ),
+ 'plugin_activated' => __( 'Plugin activated successfully.', 'mantra' ),
+ 'complete' => __( 'All plugins installed and activated successfully. %s', 'mantra' ), // %s = dashboard link.
'nag_type' => 'updated' // Determines admin notice type - can only be 'updated', 'update-nag' or 'error'.
)
);
@@ -379,77 +379,77 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
// Load class strings.
$this->strings = array(
- 'page_title' => __( 'Install Required Plugins', 'cryout' ),
- 'menu_title' => __( 'Install Plugins', 'cryout' ),
+ 'page_title' => __( 'Install Required Plugins', 'mantra' ),
+ 'menu_title' => __( 'Install Plugins', 'mantra' ),
/* translators: %s: plugin name. */
- 'installing' => __( 'Installing Plugin: %s', 'cryout' ),
+ 'installing' => __( 'Installing Plugin: %s', 'mantra' ),
/* translators: %s: plugin name. */
- 'updating' => __( 'Updating Plugin: %s', 'cryout' ),
- 'oops' => __( 'Something went wrong with the plugin API.', 'cryout' ),
+ 'updating' => __( 'Updating Plugin: %s', 'mantra' ),
+ 'oops' => __( 'Something went wrong with the plugin API.', 'mantra' ),
'notice_can_install_required' => _n_noop(
/* translators: 1: plugin name(s). */
'This theme requires the following plugin: %1$s.',
'This theme requires the following plugins: %1$s.',
- 'cryout'
+ 'mantra'
),
'notice_can_install_recommended' => _n_noop(
/* translators: 1: plugin name(s). */
'This theme recommends the following plugin: %1$s.',
'This theme recommends the following plugins: %1$s.',
- 'cryout'
+ 'mantra'
),
'notice_ask_to_update' => _n_noop(
/* translators: 1: plugin name(s). */
'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.',
'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.',
- 'cryout'
+ 'mantra'
),
'notice_ask_to_update_maybe' => _n_noop(
/* translators: 1: plugin name(s). */
'There is an update available for: %1$s.',
'There are updates available for the following plugins: %1$s.',
- 'cryout'
+ 'mantra'
),
'notice_can_activate_required' => _n_noop(
/* translators: 1: plugin name(s). */
'The following required plugin is currently inactive: %1$s.',
'The following required plugins are currently inactive: %1$s.',
- 'cryout'
+ 'mantra'
),
'notice_can_activate_recommended' => _n_noop(
/* translators: 1: plugin name(s). */
'The following recommended plugin is currently inactive: %1$s.',
'The following recommended plugins are currently inactive: %1$s.',
- 'cryout'
+ 'mantra'
),
'install_link' => _n_noop(
'Begin installing plugin',
'Begin installing plugins',
- 'cryout'
+ 'mantra'
),
'update_link' => _n_noop(
'Begin updating plugin',
'Begin updating plugins',
- 'cryout'
+ 'mantra'
),
'activate_link' => _n_noop(
'Begin activating plugin',
'Begin activating plugins',
- 'cryout'
+ 'mantra'
),
- 'return' => __( 'Return to Required Plugins Installer', 'cryout' ),
- 'dashboard' => __( 'Return to the Dashboard', 'cryout' ),
- 'plugin_activated' => __( 'Plugin activated successfully.', 'cryout' ),
- 'activated_successfully' => __( 'The following plugin was activated successfully:', 'cryout' ),
+ 'return' => __( 'Return to Required Plugins Installer', 'mantra' ),
+ 'dashboard' => __( 'Return to the Dashboard', 'mantra' ),
+ 'plugin_activated' => __( 'Plugin activated successfully.', 'mantra' ),
+ 'activated_successfully' => __( 'The following plugin was activated successfully:', 'mantra' ),
/* translators: 1: plugin name. */
- 'plugin_already_active' => __( 'No action taken. Plugin %1$s was already active.', 'cryout' ),
+ 'plugin_already_active' => __( 'No action taken. Plugin %1$s was already active.', 'mantra' ),
/* translators: 1: plugin name. */
- 'plugin_needs_higher_version' => __( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'cryout' ),
+ 'plugin_needs_higher_version' => __( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'mantra' ),
/* translators: 1: dashboard link. */
- 'complete' => __( 'All plugins installed and activated successfully. %1$s', 'cryout' ),
- 'dismiss' => __( 'Dismiss this notice', 'cryout' ),
- 'notice_cannot_install_activate' => __( 'There are one or more required or recommended plugins to install, update or activate.', 'cryout' ),
- 'contact_admin' => __( 'Please contact the administrator of this site for help.', 'cryout' ),
+ 'complete' => __( 'All plugins installed and activated successfully. %1$s', 'mantra' ),
+ 'dismiss' => __( 'Dismiss this notice', 'mantra' ),
+ 'notice_cannot_install_activate' => __( 'There are one or more required or recommended plugins to install, update or activate.', 'mantra' ),
+ 'contact_admin' => __( 'Please contact the administrator of this site for help.', 'mantra' ),
);
do_action( 'tgmpa_register' );
@@ -574,8 +574,8 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
$actions['update'] = sprintf(
'<a href="%1$s" title="%2$s" class="edit">%3$s</a>',
esc_url( $this->get_tgmpa_status_url( 'update' ) ),
- esc_attr__( 'This plugin needs to be updated to be compatible with your theme.', 'cryout' ),
- esc_html__( 'Update Required', 'cryout' )
+ esc_attr__( 'This plugin needs to be updated to be compatible with your theme.', 'mantra' ),
+ esc_html__( 'Update Required', 'mantra' )
);
return $actions;
@@ -879,7 +879,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
// Display message based on if all plugins are now active or not.
if ( $this->is_tgmpa_complete() ) {
- echo '<p>', sprintf( esc_html( $this->strings['complete'] ), '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'cryout' ) . '</a>' ), '</p>';
+ echo '<p>', sprintf( esc_html( $this->strings['complete'] ), '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'mantra' ) . '</a>' ), '</p>';
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
} else {
echo '<p><a href="', esc_url( $this->get_tgmpa_url() ), '" target="_parent">', esc_html( $this->strings['return'] ), '</a></p>';
@@ -986,10 +986,10 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
if ( true === $GLOBALS['wp_filesystem']->move( $from_path, $to_path ) ) {
return trailingslashit( $to_path );
} else {
- return new WP_Error( 'rename_failed', esc_html__( 'The remote plugin package does not contain a folder with the desired slug and renaming did not work.', 'cryout' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'cryout' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
+ return new WP_Error( 'rename_failed', esc_html__( 'The remote plugin package does not contain a folder with the desired slug and renaming did not work.', 'mantra' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'mantra' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
}
} elseif ( empty( $subdir_name ) ) {
- return new WP_Error( 'packaged_wrong', esc_html__( 'The remote plugin package consists of more than one file, but the files are not packaged in a folder.', 'cryout' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'cryout' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
+ return new WP_Error( 'packaged_wrong', esc_html__( 'The remote plugin package consists of more than one file, but the files are not packaged in a folder.', 'mantra' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'mantra' ), array( 'found' => $subdir_name, 'expected' => $desired_slug ) );
}
}
@@ -1173,12 +1173,12 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
$count = count( $plugin_group );
$linked_plugins = array_map( array( 'TGMPA_Utils', 'wrap_in_em' ), $linked_plugins );
$last_plugin = array_pop( $linked_plugins ); // Pop off last name to prep for readability.
- $imploded = empty( $linked_plugins ) ? $last_plugin : ( implode( ', ', $linked_plugins ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'cryout' ) . ' ' . $last_plugin );
+ $imploded = empty( $linked_plugins ) ? $last_plugin : ( implode( ', ', $linked_plugins ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'mantra' ) . ' ' . $last_plugin );
$rendered .= sprintf(
$line_template,
sprintf(
- translate_nooped_plural( $this->strings[ $type ], $count, 'cryout' ),
+ translate_nooped_plural( $this->strings[ $type ], $count, 'mantra' ),
$imploded,
$count
)
@@ -1226,14 +1226,14 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
if ( $install_count > 0 ) {
$action_links['install'] = sprintf(
$link_template,
- translate_nooped_plural( $this->strings['install_link'], $install_count, 'cryout' ),
+ translate_nooped_plural( $this->strings['install_link'], $install_count, 'mantra' ),
esc_url( $this->get_tgmpa_status_url( 'install' ) )
);
}
if ( $update_count > 0 ) {
$action_links['update'] = sprintf(
$link_template,
- translate_nooped_plural( $this->strings['update_link'], $update_count, 'cryout' ),
+ translate_nooped_plural( $this->strings['update_link'], $update_count, 'mantra' ),
esc_url( $this->get_tgmpa_status_url( 'update' ) )
);
}
@@ -1242,7 +1242,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
if ( current_user_can( 'activate_plugins' ) && $activate_count > 0 ) {
$action_links['activate'] = sprintf(
$link_template,
- translate_nooped_plural( $this->strings['activate_link'], $activate_count, 'cryout' ),
+ translate_nooped_plural( $this->strings['activate_link'], $activate_count, 'mantra' ),
esc_url( $this->get_tgmpa_status_url( 'activate' ) )
);
}
@@ -2034,7 +2034,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
esc_html(
sprintf(
/* translators: %s: version number */
- __( 'TGMPA v%s', 'cryout' ),
+ __( 'TGMPA v%s', 'mantra' ),
self::TGMPA_VERSION
)
),
@@ -2325,10 +2325,10 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
*/
protected function get_plugin_advise_type_text( $required ) {
if ( true === $required ) {
- return __( 'Required', 'cryout' );
+ return __( 'Required', 'mantra' );
}
- return __( 'Recommended', 'cryout' );
+ return __( 'Recommended', 'mantra' );
}
/**
@@ -2344,13 +2344,13 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
switch ( $type ) {
case 'repo':
- $string = __( 'WordPress Repository', 'cryout' );
+ $string = __( 'WordPress Repository', 'mantra' );
break;
case 'external':
- $string = __( 'External Source', 'cryout' );
+ $string = __( 'External Source', 'mantra' );
break;
case 'bundled':
- $string = __( 'Pre-Packaged', 'cryout' );
+ $string = __( 'Pre-Packaged', 'mantra' );
break;
}
@@ -2367,25 +2367,25 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
*/
protected function get_plugin_status_text( $slug ) {
if ( ! $this->tgmpa->is_plugin_installed( $slug ) ) {
- return __( 'Not Installed', 'cryout' );
+ return __( 'Not Installed', 'mantra' );
}
if ( ! $this->tgmpa->is_plugin_active( $slug ) ) {
- $install_status = __( 'Installed But Not Activated', 'cryout' );
+ $install_status = __( 'Installed But Not Activated', 'mantra' );
} else {
- $install_status = __( 'Active', 'cryout' );
+ $install_status = __( 'Active', 'mantra' );
}
$update_status = '';
if ( $this->tgmpa->does_plugin_require_update( $slug ) && false === $this->tgmpa->does_plugin_have_update( $slug ) ) {
- $update_status = __( 'Required Update not Available', 'cryout' );
+ $update_status = __( 'Required Update not Available', 'mantra' );
} elseif ( $this->tgmpa->does_plugin_require_update( $slug ) ) {
- $update_status = __( 'Requires Update', 'cryout' );
+ $update_status = __( 'Requires Update', 'mantra' );
} elseif ( false !== $this->tgmpa->does_plugin_have_update( $slug ) ) {
- $update_status = __( 'Update recommended', 'cryout' );
+ $update_status = __( 'Update recommended', 'mantra' );
}
if ( '' === $update_status ) {
@@ -2394,7 +2394,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
return sprintf(
/* translators: 1: install status, 2: update status */
- _x( '%1$s, %2$s', 'Install/Update Status', 'cryout' ),
+ _x( '%1$s, %2$s', 'Install/Update Status', 'mantra' ),
$install_status,
$update_status
);
@@ -2440,19 +2440,19 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
switch ( $type ) {
case 'all':
/* translators: 1: number of plugins. */
- $text = _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $count, 'plugins', 'cryout' );
+ $text = _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $count, 'plugins', 'mantra' );
break;
case 'install':
/* translators: 1: number of plugins. */
- $text = _n( 'To Install <span class="count">(%s)</span>', 'To Install <span class="count">(%s)</span>', $count, 'cryout' );
+ $text = _n( 'To Install <span class="count">(%s)</span>', 'To Install <span class="count">(%s)</span>', $count, 'mantra' );
break;
case 'update':
/* translators: 1: number of plugins. */
- $text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count, 'cryout' );
+ $text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count, 'mantra' );
break;
case 'activate':
/* translators: 1: number of plugins. */
- $text = _n( 'To Activate <span class="count">(%s)</span>', 'To Activate <span class="count">(%s)</span>', $count, 'cryout' );
+ $text = _n( 'To Activate <span class="count">(%s)</span>', 'To Activate <span class="count">(%s)</span>', $count, 'mantra' );
break;
default:
$text = '';
@@ -2534,7 +2534,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
$output = array();
if ( $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
- $installed = ! empty( $item['installed_version'] ) ? $item['installed_version'] : _x( 'unknown', 'as in: "version nr unknown"', 'cryout' );
+ $installed = ! empty( $item['installed_version'] ) ? $item['installed_version'] : _x( 'unknown', 'as in: "version nr unknown"', 'mantra' );
$color = '';
if ( ! empty( $item['minimum_version'] ) && $this->tgmpa->does_plugin_require_update( $item['slug'] ) ) {
@@ -2542,7 +2542,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
}
$output[] = sprintf(
- '<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Installed version:', 'cryout' ) . '</p>',
+ '<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Installed version:', 'mantra' ) . '</p>',
$color,
$installed
);
@@ -2550,7 +2550,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
if ( ! empty( $item['minimum_version'] ) ) {
$output[] = sprintf(
- '<p><span style="min-width: 32px; text-align: right; float: right;">%1$s</span>' . __( 'Minimum required version:', 'cryout' ) . '</p>',
+ '<p><span style="min-width: 32px; text-align: right; float: right;">%1$s</span>' . __( 'Minimum required version:', 'mantra' ) . '</p>',
$item['minimum_version']
);
}
@@ -2562,7 +2562,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
}
$output[] = sprintf(
- '<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Available version:', 'cryout' ) . '</p>',
+ '<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Available version:', 'mantra' ) . '</p>',
$color,
$item['available_version']
);
@@ -2585,7 +2585,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
* @since 2.2.0
*/
public function no_items() {
- echo esc_html__( 'No plugins to install, update or activate.', 'cryout' ) . ' <a href="' . esc_url( self_admin_url() ) . '"> ' . esc_html__( 'Return to the Dashboard', 'cryout' ) . '</a>';
+ echo esc_html__( 'No plugins to install, update or activate.', 'mantra' ) . ' <a href="' . esc_url( self_admin_url() ) . '"> ' . esc_html__( 'Return to the Dashboard', 'mantra' ) . '</a>';
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
}
@@ -2599,14 +2599,14 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
public function get_columns() {
$columns = array(
'cb' => '<input type="checkbox" />',
- 'plugin' => __( 'Plugin', 'cryout' ),
- 'source' => __( 'Source', 'cryout' ),
- 'type' => __( 'Type', 'cryout' ),
+ 'plugin' => __( 'Plugin', 'mantra' ),
+ 'source' => __( 'Source', 'mantra' ),
+ 'type' => __( 'Type', 'mantra' ),
);
if ( 'all' === $this->view_context || 'update' === $this->view_context ) {
- $columns['version'] = __( 'Version', 'cryout' );
- $columns['status'] = __( 'Status', 'cryout' );
+ $columns['version'] = __( 'Version', 'mantra' );
+ $columns['status'] = __( 'Status', 'mantra' );
}
return apply_filters( 'tgmpa_table_columns', $columns );
@@ -2655,18 +2655,18 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
// Display the 'Install' action link if the plugin is not yet available.
if ( ! $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
/* translators: %2$s: plugin name in screen reader markup */
- $actions['install'] = __( 'Install %2$s', 'cryout' );
+ $actions['install'] = __( 'Install %2$s', 'mantra' );
} else {
// Display the 'Update' action link if an update is available and WP complies with plugin minimum.
if ( false !== $this->tgmpa->does_plugin_have_update( $item['slug'] ) && $this->tgmpa->can_plugin_update( $item['slug'] ) ) {
/* translators: %2$s: plugin name in screen reader markup */
- $actions['update'] = __( 'Update %2$s', 'cryout' );
+ $actions['update'] = __( 'Update %2$s', 'mantra' );
}
// Display the 'Activate' action link, but only if the plugin meets the minimum version.
if ( $this->tgmpa->can_plugin_activate( $item['slug'] ) ) {
/* translators: %2$s: plugin name in screen reader markup */
- $actions['activate'] = __( 'Activate %2$s', 'cryout' );
+ $actions['activate'] = __( 'Activate %2$s', 'mantra' );
}
}
@@ -2736,7 +2736,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
<tr class="plugin-update-tr">
<td colspan="', absint( $this->get_column_count() ), '" class="plugin-update colspanchange">
<div class="update-message">',
- esc_html__( 'Upgrade message from the plugin author:', 'cryout' ),
+ esc_html__( 'Upgrade message from the plugin author:', 'mantra' ),
' <strong>', wp_kses_data( $item['upgrade_notice'] ), '</strong>
</div>
</td>
@@ -2769,16 +2769,16 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
if ( 'update' !== $this->view_context && 'activate' !== $this->view_context ) {
if ( current_user_can( 'install_plugins' ) ) {
- $actions['tgmpa-bulk-install'] = __( 'Install', 'cryout' );
+ $actions['tgmpa-bulk-install'] = __( 'Install', 'mantra' );
}
}
if ( 'install' !== $this->view_context ) {
if ( current_user_can( 'update_plugins' ) ) {
- $actions['tgmpa-bulk-update'] = __( 'Update', 'cryout' );
+ $actions['tgmpa-bulk-update'] = __( 'Update', 'mantra' );
}
if ( current_user_can( 'activate_plugins' ) ) {
- $actions['tgmpa-bulk-activate'] = __( 'Activate', 'cryout' );
+ $actions['tgmpa-bulk-activate'] = __( 'Activate', 'mantra' );
}
}
@@ -2809,9 +2809,9 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
// Did user actually select any plugins to install/update ?
if ( empty( $_POST['plugin'] ) ) {
if ( 'install' === $install_type ) {
- $message = __( 'No plugins were selected to be installed. No action taken.', 'cryout' );
+ $message = __( 'No plugins were selected to be installed. No action taken.', 'mantra' );
} else {
- $message = __( 'No plugins were selected to be updated. No action taken.', 'cryout' );
+ $message = __( 'No plugins were selected to be updated. No action taken.', 'mantra' );
}
echo '<div id="message" class="error"><p>', esc_html( $message ), '</p></div>';
@@ -2852,9 +2852,9 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
// No need to proceed further if we have no plugins to handle.
if ( empty( $plugins_to_install ) ) {
if ( 'install' === $install_type ) {
- $message = __( 'No plugins are available to be installed at this time.', 'cryout' );
+ $message = __( 'No plugins are available to be installed at this time.', 'mantra' );
} else {
- $message = __( 'No plugins are available to be updated at this time.', 'cryout' );
+ $message = __( 'No plugins are available to be updated at this time.', 'mantra' );
}
echo '<div id="message" class="error"><p>', esc_html( $message ), '</p></div>';
@@ -2960,7 +2960,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
// Did user actually select any plugins to activate ?
if ( empty( $_POST['plugin'] ) ) {
- echo '<div id="message" class="error"><p>', esc_html__( 'No plugins were selected to be activated. No action taken.', 'cryout' ), '</p></div>';
+ echo '<div id="message" class="error"><p>', esc_html__( 'No plugins were selected to be activated. No action taken.', 'mantra' ), '</p></div>';
return false;
}
@@ -2986,7 +2986,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
// Return early if there are no plugins to activate.
if ( empty( $plugins_to_activate ) ) {
- echo '<div id="message" class="error"><p>', esc_html__( 'No plugins are available to be activated at this time.', 'cryout' ), '</p></div>';
+ echo '<div id="message" class="error"><p>', esc_html__( 'No plugins are available to be activated at this time.', 'mantra' ), '</p></div>';
return false;
}
@@ -3000,11 +3000,11 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
$count = count( $plugin_names ); // Count so we can use _n function.
$plugin_names = array_map( array( 'TGMPA_Utils', 'wrap_in_strong' ), $plugin_names );
$last_plugin = array_pop( $plugin_names ); // Pop off last name to prep for readability.
- $imploded = empty( $plugin_names ) ? $last_plugin : ( implode( ', ', $plugin_names ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'cryout' ) . ' ' . $last_plugin );
+ $imploded = empty( $plugin_names ) ? $last_plugin : ( implode( ', ', $plugin_names ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'mantra' ) . ' ' . $last_plugin );
printf( // WPCS: xss ok.
'<div id="message" class="updated"><p>%1$s %2$s.</p></div>',
- esc_html( _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count, 'cryout' ) ),
+ esc_html( _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count, 'mantra' ) ),
$imploded
);
@@ -3210,8 +3210,8 @@ if ( ! function_exists( 'tgmpa_load_bulk_installer' ) ) {
* @since 2.2.0
*/
public function activate_strings() {
- $this->strings['activation_failed'] = __( 'Plugin activation failed.', 'cryout' );
- $this->strings['activation_success'] = __( 'Plugin activated successfully.', 'cryout' );
+ $this->strings['activation_failed'] = __( 'Plugin activation failed.', 'mantra' );
+ $this->strings['activation_success'] = __( 'Plugin activated successfully.', 'mantra' );
}
/**
@@ -3550,29 +3550,29 @@ if ( ! function_exists( 'tgmpa_load_bulk_installer' ) ) {
if ( 'update' === $this->options['install_type'] ) {
parent::add_strings();
/* translators: 1: plugin name, 2: action number 3: total number of actions. */
- $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)', 'cryout' );
+ $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)', 'mantra' );
} else {
/* translators: 1: plugin name, 2: error message. */
- $this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: <strong>%2$s</strong>.', 'cryout' );
+ $this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: <strong>%2$s</strong>.', 'mantra' );
/* translators: 1: plugin name. */
- $this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.', 'cryout' );
+ $this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.', 'mantra' );
if ( $this->tgmpa->is_automatic ) {
// Automatic activation strings.
- $this->upgrader->strings['skin_upgrade_start'] = __( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.', 'cryout' );
+ $this->upgrader->strings['skin_upgrade_start'] = __( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.', 'mantra' );
/* translators: 1: plugin name. */
- $this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'cryout' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'cryout' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'cryout' ) . '</span>.</a>';
- $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'cryout' );
+ $this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'mantra' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'mantra' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'mantra' ) . '</span>.</a>';
+ $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'mantra' );
/* translators: 1: plugin name, 2: action number 3: total number of actions. */
- $this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'cryout' );
+ $this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'mantra' );
} else {
// Default installation strings.
- $this->upgrader->strings['skin_upgrade_start'] = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'cryout' );
+ $this->upgrader->strings['skin_upgrade_start'] = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'mantra' );
/* translators: 1: plugin name. */
- $this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'cryout' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'cryout' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'cryout' ) . '</span>.</a>';
- $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'cryout' );
+ $this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'mantra' ) . ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'mantra' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'mantra' ) . '</span>.</a>';
+ $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'mantra' );
/* translators: 1: plugin name, 2: action number 3: total number of actions. */
- $this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)', 'cryout' );
+ $this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)', 'mantra' );
}
}
}
@@ -3632,7 +3632,7 @@ if ( ! function_exists( 'tgmpa_load_bulk_installer' ) ) {
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
$update_actions['dashboard'] = sprintf(
esc_html( $this->tgmpa->strings['complete'] ),
- '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'cryout' ) . '</a>'
+ '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'mantra' ) . '</a>'
);
} else {
$update_actions['tgmpa_page'] = '<a href="' . esc_url( $this->tgmpa->get_tgmpa_url() ) . '" target="_parent">' . esc_html( $this->tgmpa->strings['return'] ) . '</a>';