Changeset 35615
- Timestamp:
- 11/11/2015 08:59:56 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/edit-comments.js
r34977 r35615 99 99 var newTitle, regExMatch, titleCount, commentFrag; 100 100 101 titleRegEx = titleRegEx || new RegExp( 'Comments (\\([0-9' + thousandsSeparator + ']+\\))?' );101 titleRegEx = titleRegEx || new RegExp( adminCommentsL10n.docTitleCommentsCount.replace( '%s', '\\([0-9' + thousandsSeparator + ']+\\)' ) + '?' ); 102 102 // count funcs operate on a $'d element 103 103 titleDiv = titleDiv || $( '<div />' ); … … 118 118 regExMatch = titleRegEx.exec( document.title ); 119 119 if ( regExMatch ) { 120 newTitle = document.title.replace( regExMatch[0], 'Comments (' + titleDiv.text() + ')' );120 newTitle = document.title.replace( regExMatch[0], adminCommentsL10n.docTitleCommentsCount.replace( '%s', titleDiv.text() ) + ' ' ); 121 121 } 122 122 } else { 123 123 regExMatch = titleRegEx.exec( newTitle ); 124 124 if ( regExMatch ) { 125 newTitle = newTitle.replace( regExMatch[0], 'Comments');125 newTitle = newTitle.replace( regExMatch[0], adminCommentsL10n.docTitleComments ); 126 126 } 127 127 } -
trunk/src/wp-includes/script-loader.php
r35605 r35615 488 488 'reply' => __( 'Reply' ), 489 489 'warnQuickEdit' => __( "Are you sure you want to edit this comment?\nThe changes you made will be lost." ), 490 'docTitleComments' => __( 'Comments' ), 491 /* translators: %s: comments count */ 492 'docTitleCommentsCount' => __( 'Comments (%s)' ), 490 493 ) ); 491 494
Note: See TracChangeset
for help on using the changeset viewer.