Make WordPress Core

Changeset 39231


Ignore:
Timestamp:
11/14/2016 09:37:55 PM (9 years ago)
Author:
helen
Message:

Theme starter content: Add context to all strings.

fixes #38770.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r39227 r39231  
    17961796        'widgets' => array(
    17971797            'text_business_info' => array ( 'text', array (
    1798                 'title' => __( 'Find Us' ),
     1798                'title' => _x( 'Find Us', 'Theme starter content' ),
    17991799                'text' => join( '', array (
    1800                     '<p><strong>' . __( 'Address' ) . '</strong><br />',
    1801                     __( '123 Main Street' ) . '<br />' . __( 'New York, NY 10001' ) . '</p>',
    1802                     '<p><strong>' . __( 'Hours' ) . '</strong><br />',
    1803                     __( 'Monday&mdash;Friday: 9:00AM&ndash;5:00PM' ) . '<br />' . __( 'Saturday &amp; Sunday: 11:00AM&ndash;3:00PM' ) . '</p>'
     1800                    '<p><strong>' . _x( 'Address', 'Theme starter content' ) . '</strong><br />',
     1801                    _x( '123 Main Street', 'Theme starter content' ) . '<br />' . _x( 'New York, NY 10001', 'Theme starter content' ) . '</p>',
     1802                    '<p><strong>' . _x( 'Hours', 'Theme starter content' ) . '</strong><br />',
     1803                    _x( 'Monday&mdash;Friday: 9:00AM&ndash;5:00PM', 'Theme starter content' ) . '<br />' . _x( 'Saturday &amp; Sunday: 11:00AM&ndash;3:00PM', 'Theme starter content' ) . '</p>'
    18041804                ) ),
    18051805            ) ),
    18061806            'search' => array ( 'search', array (
    1807                 'title' => __( 'Site Search' ),
     1807                'title' => _x( 'Site Search', 'Theme starter content' ),
    18081808            ) ),
    18091809            'text_credits' => array ( 'text', array (
    1810                 'title' => __( 'Site Credits' ),
    1811                 'text' => sprintf( __( 'This site was created on %s' ), get_date_from_gmt( current_time( 'mysql', 1 ), 'c' ) ),
     1810                'title' => _x( 'Site Credits', 'Theme starter content' ),
     1811                'text' => sprintf( _x( 'This site was created on %s', 'Theme starter content' ), get_date_from_gmt( current_time( 'mysql', 1 ), 'c' ) ),
    18121812            ) ),
    18131813        ),
     
    18351835
    18361836            'link_yelp' => array(
    1837                 'title' => __( 'Yelp' ),
     1837                'title' => _x( 'Yelp', 'Theme starter content' ),
    18381838                'url' => 'https://www.yelp.com',
    18391839            ),
    18401840            'link_facebook' => array(
    1841                 'title' => __( 'Facebook' ),
     1841                'title' => _x( 'Facebook', 'Theme starter content' ),
    18421842                'url' => 'https://www.facebook.com/wordpress',
    18431843            ),
    18441844            'link_twitter' => array(
    1845                 'title' => __( 'Twitter' ),
     1845                'title' => _x( 'Twitter', 'Theme starter content' ),
    18461846                'url' => 'https://twitter.com/wordpress',
    18471847            ),
    18481848            'link_instagram' => array(
    1849                 'title' => __( 'Instagram' ),
     1849                'title' => _x( 'Instagram', 'Theme starter content' ),
    18501850                'url' => 'https://www.instagram.com/explore/tags/wordcamp/',
    18511851            ),
    18521852            'link_email' => array(
    1853                 'title' => __( 'Email' ),
     1853                'title' => _x( 'Email', 'Theme starter content' ),
    18541854                'url' => 'mailto:wordpress@example.com',
    18551855            ),
     
    18581858            'home' => array(
    18591859                'post_type' => 'page',
    1860                 'post_title' => __( 'Homepage' ),
    1861                 'post_content' => __( 'Welcome home.' ),
     1860                'post_title' => _x( 'Homepage', 'Theme starter content' ),
     1861                'post_content' => _x( 'Welcome home.', 'Theme starter content' ),
    18621862            ),
    18631863            'about-us' => array(
    18641864                'post_type' => 'page',
    1865                 'post_title' => __( 'About Us' ),
    1866                 'post_content' => __( 'More than you ever wanted to know.' ),
     1865                'post_title' => _x( 'About Us', 'Theme starter content' ),
     1866                'post_content' => _x( 'More than you ever wanted to know.', 'Theme starter content' ),
    18671867            ),
    18681868            'contact-us' => array(
    18691869                'post_type' => 'page',
    1870                 'post_title' => __( 'Contact Us' ),
    1871                 'post_content' => __( 'Call us at 999-999-9999.' ),
     1870                'post_title' => _x( 'Contact Us', 'Theme starter content' ),
     1871                'post_content' => _x( 'Call us at 999-999-9999.', 'Theme starter content' ),
    18721872            ),
    18731873            'blog' => array(
    18741874                'post_type' => 'page',
    1875                 'post_title' => __( 'Blog' ),
     1875                'post_title' => _x( 'Blog', 'Theme starter content' ),
    18761876            ),
    18771877
    18781878            'homepage-section' => array(
    18791879                'post_type' => 'page',
    1880                 'post_title' => __( 'A homepage section' ),
    1881                 'post_content' => __( 'This is an example of a homepage section, which are managed in theme options.' ),
     1880                'post_title' => _x( 'A homepage section', 'Theme starter content' ),
     1881                'post_content' => _x( 'This is an example of a homepage section, which are managed in theme options.', 'Theme starter content' ),
    18821882            ),
    18831883        ),
Note: See TracChangeset for help on using the changeset viewer.