mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
Add missing translation for 'Page Template' in the theme editor. props SergeyBiryukov, fixes #15933.
git-svn-id: https://develop.svn.wordpress.org/trunk@17098 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fbc4c6980e
commit
408eb985c8
@ -62,7 +62,7 @@ function get_file_description( $file ) {
|
||||
elseif ( file_exists( $file ) && is_file( $file ) ) {
|
||||
$template_data = implode( '', file( $file ) );
|
||||
if ( preg_match( '|Template Name:(.*)$|mi', $template_data, $name ))
|
||||
return _cleanup_header_comment($name[1]) . ' Page Template';
|
||||
return sprintf( __( '%s Page Template' ), _cleanup_header_comment($name[1]) );
|
||||
}
|
||||
|
||||
return basename( $file );
|
||||
|
Loading…
x
Reference in New Issue
Block a user