Change localization textdomain per recommendations

This commit is contained in:
Jay Wood
2016-06-30 15:44:44 -04:00
parent f9e40a34a4
commit 37328d3035
5 changed files with 85 additions and 57 deletions

View File

@ -79,7 +79,7 @@ class CWV3Admin {
if ( is_array( $post_type ) ) {
foreach ( $post_type as $screen ) {
add_meta_box( 'cwv3_meta_section',
__( 'CWV3 Security', 'cwv3' ),
__( 'CWV3 Security', 'content-warning-v2' ),
array( $this, 'render_metabox' ),
$screen,
'side',
@ -137,9 +137,9 @@ class CWV3Admin {
$disabled = isset( $site_wide[0] ) && 'enabled' == $site_wide[0] ? true : false;
?>
<label for="cwv3_auth"><input type="checkbox" id="cwv3_auth" name="cwv3_auth" <?php checked( 'yes', $meta_value, true ); ?> value="yes" <?php disabled( $disabled ); ?>/><?php _e( 'Use authorization for this content', 'cwv3' ); ?></label>
<label for="cwv3_auth"><input type="checkbox" id="cwv3_auth" name="cwv3_auth" <?php checked( 'yes', $meta_value, true ); ?> value="yes" <?php disabled( $disabled ); ?>/><?php _e( 'Use authorization for this content', 'content-warning-v2' ); ?></label>
<?php if ( $disabled ) : ?>
<p class="description"><?php _e( 'Cannot be changed while site wide option is enabled.', 'cwv3' ); ?></p>
<p class="description"><?php _e( 'Cannot be changed while site wide option is enabled.', 'content-warning-v2' ); ?></p>
<?php endif;
}
}