WordPress.org

Make WordPress Core

Ticket #30966: 30966-translator-comment.diff

File 30966-translator-comment.diff, 2.1 KB (added by ocean90, 6 years ago)

https://translate.wordpress.org/projects/wp/dev/ja/default?filters[status]=either&filters[original_id]=533157&filters[translation_id]=21527772

  • src/wp-includes/formatting.php

     
    28512851        $original_text = $text;
    28522852        $text = wp_strip_all_tags( $text );
    28532853
    2854         /* translators: If your word count is based on single characters (e.g. East Asian characters),
    2855            enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.
    2856            Do not translate into your own language. */
     2854        /*
     2855         * translators: If your word count is based on single characters (e.g. East Asian characters),
     2856         * enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.
     2857         * Do not translate into your own language.
     2858         */
    28572859        if ( strpos( _x( 'words', 'Word count type. Do not translate!' ), 'characters' ) === 0 && preg_match( '/^utf\-?8$/i', get_option( 'blog_charset' ) ) ) {
    28582860                $text = trim( preg_replace( "/[\n\r\t ]+/", ' ', $text ), ' ' );
    28592861                preg_match_all( '/./u', $text, $words_array );
  • src/wp-includes/script-loader.php

     
    401401
    402402        $scripts->add( 'word-count', "/wp-admin/js/word-count$suffix.js", array(), false, 1 );
    403403        did_action( 'init' ) && $scripts->localize( 'word-count', 'wordCountL10n', array(
    404                 /* translators: If your word count is based on single characters (e.g. East Asian characters),
    405                    enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.
    406                    Do not translate into your own language. */
     404                /*
     405                 * translators: If your word count is based on single characters (e.g. East Asian characters),
     406                 * enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.
     407                 * Do not translate into your own language.
     408                 */
    407409                'type' => _x( 'words', 'Word count type. Do not translate!' ),
    408410                'shortcodes' => ! empty( $GLOBALS['shortcode_tags'] ) ? array_keys( $GLOBALS['shortcode_tags'] ) : array()
    409411        ) );