Make WordPress Core


Ignore:
Timestamp:
06/05/2023 09:03:38 PM (6 months ago)
Author:
audrasjb
Message:

I18N: Provide gettext context to disambiguate various translation strings.

This changeset adds context to various strings:

  • 'Background' string when referring to Custom Background appearance screens
  • 'Header' string when referring to Custom Header appearance screens
  • 'General', 'Header' and 'Footer' strings when referring to template part areas

Props gonzomir, SergeyBiryukov, mukesh27, costdev, ankitmaru.
Fixes #58424.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/menu.php

    r55703 r55881  
    231231if ( current_theme_supports( 'custom-header' ) && current_user_can( 'customize' ) ) {
    232232    $customize_header_url      = add_query_arg( array( 'autofocus' => array( 'control' => 'header_image' ) ), $customize_url );
    233     $submenu['themes.php'][15] = array( __( 'Header' ), $appearance_cap, esc_url( $customize_header_url ), '', 'hide-if-no-customize' );
     233    $submenu['themes.php'][15] = array( _x( 'Header', 'custom image header' ), $appearance_cap, esc_url( $customize_header_url ), '', 'hide-if-no-customize' );
    234234}
    235235
    236236if ( current_theme_supports( 'custom-background' ) && current_user_can( 'customize' ) ) {
    237237    $customize_background_url  = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $customize_url );
    238     $submenu['themes.php'][20] = array( __( 'Background' ), $appearance_cap, esc_url( $customize_background_url ), '', 'hide-if-no-customize' );
     238    $submenu['themes.php'][20] = array( _x( 'Background', 'custom background' ), $appearance_cap, esc_url( $customize_background_url ), '', 'hide-if-no-customize' );
    239239}
    240240
Note: See TracChangeset for help on using the changeset viewer.