WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/11/2018 04:43:59 PM (4 years ago)
Author:
SergeyBiryukov
Message:

I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders.

Add missing translator comments in WP_Theme_Install_List_Table and wp_notify_postauthor().
Add missing commas in some translator comments.

Fixes #43523.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r42821 r42827  
    35593559            $mins = 1;
    35603560        }
    3561         /* translators: Time difference between two dates, in minutes (min=minute). 1: Number of minutes */
     3561        /* translators: Time difference between two dates, in minutes (min=minute). %s: Number of minutes */
    35623562        $since = sprintf( _n( '%s min', '%s mins', $mins ), $mins );
    35633563    } elseif ( $diff < DAY_IN_SECONDS && $diff >= HOUR_IN_SECONDS ) {
     
    35663566            $hours = 1;
    35673567        }
    3568         /* translators: Time difference between two dates, in hours. 1: Number of hours */
     3568        /* translators: Time difference between two dates, in hours. %s: Number of hours */
    35693569        $since = sprintf( _n( '%s hour', '%s hours', $hours ), $hours );
    35703570    } elseif ( $diff < WEEK_IN_SECONDS && $diff >= DAY_IN_SECONDS ) {
     
    35733573            $days = 1;
    35743574        }
    3575         /* translators: Time difference between two dates, in days. 1: Number of days */
     3575        /* translators: Time difference between two dates, in days. %s: Number of days */
    35763576        $since = sprintf( _n( '%s day', '%s days', $days ), $days );
    35773577    } elseif ( $diff < MONTH_IN_SECONDS && $diff >= WEEK_IN_SECONDS ) {
     
    35803580            $weeks = 1;
    35813581        }
    3582         /* translators: Time difference between two dates, in weeks. 1: Number of weeks */
     3582        /* translators: Time difference between two dates, in weeks. %s: Number of weeks */
    35833583        $since = sprintf( _n( '%s week', '%s weeks', $weeks ), $weeks );
    35843584    } elseif ( $diff < YEAR_IN_SECONDS && $diff >= MONTH_IN_SECONDS ) {
     
    35873587            $months = 1;
    35883588        }
    3589         /* translators: Time difference between two dates, in months. 1: Number of months */
     3589        /* translators: Time difference between two dates, in months. %s: Number of months */
    35903590        $since = sprintf( _n( '%s month', '%s months', $months ), $months );
    35913591    } elseif ( $diff >= YEAR_IN_SECONDS ) {
     
    35943594            $years = 1;
    35953595        }
    3596         /* translators: Time difference between two dates, in years. 1: Number of years */
     3596        /* translators: Time difference between two dates, in years. %s: Number of years */
    35973597        $since = sprintf( _n( '%s year', '%s years', $years ), $years );
    35983598    }
Note: See TracChangeset for help on using the changeset viewer.