Making WordPress.org

Ticket #4902: 4902.patch

File 4902.patch, 3.1 KB (added by imath, 4 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/glossary.php

    diff --git sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/glossary.php sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/glossary.php
    index 3f79946..6c8d4b1 100644
    class WPorg_Handbook_Glossary { 
    3333
    3434                register_post_type( 'glossary', array(
    3535                        'labels' => array(
    36                                 'name' => _x( 'Glossary', 'glossary' ),
    37                                 'singular_name' => _x( 'Entry', 'glossary' ),
    38                                 'add_new' => _x( 'Add New', 'glossary' ),
    39                                 'add_new_item' => _x( 'Add New Entry', 'glossary' ),
    40                                 'edit_item' => _x( 'Edit Entry', 'glossary' ),
    41                                 'new_item' => _x( 'New Entry', 'glossary' ),
    42                                 'view_item' => _x( 'View Entry', 'glossary' ),
    43                                 'search_items' => _x( 'Search Glossary', 'glossary' ),
    44                                 'not_found' => _x( 'No entries found', 'glossary' ),
    45                                 'not_found_in_trash' => _x( 'No entries found in Trash', 'glossary' ),
    46                                 'parent_item_colon' => _x( 'Parent Entry:', 'glossary' ),
    47                                 'menu_name' => _x( 'Glossary', 'glossary' ),
    48                                 'name_admin_bar' => _x( 'Glossary Entry', 'glossary' ),
     36                                'name' => _x( 'Glossary', 'glossary', 'wporg' ),
     37                                'singular_name' => _x( 'Entry', 'glossary', 'wporg' ),
     38                                'add_new' => _x( 'Add New', 'glossary', 'wporg' ),
     39                                'add_new_item' => _x( 'Add New Entry', 'glossary', 'wporg' ),
     40                                'edit_item' => _x( 'Edit Entry', 'glossary', 'wporg' ),
     41                                'new_item' => _x( 'New Entry', 'glossary', 'wporg' ),
     42                                'view_item' => _x( 'View Entry', 'glossary', 'wporg' ),
     43                                'search_items' => _x( 'Search Glossary', 'glossary','wporg' ),
     44                                'not_found' => _x( 'No entries found', 'glossary', 'wporg' ),
     45                                'not_found_in_trash' => _x( 'No entries found in Trash', 'glossary', 'wporg' ),
     46                                'parent_item_colon' => _x( 'Parent Entry:', 'glossary', 'wporg' ),
     47                                'menu_name' => _x( 'Glossary', 'glossary', 'wporg' ),
     48                                'name_admin_bar' => _x( 'Glossary Entry', 'glossary', 'wporg' ),
    4949                        ),
    5050                        'public' => true,
    5151                        'show_ui' => true,
    class WPorg_Handbook_Glossary { 
    7171        }
    7272
    7373        static function manage_glossary_posts_columns( $columns ) {
    74                 $columns['author'] = __( 'Created by' );
     74                $columns['author'] = __( 'Created by', 'wporg' );
    7575                return $columns;
    7676        }
    7777
    class WPorg_Handbook_Glossary { 
    9898
    9999                        $edit = get_edit_post_link( $post );
    100100                        if ( $edit ) {
    101                                 $edit = ' - <a href="' . esc_url( $edit ) . '">edit</a>';
     101                                $edit = ' - <a href="' . esc_url( $edit ) . '">' . esc_html__( 'Edit', 'wporg' ) . '</a>';
    102102                        }
    103103                        $entry .= ' <a href="' . esc_url( get_permalink( $post ) ) . '">#</a>' . $edit . '</dd>';
    104104
    class WPorg_Handbook_Glossary { 
    109109                $content .= '</dl>';
    110110
    111111                if ( current_user_can( get_post_type_object('glossary')->cap->edit_posts ) )
    112                         $content .= '<p><a href="' . admin_url( 'post-new.php?post_type=glossary' ) . '">add new entry</a>';
     112                        $content .= '<p><a href="' . admin_url( 'post-new.php?post_type=glossary' ) . '">' . esc_html__( 'Add new entry', 'wporg' ) . '</a>';
    113113
    114114                return $content;
    115115        }