Make WordPress Core

Changeset 27122


Ignore:
Timestamp:
02/07/2014 05:46:46 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: translate featured tag slug used to link to specific tags in Posts editor. See #26526.

Location:
trunk/src/wp-content/themes/twentyfourteen/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php

    r26842 r27122  
    3434    $wp_customize->add_section( 'featured_content', array(
    3535        'title'       => __( 'Featured Content', 'twentyfourteen' ),
    36         'description' => sprintf( __( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), admin_url( '/edit.php?tag=featured' ), admin_url( '/edit.php?show_sticky=1' ) ),
     36        'description' => sprintf( __( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ),
     37            esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
     38            admin_url( 'edit.php?show_sticky=1' )
     39        ),
    3740        'priority'    => 130,
    3841    ) );
     
    99102        'content' =>
    100103            '<ul>' .
    101                 '<li>' . sprintf( __( 'The home page features your choice of up to 6 posts prominently displayed in a grid or slider, controlled by the <a href="%1$s">featured</a> tag; you can change the tag and layout in <a href="%2$s">Appearance &rarr; Customize</a>. If no posts match the tag, <a href="%3$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), admin_url( '/edit.php?tag=featured' ), admin_url( 'customize.php' ), admin_url( '/edit.php?show_sticky=1' ) ) . '</li>' .
     104                '<li>' . sprintf( __( 'The home page features your choice of up to 6 posts prominently displayed in a grid or slider, controlled a <a href="%1$s">tag</a>; you can change the tag and layout in <a href="%2$s">Appearance &rarr; Customize</a>. If no posts match the tag, <a href="%3$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ), admin_url( 'customize.php' ), admin_url( 'edit.php?show_sticky=1' ) ) . '</li>' .
    102105                '<li>' . sprintf( __( 'Enhance your site design by using <a href="%s">Featured Images</a> for posts you&rsquo;d like to stand out (also known as post thumbnails). This allows you to associate an image with your post without inserting it. Twenty Fourteen uses featured images for posts and pages&mdash;above the title&mdash;and in the Featured Content area on the home page.', 'twentyfourteen' ), 'http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail' ) . '</li>' .
    103106                '<li>' . sprintf( __( 'For an in-depth tutorial, and more tips and tricks, visit the <a href="%s">Twenty Fourteen documentation</a>.', 'twentyfourteen' ), 'http://codex.wordpress.org/Twenty_Fourteen' ) . '</li>' .
  • trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php

    r27120 r27122  
    410410        $wp_customize->add_section( 'featured_content', array(
    411411            'title'          => __( 'Featured Content', 'twentyfourteen' ),
    412             'description'    => sprintf( __( 'Use the <a href="%1$s">"featured" tag</a> to feature your posts. You can change this to a tag of your choice; if no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), admin_url( '/edit.php?tag=featured' ), admin_url( '/edit.php?show_sticky=1' ) ),
     412            'description'    => sprintf( __( 'Use a <a href="%1$s">tag</a> to feature your posts. You can change this to a tag of your choice; if no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ),
     413                esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
     414                admin_url( 'edit.php?show_sticky=1' )
     415            ),
    413416            'priority'       => 130,
    414417            'theme_supports' => 'featured-content',
     
    417420        // Add Featured Content settings.
    418421        $wp_customize->add_setting( 'featured-content[tag-name]', array(
    419             'default'              => 'featured',
     422            'default'              => _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ),
    420423            'type'                 => 'option',
    421424            'sanitize_js_callback' => array( __CLASS__, 'delete_transient' ),
     
    477480            'hide-tag' => 1,
    478481            'tag-id'   => 0,
    479             'tag-name' => 'featured',
     482            'tag-name' => _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ),
    480483        );
    481484
Note: See TracChangeset for help on using the changeset viewer.