Skip to content

Commit

Permalink
Updated text domains
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Jan 23, 2014
1 parent b877cf5 commit 41c6b22
Show file tree
Hide file tree
Showing 27 changed files with 1,099 additions and 207 deletions.
2 changes: 1 addition & 1 deletion includes/admin/class-wp-job-manager-addons.php
Expand Up @@ -47,7 +47,7 @@ public function output() {
?>
<div class="wrap wp_job_manager wp_job_manager_addons_wrap">
<div class="icon32 icon32-posts-job_listing" id="icon-edit"><br /></div>
<h2><?php _e( 'WP Job Manager Add-ons', 'job_manager' ); ?></h2>
<h2><?php _e( 'WP Job Manager Add-ons', 'wp-job-manager' ); ?></h2>
<?php echo $addons; ?>
</div>
<?php
Expand Down
4 changes: 2 additions & 2 deletions includes/admin/class-wp-job-manager-admin.php
Expand Up @@ -49,10 +49,10 @@ public function admin_enqueue_scripts() {
* @return void
*/
public function admin_menu() {
add_submenu_page( 'edit.php?post_type=job_listing', __( 'Settings', 'job_manager' ), __( 'Settings', 'job_manager' ), 'manage_options', 'job-manager-settings', array( $this->settings_page, 'output' ) );
add_submenu_page( 'edit.php?post_type=job_listing', __( 'Settings', 'wp-job-manager' ), __( 'Settings', 'wp-job-manager' ), 'manage_options', 'job-manager-settings', array( $this->settings_page, 'output' ) );

if ( apply_filters( 'job_manager_show_addons_page', true ) )
add_submenu_page( 'edit.php?post_type=job_listing', __( 'WP Job Manager Add-ons', 'job_manager' ), __( 'Add-ons', 'job_manager' ) , 'manage_options', 'job-manager-addons', array( $this, 'addons_page' ) );
add_submenu_page( 'edit.php?post_type=job_listing', __( 'WP Job Manager Add-ons', 'wp-job-manager' ), __( 'Add-ons', 'wp-job-manager' ) , 'manage_options', 'job-manager-addons', array( $this, 'addons_page' ) );
}

/**
Expand Down
24 changes: 12 additions & 12 deletions includes/admin/class-wp-job-manager-cpt.php
Expand Up @@ -40,8 +40,8 @@ public function add_bulk_actions() {
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('<option>').val('approve_jobs').text('<?php _e( 'Approve Jobs', 'job_manager' )?>').appendTo("select[name='action']");
jQuery('<option>').val('approve_jobs').text('<?php _e( 'Approve Jobs', 'job_manager' )?>').appendTo("select[name='action2']");
jQuery('<option>').val('approve_jobs').text('<?php _e( 'Approve Jobs', 'wp-job-manager' )?>').appendTo("select[name='action']");
jQuery('<option>').val('approve_jobs').text('<?php _e( 'Approve Jobs', 'wp-job-manager' )?>').appendTo("select[name='action2']");
});
</script>
<?php
Expand Down Expand Up @@ -109,9 +109,9 @@ public function approved_notice() {
$titles = array();
foreach ( $approved_jobs as $job_id )
$titles[] = get_the_title( $job_id );
echo '<div class="updated"><p>' . sprintf( __( '%s approved', 'job_manager' ), '&quot;' . implode( '&quot;, &quot;', $titles ) . '&quot;' ) . '</p></div>';
echo '<div class="updated"><p>' . sprintf( __( '%s approved', 'wp-job-manager' ), '&quot;' . implode( '&quot;, &quot;', $titles ) . '&quot;' ) . '</p></div>';
} else {
echo '<div class="updated"><p>' . sprintf( __( '%s approved', 'job_manager' ), '&quot;' . get_the_title( $approved_jobs ) . '&quot;' ) . '</p></div>';
echo '<div class="updated"><p>' . sprintf( __( '%s approved', 'wp-job-manager' ), '&quot;' . get_the_title( $approved_jobs ) . '&quot;' ) . '</p></div>';
}
}
}
Expand Down Expand Up @@ -264,7 +264,7 @@ public function custom_columns( $column ) {
break;
case "job_position" :
echo '<div class="job_position">';
echo '<a href="' . admin_url('post.php?post=' . $post->ID . '&action=edit') . '" class="tips job_title" data-tip="' . sprintf( __( 'Job ID: %d', 'job_manager' ), $post->ID ) . '">' . $post->post_title . '</a>';
echo '<a href="' . admin_url('post.php?post=' . $post->ID . '&action=edit') . '" class="tips job_title" data-tip="' . sprintf( __( 'Job ID: %d', 'wp-job-manager' ), $post->ID ) . '">' . $post->post_title . '</a>';

echo '<div class="location">';

Expand All @@ -290,12 +290,12 @@ public function custom_columns( $column ) {
if ( is_position_featured( $post ) ) echo '&#10004;'; else echo '&ndash;';
break;
case "job_posted" :
echo '<strong>' . date_i18n( __( 'M j, Y', 'job_manager' ), strtotime( $post->post_date ) ) . '</strong><span>';
echo ( empty( $post->post_author ) ? __( 'by a guest', 'job_manager' ) : sprintf( __( 'by %s', 'job_manager' ), '<a href="' . get_edit_user_link( $post->post_author ) . '">' . get_the_author() . '</a>' ) ) . '</span>';
echo '<strong>' . date_i18n( __( 'M j, Y', 'wp-job-manager' ), strtotime( $post->post_date ) ) . '</strong><span>';
echo ( empty( $post->post_author ) ? __( 'by a guest', 'wp-job-manager' ) : sprintf( __( 'by %s', 'wp-job-manager' ), '<a href="' . get_edit_user_link( $post->post_author ) . '">' . get_the_author() . '</a>' ) ) . '</span>';
break;
case "job_expires" :
if ( $post->_job_expires )
echo '<strong>' . date_i18n( __( 'M j, Y', 'job_manager' ), strtotime( $post->_job_expires ) ) . '</strong>';
echo '<strong>' . date_i18n( __( 'M j, Y', 'wp-job-manager' ), strtotime( $post->_job_expires ) ) . '</strong>';
else
echo '&ndash;';
break;
Expand All @@ -308,24 +308,24 @@ public function custom_columns( $column ) {
if ( $post->post_status == 'pending' ) {
$admin_actions['approve'] = array(
'action' => 'approve',
'name' => __( 'Approve', 'job_manager' ),
'name' => __( 'Approve', 'wp-job-manager' ),
'url' => wp_nonce_url( add_query_arg( 'approve_job', $post->ID ), 'approve_job' )
);
}
if ( $post->post_status !== 'trash' ) {
$admin_actions['view'] = array(
'action' => 'view',
'name' => __( 'View', 'job_manager' ),
'name' => __( 'View', 'wp-job-manager' ),
'url' => get_permalink( $post->ID )
);
$admin_actions['edit'] = array(
'action' => 'edit',
'name' => __( 'Edit', 'job_manager' ),
'name' => __( 'Edit', 'wp-job-manager' ),
'url' => get_edit_post_link( $post->ID )
);
$admin_actions['delete'] = array(
'action' => 'delete',
'name' => __( 'Delete', 'job_manager' ),
'name' => __( 'Delete', 'wp-job-manager' ),
'url' => get_delete_post_link( $post->ID )
);
}
Expand Down
50 changes: 25 additions & 25 deletions includes/admin/class-wp-job-manager-settings.php
Expand Up @@ -28,78 +28,78 @@ protected function init_settings() {
$this->settings = apply_filters( 'job_manager_settings',
array(
'job_listings' => array(
__( 'Job Listings', 'job_manager' ),
__( 'Job Listings', 'wp-job-manager' ),
array(
array(
'name' => 'job_manager_per_page',
'std' => '10',
'placeholder' => '',
'label' => __( 'Jobs per page', 'job_manager' ),
'desc' => __( 'How many jobs should be shown per page by default?', 'job_manager' ),
'label' => __( 'Jobs per page', 'wp-job-manager' ),
'desc' => __( 'How many jobs should be shown per page by default?', 'wp-job-manager' ),
'attributes' => array()
),
array(
'name' => 'job_manager_hide_filled_positions',
'std' => '0',
'label' => __( 'Filled positions', 'job_manager' ),
'cb_label' => __( 'Hide filled positions', 'job_manager' ),
'desc' => __( 'If enabled, filled positions will be hidden from the job list.', 'job_manager' ),
'label' => __( 'Filled positions', 'wp-job-manager' ),
'cb_label' => __( 'Hide filled positions', 'wp-job-manager' ),
'desc' => __( 'If enabled, filled positions will be hidden from the job list.', 'wp-job-manager' ),
'type' => 'checkbox',
'attributes' => array()
),
array(
'name' => 'job_manager_enable_categories',
'std' => '0',
'label' => __( 'Job categories', 'job_manager' ),
'cb_label' => __( 'Enable job categories', 'job_manager' ),
'desc' => __( 'Choose whether to enable job categories. Categories must be setup by an admin for users to choose during job submission.', 'job_manager' ),
'label' => __( 'Job categories', 'wp-job-manager' ),
'cb_label' => __( 'Enable job categories', 'wp-job-manager' ),
'desc' => __( 'Choose whether to enable job categories. Categories must be setup by an admin for users to choose during job submission.', 'wp-job-manager' ),
'type' => 'checkbox',
'attributes' => array()
),
),
),
'job_submission' => array(
__( 'Job Submission', 'job_manager' ),
__( 'Job Submission', 'wp-job-manager' ),
array(
array(
'name' => 'job_manager_enable_registration',
'std' => '1',
'label' => __( 'Account creation', 'job_manager' ),
'cb_label' => __( 'Allow account creation', 'job_manager' ),
'desc' => __( 'If enabled, non-logged in users will be able to create an account by entering their email address on the job submission form.', 'job_manager' ),
'label' => __( 'Account creation', 'wp-job-manager' ),
'cb_label' => __( 'Allow account creation', 'wp-job-manager' ),
'desc' => __( 'If enabled, non-logged in users will be able to create an account by entering their email address on the job submission form.', 'wp-job-manager' ),
'type' => 'checkbox',
'attributes' => array()
),
array(
'name' => 'job_manager_user_requires_account',
'std' => '1',
'label' => __( 'Account required', 'job_manager' ),
'cb_label' => __( 'Job submission requires an account', 'job_manager' ),
'desc' => __( 'If disabled, non-logged in users will be able to submit job listings without creating an account.', 'job_manager' ),
'label' => __( 'Account required', 'wp-job-manager' ),
'cb_label' => __( 'Job submission requires an account', 'wp-job-manager' ),
'desc' => __( 'If disabled, non-logged in users will be able to submit job listings without creating an account.', 'wp-job-manager' ),
'type' => 'checkbox',
'attributes' => array()
),
array(
'name' => 'job_manager_submission_requires_approval',
'std' => '1',
'label' => __( 'Approval Required', 'job_manager' ),
'cb_label' => __( 'New submissions require admin approval', 'job_manager' ),
'desc' => __( 'If enabled, new submissions will be inactive, pending admin approval.', 'job_manager' ),
'label' => __( 'Approval Required', 'wp-job-manager' ),
'cb_label' => __( 'New submissions require admin approval', 'wp-job-manager' ),
'desc' => __( 'If enabled, new submissions will be inactive, pending admin approval.', 'wp-job-manager' ),
'type' => 'checkbox',
'attributes' => array()
),
array(
'name' => 'job_manager_submission_duration',
'std' => '30',
'label' => __( 'Listing duration', 'job_manager' ),
'desc' => __( 'How many <strong>days</strong> listings are live before expiring. Can be left blank to never expire.', 'job_manager' ),
'label' => __( 'Listing duration', 'wp-job-manager' ),
'desc' => __( 'How many <strong>days</strong> listings are live before expiring. Can be left blank to never expire.', 'wp-job-manager' ),
'attributes' => array()
),
array(
'name' => 'job_manager_submit_page_slug',
'std' => '',
'label' => __( 'Submit Page Slug', 'job_manager' ),
'desc' => __( 'Enter the slug of the page where you have placed the [submit_job_form] shortcode. This lets the plugin know where the form is located.', 'job_manager' ),
'label' => __( 'Submit Page Slug', 'wp-job-manager' ),
'desc' => __( 'Enter the slug of the page where you have placed the [submit_job_form] shortcode. This lets the plugin know where the form is located.', 'wp-job-manager' ),
'type' => 'input'
)
)
Expand Down Expand Up @@ -151,7 +151,7 @@ public function output() {
<?php
if ( ! empty( $_GET['settings-updated'] ) ) {
flush_rewrite_rules();
echo '<div class="updated fade"><p>' . __( 'Settings successfully saved', 'job_manager' ) . '</p></div>';
echo '<div class="updated fade"><p>' . __( 'Settings successfully saved', 'wp-job-manager' ) . '</p></div>';
}

foreach ( $this->settings as $key => $section ) {
Expand Down Expand Up @@ -230,7 +230,7 @@ public function output() {
}
?>
<p class="submit">
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'job_manager' ); ?>" />
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'wp-job-manager' ); ?>" />
</p>
</form>
</div>
Expand Down
38 changes: 19 additions & 19 deletions includes/admin/class-wp-job-manager-writepanels.php
Expand Up @@ -24,47 +24,47 @@ public function __construct() {
public function job_listing_fields() {
return apply_filters( 'job_manager_job_listing_data_fields', array(
'_job_location' => array(
'label' => __( 'Job location', 'job_manager' ),
'placeholder' => __( 'e.g. "London, UK", "New York", "Houston, TX"', 'job_manager' ),
'description' => __( 'Leave this blank if the job can be done from anywhere (i.e. telecommuting)', 'job_manager' )
'label' => __( 'Job location', 'wp-job-manager' ),
'placeholder' => __( 'e.g. "London, UK", "New York", "Houston, TX"', 'wp-job-manager' ),
'description' => __( 'Leave this blank if the job can be done from anywhere (i.e. telecommuting)', 'wp-job-manager' )
),
'_application' => array(
'label' => __( 'Application email/URL', 'job_manager' ),
'placeholder' => __( 'URL or email which applicants use to apply', 'job_manager' )
'label' => __( 'Application email/URL', 'wp-job-manager' ),
'placeholder' => __( 'URL or email which applicants use to apply', 'wp-job-manager' )
),
'_company_name' => array(
'label' => __( 'Company name', 'job_manager' ),
'label' => __( 'Company name', 'wp-job-manager' ),
'placeholder' => ''
),
'_company_website' => array(
'label' => __( 'Company website', 'job_manager' ),
'label' => __( 'Company website', 'wp-job-manager' ),
'placeholder' => ''
),
'_company_tagline' => array(
'label' => __( 'Company tagline', 'job_manager' ),
'placeholder' => __( 'Brief description about the company', 'job_manager' )
'label' => __( 'Company tagline', 'wp-job-manager' ),
'placeholder' => __( 'Brief description about the company', 'wp-job-manager' )
),
'_company_twitter' => array(
'label' => __( 'Company Twitter', 'job_manager' ),
'label' => __( 'Company Twitter', 'wp-job-manager' ),
'placeholder' => '@yourcompany'
),
'_company_logo' => array(
'label' => __( 'Company logo', 'job_manager' ),
'placeholder' => __( 'URL to the company logo', 'job_manager' ),
'label' => __( 'Company logo', 'wp-job-manager' ),
'placeholder' => __( 'URL to the company logo', 'wp-job-manager' ),
'type' => 'file'
),
'_filled' => array(
'label' => __( 'Position filled?', 'job_manager' ),
'label' => __( 'Position filled?', 'wp-job-manager' ),
'type' => 'checkbox'
),
'_featured' => array(
'label' => __( 'Feature this job listing?', 'job_manager' ),
'label' => __( 'Feature this job listing?', 'wp-job-manager' ),
'type' => 'checkbox',
'description' => __( 'Featured listings will be sticky during searches, and can be styled differently.', 'job_manager' )
'description' => __( 'Featured listings will be sticky during searches, and can be styled differently.', 'wp-job-manager' )
),
'_job_expires' => array(
'label' => __( 'Job Expires', 'job_manager' ),
'placeholder' => __( 'yyyy-mm-dd', 'job_manager' )
'label' => __( 'Job Expires', 'wp-job-manager' ),
'placeholder' => __( 'yyyy-mm-dd', 'wp-job-manager' )
)
) );
}
Expand All @@ -76,7 +76,7 @@ public function job_listing_fields() {
* @return void
*/
public function add_meta_boxes() {
add_meta_box( 'job_listing_data', __( 'Job Listing Data', 'job_manager' ), array( $this, 'job_listing_data' ), 'job_listing', 'normal', 'high' );
add_meta_box( 'job_listing_data', __( 'Job Listing Data', 'wp-job-manager' ), array( $this, 'job_listing_data' ), 'job_listing', 'normal', 'high' );
}

/**
Expand All @@ -94,7 +94,7 @@ public function input_file( $key, $field ) {
<p class="form-field">
<label for="<?php echo esc_attr( $key ); ?>"><?php echo esc_html( $field['label'] ) ; ?>:</label>
<input type="text" class="file_url" name="<?php echo esc_attr( $key ); ?>" id="<?php echo esc_attr( $key ); ?>" placeholder="<?php echo esc_attr( $field['placeholder'] ); ?>" value="<?php echo esc_attr( $field['value'] ); ?>" />
<?php if ( ! empty( $field['description'] ) ) : ?><span class="description"><?php echo $field['description']; ?></span><?php endif; ?> <button class="button upload_image_button" data-uploader_button_text="<?php _e( 'Use image', 'job_manager' ); ?>"><?php _e( 'Upload image', 'job_manager' ); ?></button>
<?php if ( ! empty( $field['description'] ) ) : ?><span class="description"><?php echo $field['description']; ?></span><?php endif; ?> <button class="button upload_image_button" data-uploader_button_text="<?php _e( 'Use image', 'wp-job-manager' ); ?>"><?php _e( 'Upload image', 'wp-job-manager' ); ?></button>
</p>
<script type="text/javascript">
// Uploading files
Expand Down
8 changes: 4 additions & 4 deletions includes/class-wp-job-manager-ajax.php
Expand Up @@ -60,7 +60,7 @@ public function get_listings() {

<?php else : ?>

<li class="no_job_listings_found"><?php _e( 'No more jobs found matching your selection.', 'job_manager' ); ?></li>
<li class="no_job_listings_found"><?php _e( 'No more jobs found matching your selection.', 'wp-job-manager' ); ?></li>

<?php endif;

Expand Down Expand Up @@ -102,12 +102,12 @@ public function get_listings() {
}

if ( $search_keywords ) {
$showing_jobs = sprintf( __( 'Showing %s&ldquo;%s&rdquo; %sjobs', 'job_manager' ), $showing_types, $search_keywords, implode( ', ', $showing_categories ) );
$showing_jobs = sprintf( __( 'Showing %s&ldquo;%s&rdquo; %sjobs', 'wp-job-manager' ), $showing_types, $search_keywords, implode( ', ', $showing_categories ) );
} else {
$showing_jobs = sprintf( __( 'Showing all %s%sjobs', 'job_manager' ), $showing_types, implode( ', ', $showing_categories ) . ' ' );
$showing_jobs = sprintf( __( 'Showing all %s%sjobs', 'wp-job-manager' ), $showing_types, implode( ', ', $showing_categories ) . ' ' );
}

$showing_location = $search_location ? sprintf( ' ' . __( 'located in &ldquo;%s&rdquo;', 'job_manager' ), $search_location ) : '';
$showing_location = $search_location ? sprintf( ' ' . __( 'located in &ldquo;%s&rdquo;', 'wp-job-manager' ), $search_location ) : '';

$result['showing'] = apply_filters( 'job_manager_get_listings_custom_filter_text', $showing_jobs . $showing_location );

Expand Down
4 changes: 2 additions & 2 deletions includes/class-wp-job-manager-geocode.php
Expand Up @@ -127,10 +127,10 @@ public static function get_location_data( $raw_address ) {

switch ( $xml->status ) {
case 'ZERO_RESULTS' :
throw new Exception( __( "No results found", 'job_manager' ) );
throw new Exception( __( "No results found", 'wp-job-manager' ) );
break;
case 'OVER_QUERY_LIMIT' :
throw new Exception( __( "Query limit reached", 'job_manager' ) );
throw new Exception( __( "Query limit reached", 'wp-job-manager' ) );
break;
default :
set_transient( $transient_name, $result, 24 * HOUR_IN_SECONDS * 365 );
Expand Down

0 comments on commit 41c6b22

Please sign in to comment.