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-includes/block-template-utils.php

    r55817 r55881  
    6666        array(
    6767            'area'        => WP_TEMPLATE_PART_AREA_UNCATEGORIZED,
    68             'label'       => __( 'General' ),
     68            'label'       => _x( 'General', 'template part area' ),
    6969            'description' => __(
    7070                'General templates often perform a specific role like displaying post content, and are not tied to any particular area.'
     
    7575        array(
    7676            'area'        => WP_TEMPLATE_PART_AREA_HEADER,
    77             'label'       => __( 'Header' ),
     77            'label'       => _x( 'Header', 'template part area' ),
    7878            'description' => __(
    7979                'The Header template defines a page area that typically contains a title, logo, and main navigation.'
     
    8484        array(
    8585            'area'        => WP_TEMPLATE_PART_AREA_FOOTER,
    86             'label'       => __( 'Footer' ),
     86            'label'       => _x( 'Footer', 'template part area' ),
    8787            'description' => __(
    8888                'The Footer template defines a page area that typically contains site credits, social links, or any other combination of blocks.'
Note: See TracChangeset for help on using the changeset viewer.