Make WordPress Core


Ignore:
Timestamp:
02/21/2012 03:35:05 PM (13 years ago)
Author:
nacin
Message:

Allow counting by characters in lieu of a word count, for East Asian languages. First pass. see #8759.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r19897 r19966  
    279279
    280280    $scripts->add( 'word-count', "/wp-admin/js/word-count$suffix.js", array( 'jquery' ), false, 1 );
     281    $scripts->localize( 'word-count', 'wordCountL10n', array(
     282        /* translators: If your word count is based on single characters (East Asian characters),
     283           enter 'characters'. Otherwise, enter 'words'. Do not translate into your own language. */
     284        'type' => 'characters' == _x( 'words', 'word count: words or characters?' ) ? 'c' : 'w',
     285    ) );
    281286
    282287    $scripts->add( 'media-upload', "/wp-admin/js/media-upload$suffix.js", array( 'thickbox' ), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.