public function createJobTaxonomy()
{
$labels = array(
- 'name' => _x('Categories',
+ 'name' => _x(STAFFORDS_EMP_CATEGORY_PLURAL,
'taxonomy general name'),
- 'singular_name' => _x('Category',
+ 'singular_name' => _x(STAFFORDS_EMP_CATEGORY_SINGLE,
'taxonomy singular name'),
- 'search_items' => __('Search Categories'),
- 'popular_items' => __('Popular Categories'),
- 'all_items' => __('All Categories'),
+ 'search_items' => __('Search' . STAFFORDS_EMP_CATEGORY_PLURAL),
+ 'popular_items' => __('Popular ' . STAFFORDS_EMP_CATEGORY_PLURAL),
+ 'all_items' => __('All ' . STAFFORDS_EMP_CATEGORY_PLURAL),
'parent_item' => null,
'parent_item_colon' => null,
- 'edit_item' => __('Edit Category'),
- 'update_item' => __('Update Category'),
- 'add_new_item' => __('Add New Category'),
- 'new_item_name' => __('New Category Name'),
- 'separate_items_with_commas' => __('Separate categories with commas'),
- 'add_or_remove_items' => __('Add or remove categories'),
- 'choose_from_most_used' => __('Choose from the most used categories'),
+ 'edit_item' => __('Edit ' . STAFFORDS_EMP_CATEGORY_SINGLE),
+ 'update_item' => __('Update ' . STAFFORDS_EMP_CATEGORY_SINGLE),
+ 'add_new_item' => __('Add New ' . STAFFORDS_EMP_CATEGORY_SINGLE),
+ 'new_item_name' => __('New ' . STAFFORDS_EMP_CATEGORY_SINGLE . ' Name'),
+ 'separate_items_with_commas' => __('Separate ' . strtolower( STAFFORDS_EMP_CATEGORY_PLURAL ) . ' with commas'),
+ 'add_or_remove_items' => __('Add or remove ' . strtolower( STAFFORDS_EMP_CATEGORY_PLURAL )),
+ 'choose_from_most_used' => __('Choose from the most used ' . strtolower( STAFFORDS_EMP_CATEGORY_PLURAL )),
);
register_taxonomy(
STAFFORDS_EMP_TAX_CATEGORIES, STAFFORDS_EMP_POST_TYPE,
array(
- 'label' => __('Job Category'),
+ 'label' => __('Job ' . STAFFORDS_EMP_CATEGORY_SINGLE),
'labels' => $labels,
'hierarchical' => true,
'show_ui' => true,
));
$labels = array(
- 'name' => _x('Properties',
+ 'name' => _x(STAFFORDS_EMP_DEPARTMENT_PLURAL,
'taxonomy general name'),
- 'singular_name' => _x('Property',
+ 'singular_name' => _x(STAFFORDS_EMP_DEPARTMENT_SINGLE,
'taxonomy singular name'),
- 'search_items' => __('Search Properties'),
- 'popular_items' => __('Popular Properties'),
- 'all_items' => __('All Properties'),
+ 'search_items' => __('Search ' . STAFFORDS_EMP_DEPARTMENT_PLURAL),
+ 'popular_items' => __('Popular ' . STAFFORDS_EMP_DEPARTMENT_PLURAL),
+ 'all_items' => __('All ' . STAFFORDS_EMP_DEPARTMENT_PLURAL),
'parent_item' => null,
'parent_item_colon' => null,
- 'edit_item' => __('Edit Property'),
- 'update_item' => __('Update Property'),
- 'add_new_item' => __('Add New Property'),
- 'new_item_name' => __('New Property Name'),
- 'separate_items_with_commas' => __('Separate departments with commas'),
- 'add_or_remove_items' => __('Add or remove departments'),
- 'choose_from_most_used' => __('Choose from the most used departments'),
+ 'edit_item' => __('Edit ' . STAFFORDS_EMP_DEPARTMENT_SINGLE),
+ 'update_item' => __('Update ' . STAFFORDS_EMP_DEPARTMENT_SINGLE),
+ 'add_new_item' => __('Add New ' . STAFFORDS_EMP_DEPARTMENT_SINGLE),
+ 'new_item_name' => __('New ' . STAFFORDS_EMP_DEPARTMENT_SINGLE . ' Name'),
+ 'separate_items_with_commas' => __('Separate ' . strtolower( STAFFORDS_EMP_DEPARTMENT_PLURAL ) . ' with commas'),
+ 'add_or_remove_items' => __('Add or remove ' . strtolower( STAFFORDS_EMP_DEPARTMENT_PLURAL )),
+ 'choose_from_most_used' => __('Choose from the most used ' . strtolower( STAFFORDS_EMP_DEPARTMENT_PLURAL )),
);
register_taxonomy(
STAFFORDS_EMP_TAX_DEPARTMENTS, STAFFORDS_EMP_POST_TYPE,
array(
- 'label' => __('Job Property'),
+ 'label' => __('Job ' . STAFFORDS_EMP_DEPARTMENT_SINGLE),
'labels' => $labels,
'hierarchical' => true,
'show_ui' => true,
$columns = array(
"cb" => "<input type=\"checkbox\" />",
"title" => "Job Title",
- "glmjobs_col_cat" => "Category",
- "glmjobs_col_dep" => "Property",
+ "glmjobs_col_cat" => STAFFORDS_EMP_CATEGORY_SINGLE,
+ "glmjobs_col_dep" => STAFFORDS_EMP_DEPARTMENT_SINGLE,
"glmjobs_col_date" => "Dates",
);
return $columns;