Make WordPress Core


Ignore:
Timestamp:
08/26/2020 01:33:45 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Twenty Twenty: Add context to adjectives and homonyms.

This allows for better localization in languages where adjectives are translated differently depending on which noun they modify, or when a different translation is required for a noun vs. a verb.

Props dimadin, justinahinon.
Fixes #49797.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/functions.php

    r48102 r48861  
    487487                ),
    488488                array(
    489                         'name'  => __( 'Primary', 'twentytwenty' ),
     489                        'name'  => _x( 'Primary', 'color', 'twentytwenty' ),
    490490                        'slug'  => 'primary',
    491491                        'color' => twentytwenty_get_color_for_area( 'content', 'text' ),
    492492                ),
    493493                array(
    494                         'name'  => __( 'Secondary', 'twentytwenty' ),
     494                        'name'  => _x( 'Secondary', 'color', 'twentytwenty' ),
    495495                        'slug'  => 'secondary',
    496496                        'color' => twentytwenty_get_color_for_area( 'content', 'secondary' ),
Note: See TracChangeset for help on using the changeset viewer.