Make WordPress Core


Ignore:
Timestamp:
02/27/2024 08:19:51 PM (14 months ago)
Author:
jorbin
Message:

Site Icon/Customizer: Update strings in customizer to align with options-general.php.

This uses the new strings for alt text and site icon description that were introduced in [57713] as a part of #54370.

The strings are translated in PHP and then use wp.i18n.sprintf since the alt text strings live in a PHP file even though they are output as part of a template that is used in JavaScript.

Props westonruter, swissspidy, jorbin.
Fixes #60641.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r57238 r57730  
    51995199                    'label'       => __( 'Site Icon' ),
    52005200                    'description' => sprintf(
    5201                         '<p>' . __( 'Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. Upload one here!' ) . '</p>' .
    5202                         /* translators: %s: Site icon size in pixels. */
    5203                         '<p>' . __( 'Site Icons should be square and at least %s pixels.' ) . '</p>',
    5204                         '<strong>512 &times; 512</strong>'
     5201                        /* translators: %s: Site Icon size in pixels. */
     5202                        '<p>' . __( 'Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. They should be square and at least %s pixels.' ) . '</p>',
     5203                        '<code>512 &times; 512</code>'
    52055204                    ),
    52065205                    'section'     => 'title_tagline',
Note: See TracChangeset for help on using the changeset viewer.