From 41c6b228f51f6423e1820f6e0dcc39c92804e0a0 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 23 Jan 2014 17:08:42 +0000 Subject: [PATCH] Updated text domains --- .../admin/class-wp-job-manager-addons.php | 2 +- includes/admin/class-wp-job-manager-admin.php | 4 +- includes/admin/class-wp-job-manager-cpt.php | 24 +- .../admin/class-wp-job-manager-settings.php | 50 +- .../class-wp-job-manager-writepanels.php | 38 +- includes/class-wp-job-manager-ajax.php | 8 +- includes/class-wp-job-manager-geocode.php | 4 +- includes/class-wp-job-manager-post-types.php | 84 +- includes/class-wp-job-manager-shortcodes.php | 18 +- includes/class-wp-job-manager-widgets.php | 10 +- .../class-wp-job-manager-form-edit-job.php | 6 +- .../class-wp-job-manager-form-submit-job.php | 54 +- languages/wp-job-manager.pot | 889 ++++++++++++++++++ readme.txt | 5 +- templates/account-signin.php | 16 +- templates/content-job_listing.php | 2 +- templates/content-single-job_listing.php | 8 +- templates/content-summary-job_listing.php | 2 +- templates/form-fields/file-field.php | 4 +- templates/job-application.php | 8 +- templates/job-dashboard.php | 22 +- templates/job-filters.php | 12 +- templates/job-submit.php | 6 +- templates/job-submitted.php | 4 +- wp-job-manager-functions.php | 8 +- wp-job-manager-template.php | 10 +- wp-job-manager.php | 8 +- 27 files changed, 1099 insertions(+), 207 deletions(-) create mode 100644 languages/wp-job-manager.pot diff --git a/includes/admin/class-wp-job-manager-addons.php b/includes/admin/class-wp-job-manager-addons.php index 44a4bd915..afc20c8ff 100644 --- a/includes/admin/class-wp-job-manager-addons.php +++ b/includes/admin/class-wp-job-manager-addons.php @@ -47,7 +47,7 @@ public function output() { ?>

-

+

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' ) ); } /** diff --git a/includes/admin/class-wp-job-manager-cpt.php b/includes/admin/class-wp-job-manager-cpt.php index 796dfabb9..3287f1e29 100644 --- a/includes/admin/class-wp-job-manager-cpt.php +++ b/includes/admin/class-wp-job-manager-cpt.php @@ -40,8 +40,8 @@ public function add_bulk_actions() { ?>

' . sprintf( __( '%s approved', 'job_manager' ), '"' . implode( '", "', $titles ) . '"' ) . '

'; + echo '

' . sprintf( __( '%s approved', 'wp-job-manager' ), '"' . implode( '", "', $titles ) . '"' ) . '

'; } else { - echo '

' . sprintf( __( '%s approved', 'job_manager' ), '"' . get_the_title( $approved_jobs ) . '"' ) . '

'; + echo '

' . sprintf( __( '%s approved', 'wp-job-manager' ), '"' . get_the_title( $approved_jobs ) . '"' ) . '

'; } } } @@ -264,7 +264,7 @@ public function custom_columns( $column ) { break; case "job_position" : echo '
'; - echo '' . $post->post_title . ''; + echo '' . $post->post_title . ''; echo '
'; @@ -290,12 +290,12 @@ public function custom_columns( $column ) { if ( is_position_featured( $post ) ) echo '✔'; else echo '–'; break; case "job_posted" : - echo '' . date_i18n( __( 'M j, Y', 'job_manager' ), strtotime( $post->post_date ) ) . ''; - echo ( empty( $post->post_author ) ? __( 'by a guest', 'job_manager' ) : sprintf( __( 'by %s', 'job_manager' ), '' . get_the_author() . '' ) ) . ''; + echo '' . date_i18n( __( 'M j, Y', 'wp-job-manager' ), strtotime( $post->post_date ) ) . ''; + echo ( empty( $post->post_author ) ? __( 'by a guest', 'wp-job-manager' ) : sprintf( __( 'by %s', 'wp-job-manager' ), '' . get_the_author() . '' ) ) . ''; break; case "job_expires" : if ( $post->_job_expires ) - echo '' . date_i18n( __( 'M j, Y', 'job_manager' ), strtotime( $post->_job_expires ) ) . ''; + echo '' . date_i18n( __( 'M j, Y', 'wp-job-manager' ), strtotime( $post->_job_expires ) ) . ''; else echo '–'; break; @@ -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 ) ); } diff --git a/includes/admin/class-wp-job-manager-settings.php b/includes/admin/class-wp-job-manager-settings.php index 0730dda29..c66fb0330 100644 --- a/includes/admin/class-wp-job-manager-settings.php +++ b/includes/admin/class-wp-job-manager-settings.php @@ -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 days listings are live before expiring. Can be left blank to never expire.', 'job_manager' ), + 'label' => __( 'Listing duration', 'wp-job-manager' ), + 'desc' => __( 'How many days 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' ) ) @@ -151,7 +151,7 @@ public function output() {

' . __( 'Settings successfully saved', 'job_manager' ) . '

'; + echo '

' . __( 'Settings successfully saved', 'wp-job-manager' ) . '

'; } foreach ( $this->settings as $key => $section ) { @@ -230,7 +230,7 @@ public function output() { } ?>

- +

diff --git a/includes/admin/class-wp-job-manager-writepanels.php b/includes/admin/class-wp-job-manager-writepanels.php index 04180a364..3265ac70d 100644 --- a/includes/admin/class-wp-job-manager-writepanels.php +++ b/includes/admin/class-wp-job-manager-writepanels.php @@ -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' ) ) ) ); } @@ -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' ); } /** @@ -94,7 +94,7 @@ public function input_file( $key, $field ) {

- +