Making WordPress.org

Changeset 4807


Ignore:
Timestamp:
01/27/2017 01:02:19 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Add a context to header menu links, so they could be translated differently than the links elsewhere, e.g. on home page.

See #2151.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/header.php

    r4706 r4807  
    1313
    1414$menu_items = array(
    15     '/'                                                                  => __( 'Forums', 'wporg-forums' ),
    16     __( 'https://codex.wordpress.org/Main_Page', 'wporg-forums' )        => __( 'Documentation', 'wporg-forums' ),
    17     __( 'https://make.wordpress.org/support/handbook/', 'wporg-forums' ) => __( 'Get Involved', 'wporg-forums' ),
     15    /* translators: relative link to the forums home page */
     16    _x( '/', 'header menu' )                                                            => _x( 'Forums', 'header menu', 'wporg-forums' ),
     17    _x( 'https://codex.wordpress.org/Main_Page', 'header menu', 'wporg-forums' )        => _x( 'Documentation', 'header menu', 'wporg-forums' ),
     18    _x( 'https://make.wordpress.org/support/handbook/', 'header menu', 'wporg-forums' ) => _x( 'Get Involved', 'header menu', 'wporg-forums' ),
    1819);
    1920?>
Note: See TracChangeset for help on using the changeset viewer.