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/includes/class-custom-background.php

    r55412 r55881  
    6464     */
    6565    public function init() {
    66         $page = add_theme_page( __( 'Background' ), __( 'Background' ), 'edit_theme_options', 'custom-background', array( $this, 'admin_page' ) );
     66        $page = add_theme_page(
     67            _x( 'Background', 'custom background' ),
     68            _x( 'Background', 'custom background' ),
     69            'edit_theme_options',
     70            'custom-background',
     71            array( $this, 'admin_page' )
     72        );
     73
    6774        if ( ! $page ) {
    6875            return;
Note: See TracChangeset for help on using the changeset viewer.