Plugin Directory

Changeset 521955


Ignore:
Timestamp:
03/21/2012 10:13:29 PM (14 years ago)
Author:
phill_brown
Message:

Added gettext domain

Location:
menu-rules/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • menu-rules/trunk/admin/meta-box.php

    r521950 r521955  
    3030        $fields['conditions_adv'] = array(
    3131            array(
    32                 'title' => __('When these conditions match:'),
     32                'title' => __('When these conditions match:', 'menu-rules'),
    3333                'type' => 'textarea',
    3434                'name' => 'menu-rules-conditional-exp',
     
    3737                    'rows' => 5,
    3838                    'cols' => 60,
    39                     'placeholder' => __('eg is_single()'),
     39                    'placeholder' => __('eg is_single()', 'menu-rules'),
    4040                )
    4141            ),
     
    4545        $fields['rules'] = array(
    4646            array(
    47                 'title' => __( 'Apply these rules:' ),
     47                'title' => __( 'Apply these rules:' , 'menu-rules'),
    4848                'type' => 'checkbox',
    4949                'name' => 'menu-rules-rules',
    50                 'text' => __( 'Choose rules' ),
     50                'text' => __( 'Choose rules' , 'menu-rules'),
    5151                'value' => array_combine(
    5252                    array_keys( Menu_Rules::get_var( 'rules_handlers' ) ),
     
    5959        $fields['nav_menus'] = array(
    6060            array(
    61                 'title' => __( 'To these menu items:' ),
     61                'title' => __( 'To these menu items:' , 'menu-rules'),
    6262                'type' => 'select',
    6363                'name' => 'menu-rules-menu-items',
    6464                'value' => $nav_menu_dropdown_values,
    6565                'multiple' => true,
    66                 'text' => __( 'Select menu items' ),
     66                'text' => __( 'Select menu items' , 'menu-rules'),
    6767                'extra' => array(
    6868                    'class' => 'menu-rules-items-select',
     
    8282        // User need to create a menu before using menu rules
    8383        if ( ! $nav_menus ) {
    84             echo '<p class="error-message">' . sprintf( __('You aren\'t using WordPress custom menus. %sCreate one now to start using Menu Rules%s'), '<a href="' . admin_url( 'nav-menus.php' ) . '">', '</a>' ) . '</p>';
     84            echo '<p class="error-message">' . sprintf( __('You aren\'t using WordPress custom menus. %sCreate one now to start using Menu Rules%s', 'menu-rules'), '<a href="' . admin_url( 'nav-menus.php' ) . '">', '</a>' ) . '</p>';
    8585            return;
    8686        }
     
    9191        echo PB_Forms::table( $this->get_fields( 'rules' ), $postmeta );
    9292        echo PB_Forms::table( $this->get_fields( 'nav_menus' ), $postmeta );
    93         echo '<p>' . sprintf( __('A full list of conditonal tags can be %sfound on the WordPress.org codex%s. Do not include an if statement or a semicolon.'), '<a href="http://codex.wordpress.org/Conditional_Tags" target="_blank">', '</a>' ) . '</p>';
    94         echo '<h4>' . __('Condition Examples') . '</h4>';
    95         echo '<p>' . sprintf( __('%sis_single()%s applies rules when viewing a single post.'), '<code>', '</code>' ) . '</p>';
    96         echo '<p>' . sprintf( __('%sis_singular( \'product\' )%s applies rules when viewing a single product.'), '<code>', '</code>' ) . '</p>';
    97         echo '<p>' . sprintf( __('%s( is_singular( \'book\' ) || is_singular( \'journal\' ) ) && has_tag( \'fiction\' )%s applies rules when showing a single book or journal which is tagged as fiction'), '<code>', '</code>' ) . '</p>';
     93        echo '<p>' . sprintf( __('A full list of conditonal tags can be %sfound on the WordPress.org codex%s. Do not include an if statement or a semicolon.', 'menu-rules'), '<a href="http://codex.wordpress.org/Conditional_Tags" target="_blank">', '</a>' ) . '</p>';
     94        echo '<h4>' . __('Condition Examples', 'menu-rules') . '</h4>';
     95        echo '<p>' . sprintf( __('%sis_single()%s applies rules when viewing a single post.', 'menu-rules'), '<code>', '</code>' ) . '</p>';
     96        echo '<p>' . sprintf( __('%sis_singular( \'product\' )%s applies rules when viewing a single product.', 'menu-rules'), '<code>', '</code>' ) . '</p>';
     97        echo '<p>' . sprintf( __('%s( is_singular( \'book\' ) || is_singular( \'journal\' ) ) && has_tag( \'fiction\' )%s applies rules when showing a single book or journal which is tagged as fiction', 'menu-rules'), '<code>', '</code>' ) . '</p>';
    9898    }
    9999
  • menu-rules/trunk/menu-rules.php

    r521950 r521955  
    6666        register_post_type( self::get_var( 'post_type' ), array(
    6767            'labels' => array(
    68                 'name' => _x('Menu Rules', 'post type general name'),
    69                 'singular_name' => _x('Menu Rule', 'post type singular name'),
    70                 'add_new' => _x('Add New', 'Menu Rule'),
    71                 'add_new_item' => __('Add New Menu Rule'),
    72                 'edit_item' => __('Edit Menu Rule'),
    73                 'new_item' => __('New Menu Rule'),
    74                 'view_item' => __('View Menu Rule'),
    75                 'search_items' => __('Search Menu Rules'),
    76                 'not_found' =>  __('No Menu Rules found'),
    77                 'not_found_in_trash' => __('No Menu Rules found in Trash'),
     68                'name' => _x('Menu Rules', 'post type general name', 'menu-rules'),
     69                'singular_name' => _x('Menu Rule', 'post type singular name', 'menu-rules'),
     70                'add_new' => _x('Add New', 'Menu Rule', 'menu-rules'),
     71                'add_new_item' => __('Add New Menu Rule', 'menu-rules'),
     72                'edit_item' => __('Edit Menu Rule', 'menu-rules'),
     73                'new_item' => __('New Menu Rule', 'menu-rules'),
     74                'view_item' => __('View Menu Rule', 'menu-rules'),
     75                'search_items' => __('Search Menu Rules', 'menu-rules'),
     76                'not_found' =>  __('No Menu Rules found', 'menu-rules'),
     77                'not_found_in_trash' => __('No Menu Rules found in Trash', 'menu-rules'),
    7878            ),
    7979            'public' => false,
  • menu-rules/trunk/rules/active-parent.php

    r521950 r521955  
    1010
    1111    function __construct() {
    12         $this->setup( __('Emulate current page as a child but do not create a menu item.') );
     12        $this->setup( __('Emulate current page as a child but do not create a menu item.', 'menu-rules') );
    1313    }
    1414
  • menu-rules/trunk/rules/child-page.php

    r521950 r521955  
    88
    99    function __construct() {
    10         $this->setup( __('Insert the current page into the menu as a child.') );
     10        $this->setup( __('Insert the current page into the menu as a child.', 'menu-rules') );
    1111    }
    1212
Note: See TracChangeset for help on using the changeset viewer.