Make WordPress Core


Ignore:
Timestamp:
11/21/2016 02:45:53 AM (9 years ago)
Author:
johnbillion
Message:

I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment.

See #38882

File:
1 edited

Legend:

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

    r39325 r39326  
    588588    $counts['total'] = $counts['plugins'] + $counts['themes'] + $counts['wordpress'] + $counts['translations'];
    589589    $titles = array();
    590     if ( $counts['wordpress'] )
     590    if ( $counts['wordpress'] ) {
     591        /* translators: 1: Number of updates available to WordPress */
    591592        $titles['wordpress'] = sprintf( __( '%d WordPress Update'), $counts['wordpress'] );
    592     if ( $counts['plugins'] )
     593    }
     594    if ( $counts['plugins'] ) {
     595        /* translators: 1: Number of updates available to plugins */
    593596        $titles['plugins'] = sprintf( _n( '%d Plugin Update', '%d Plugin Updates', $counts['plugins'] ), $counts['plugins'] );
    594     if ( $counts['themes'] )
     597    }
     598    if ( $counts['themes'] ) {
     599        /* translators: 1: Number of updates available to themes */
    595600        $titles['themes'] = sprintf( _n( '%d Theme Update', '%d Theme Updates', $counts['themes'] ), $counts['themes'] );
    596     if ( $counts['translations'] )
     601    }
     602    if ( $counts['translations'] ) {
    597603        $titles['translations'] = __( 'Translation Updates' );
     604    }
    598605
    599606    $update_title = $titles ? esc_attr( implode( ', ', $titles ) ) : '';
Note: See TracChangeset for help on using the changeset viewer.