Make WordPress Core


Ignore:
Timestamp:
08/30/2018 01:35:27 PM (6 years ago)
Author:
jrf
Message:

I18n: Improve translators comments [3].

  • 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.

Includes minor code layout fixes.

Patch 44360-wp-admin-includes-dir.patch of the series.

Props flipkeijzer, alvarogois, michielatyoast
See #44360

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-language-pack-upgrader.php

    r43571 r43598  
    344344                'incompatible_archive_pomo',
    345345                $this->strings['incompatible_archive'],
    346                 /* translators: 1: .po, 2: .mo */
    347346                sprintf(
     347                    /* translators: 1: .po, 2: .mo */
    348348                    __( 'The language pack is missing either the %1$s or %2$s files.' ),
    349349                    '<code>.po</code>',
Note: See TracChangeset for help on using the changeset viewer.