Make WordPress Core


Ignore:
Timestamp:
06/05/2023 09:03:38 PM (16 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/includes/class-custom-image-header.php

    r55412 r55881  
    7272     */
    7373    public function init() {
    74         $page = add_theme_page( __( 'Header' ), __( 'Header' ), 'edit_theme_options', 'custom-header', array( $this, 'admin_page' ) );
     74        $page = add_theme_page(
     75            _x( 'Header', 'custom image header' ),
     76            _x( 'Header', 'custom image header' ),
     77            'edit_theme_options',
     78            'custom-header',
     79            array( $this, 'admin_page' )
     80        );
    7581
    7682        if ( ! $page ) {
Note: See TracChangeset for help on using the changeset viewer.