WordPress.org

Making WordPress.org

Changeset 9331


Ignore:
Timestamp:
12/11/2019 11:59:14 PM (6 weeks ago)
Author:
coffee2code
Message:

Handbook plugin: Add missing text domain to glossary-related strings and localize two strings.

Props imath.
Fixes #4902.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/glossary.php

    r8867 r9331  
    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,
     
    7272
    7373    static function manage_glossary_posts_columns( $columns ) {
    74         $columns['author'] = __( 'Created by' );
     74        $columns['author'] = __( 'Created by', 'wporg' );
    7575        return $columns;
    7676    }
     
    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>';
     
    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;
Note: See TracChangeset for help on using the changeset viewer.