WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/30/2018 01:35:27 PM (3 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-theme-upgrader.php

    r43571 r43598  
    474474                'incompatible_archive_theme_no_style',
    475475                $this->strings['incompatible_archive'],
    476                 /* translators: %s: style.css */
    477476                sprintf(
     477                    /* translators: %s: style.css */
    478478                    __( 'The theme is missing the %s stylesheet.' ),
    479479                    '<code>style.css</code>'
     
    494494                'incompatible_archive_theme_no_name',
    495495                $this->strings['incompatible_archive'],
    496                 /* translators: %s: style.css */
    497496                sprintf(
     497                    /* translators: %s: style.css */
    498498                    __( 'The %s stylesheet doesn&#8217;t contain a valid theme header.' ),
    499499                    '<code>style.css</code>'
     
    507507                'incompatible_archive_theme_no_index',
    508508                $this->strings['incompatible_archive'],
    509                 /* translators: %s: index.php */
    510509                sprintf(
     510                    /* translators: %s: index.php */
    511511                    __( 'The theme is missing the %s file.' ),
    512512                    '<code>index.php</code>'
Note: See TracChangeset for help on using the changeset viewer.