mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-21 22:15:28 +00:00
Add missing translation for 'Page Template' in the theme editor. props SergeyBiryukov, fixes #15933.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
53895d9778
commit
e5b099a459
@ -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