Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/06/2019 04:27:04 AM (5 years ago)
Author:
johnjamesjacoby
Message:

Locale: update post type labels to include recent additions to WordPress.

This commit adds several new label keys to the arrays for the Forum/Topic/Reply post types. It also removes some duplicated keys that have slipped in over time.

Props GDragoN. Fixes #3250.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/template.php

    r6868 r6902  
    4747    // Filter & return
    4848    return (array) apply_filters( 'bbp_get_reply_post_type_labels', array(
    49         'name'                  => esc_attr__( 'Replies',                   'bbpress' ),
    50         'menu_name'             => esc_attr__( 'Replies',                   'bbpress' ),
    51         'singular_name'         => esc_attr_x( 'Reply', 'noun',             'bbpress' ),
    52         'all_items'             => esc_attr__( 'All Replies',               'bbpress' ),
    53         'add_new'               => esc_attr__( 'Add New',                   'bbpress' ),
    54         'add_new_item'          => esc_attr__( 'Create New Reply',          'bbpress' ),
    55         'edit'                  => esc_attr__( 'Edit',                      'bbpress' ),
    56         'edit_item'             => esc_attr__( 'Edit Reply',                'bbpress' ),
    57         'new_item'              => esc_attr__( 'New Reply',                 'bbpress' ),
    58         'view'                  => esc_attr__( 'View Reply',                'bbpress' ),
    59         'view_item'             => esc_attr__( 'View Reply',                'bbpress' ),
    60         'view_items'            => esc_attr__( 'View Replies',              'bbpress' ),
    61         'search_items'          => esc_attr__( 'Search Replies',            'bbpress' ),
    62         'not_found'             => esc_attr__( 'No replies found',          'bbpress' ),
    63         'not_found_in_trash'    => esc_attr__( 'No replies found in Trash', 'bbpress' ),
    64         'filter_items_list'     => esc_attr__( 'Filter replies list',       'bbpress' ),
    65         'items_list'            => esc_attr__( 'Replies list',              'bbpress' ),
    66         'items_list_navigation' => esc_attr__( 'Replies list navigation',   'bbpress' ),
    67         'parent_item_colon'     => esc_attr__( 'Parent Topic:',             'bbpress' ),
    68         'all_items'             => esc_attr__( 'All Replies',               'bbpress' ),
    69         'archives'              => esc_attr__( 'Forum Replies',             'bbpress' ),
    70         'attributes'            => esc_attr__( 'Reply Attributes',          'bbpress' ),
    71         'insert_into_item'      => esc_attr__( 'Insert into reply',         'bbpress' ),
    72         'uploaded_to_this_item' => esc_attr__( 'Uploaded to this reply',    'bbpress' ),
    73         'featured_image'        => esc_attr__( 'Reply Image',               'bbpress' ),
    74         'set_featured_image'    => esc_attr__( 'Set reply image',           'bbpress' ),
    75         'remove_featured_image' => esc_attr__( 'Remove reply image',        'bbpress' ),
    76         'use_featured_image'    => esc_attr__( 'Use as reply image',        'bbpress' ),
    77         'filter_items_list'     => esc_attr__( 'Filter reply list',         'bbpress' ),
    78         'items_list_navigation' => esc_attr__( 'Reply list navigation',     'bbpress' ),
    79         'items_list'            => esc_attr__( 'Reply list',                'bbpress' )
     49        'name'                     => esc_attr__( 'Replies',                    'bbpress' ),
     50        'menu_name'                => esc_attr__( 'Replies',                    'bbpress' ),
     51        'singular_name'            => esc_attr_x( 'Reply', 'noun',              'bbpress' ),
     52        'all_items'                => esc_attr__( 'All Replies',                'bbpress' ),
     53        'add_new'                  => esc_attr__( 'Add New',                    'bbpress' ),
     54        'add_new_item'             => esc_attr__( 'Create New Reply',           'bbpress' ),
     55        'edit'                     => esc_attr__( 'Edit',                       'bbpress' ),
     56        'edit_item'                => esc_attr__( 'Edit Reply',                 'bbpress' ),
     57        'new_item'                 => esc_attr__( 'New Reply',                  'bbpress' ),
     58        'view'                     => esc_attr__( 'View Reply',                 'bbpress' ),
     59        'view_item'                => esc_attr__( 'View Reply',                 'bbpress' ),
     60        'view_items'               => esc_attr__( 'View Replies',               'bbpress' ),
     61        'search_items'             => esc_attr__( 'Search Replies',             'bbpress' ),
     62        'not_found'                => esc_attr__( 'No replies found',           'bbpress' ),
     63        'not_found_in_trash'       => esc_attr__( 'No replies found in Trash',  'bbpress' ),
     64        'filter_items_list'        => esc_attr__( 'Filter replies list',        'bbpress' ),
     65        'items_list'               => esc_attr__( 'Replies list',               'bbpress' ),
     66        'items_list_navigation'    => esc_attr__( 'Replies list navigation',    'bbpress' ),
     67        'parent_item_colon'        => esc_attr__( 'Parent Topic:',              'bbpress' ),
     68        'archives'                 => esc_attr__( 'Forum Replies',              'bbpress' ),
     69        'attributes'               => esc_attr__( 'Reply Attributes',           'bbpress' ),
     70        'insert_into_item'         => esc_attr__( 'Insert into reply',          'bbpress' ),
     71        'uploaded_to_this_item'    => esc_attr__( 'Uploaded to this reply',     'bbpress' ),
     72        'featured_image'           => esc_attr__( 'Reply Image',                'bbpress' ),
     73        'set_featured_image'       => esc_attr__( 'Set reply image',            'bbpress' ),
     74        'remove_featured_image'    => esc_attr__( 'Remove reply image',         'bbpress' ),
     75        'use_featured_image'       => esc_attr__( 'Use as reply image',         'bbpress' ),
     76        'item_published'           => esc_attr__( 'Reply published.',           'bbpress' ),
     77        'item_published_privately' => esc_attr__( 'Reply published privately.', 'bbpress' ),
     78        'item_reverted_to_draft'   => esc_attr__( 'Reply reverted to draft.',   'bbpress' ),
     79        'item_scheduled'           => esc_attr__( 'Reply scheduled.',           'bbpress' ),
     80        'item_updated'             => esc_attr__( 'Reply updated.',             'bbpress' )
    8081    ) );
    8182}
Note: See TracChangeset for help on using the changeset viewer.