Make WordPress Core


Ignore:
Timestamp:
08/30/2018 12:35:08 PM (7 years ago)
Author:
jrf
Message:

I18n: Improve translators comments [2].

  • Add missing translators comments.
  • Fix placement of some translators comments. Translators comments should be on the line directly above the line containing the translation function call for optimal compatibility with various .pot file generation tools. The CS auto-fixing, which changed some inconsistent function calls to multi-line function calls, is part of the reason why this was no longer the case for a select group of translators comments.

Patch 44360.wp-includes_customize.3.patch of the series.

Props marcomartins, mihaiiceyro, michielatyoast
See #44360

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php

    r43174 r43596  
    7575                                <span class="theme-location-set">
    7676                                    <?php
    77                                     /* translators: %s: menu name */
    7877                                    printf(
     78                                        /* translators: %s: menu name */
    7979                                        _x( '(Current: %s)', 'menu location' ),
    8080                                        '<span class="current-menu-location-name-' . esc_attr( $location ) . '"></span>'
Note: See TracChangeset for help on using the changeset viewer.