Make WordPress Core

Changeset 25918


Ignore:
Timestamp:
10/26/2013 12:45:16 AM (13 years ago)
Author:
nbachiyski
Message:

Extract: add default rules

Two purposes:

  • Helps people, reading the code to have a better idea of the structure of the array
  • Reciprocity with $comment_prefix, which has a default value

See #25691

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/i18n/extract.php

    r25917 r25918  
    1010class StringExtractor {
    1111
    12         var $rules = array();
     12        var $rules = array(
     13                '_' => array( 'string' ),
     14                '__' => array( 'string' ),
     15                '_e' => array( 'string' ),
     16                '_c' => array( 'string' ),
     17                '_n' => array( 'singular', 'plural' ),
     18        );
    1319        var $comment_prefix = 'translators:';
    1420
Note: See TracChangeset for help on using the changeset viewer.