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-includes/admin-bar.php

    r55416 r55881  
    10531053                'parent' => 'appearance',
    10541054                'id'     => 'background',
    1055                 'title'  => __( 'Background' ),
     1055                'title'  => _x( 'Background', 'custom background' ),
    10561056                'href'   => admin_url( 'themes.php?page=custom-background' ),
    10571057                'meta'   => array(
     
    10671067                'parent' => 'appearance',
    10681068                'id'     => 'header',
    1069                 'title'  => __( 'Header' ),
     1069                'title'  => _x( 'Header', 'custom image header' ),
    10701070                'href'   => admin_url( 'themes.php?page=custom-header' ),
    10711071                'meta'   => array(
Note: See TracChangeset for help on using the changeset viewer.