Skip to content

Commit a1f53d2

Browse files
committed
Refactor the error messages and make them translatable.
git-svn-id: https://develop.svn.wordpress.org/trunk@14366 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 473772f commit a1f53d2

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

wp-includes/theme-compat/comments-popup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* This file is here for Backwards compatibility with old themes and will be removed in a future version
88
*
99
*/
10-
_deprecated_file( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a comments-popup.php template in your theme.');
10+
_deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
1111
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1212
<html xmlns="http://www.w3.org/1999/xhtml">
1313
<head>

wp-includes/theme-compat/comments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* This file is here for Backwards compatibility with old themes and will be removed in a future version
88
*
99
*/
10-
_deprecated_file( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a comments.php template in your theme.');
10+
_deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
1111

1212
// Do not delete these lines
1313
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))

wp-includes/theme-compat/footer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* This file is here for Backwards compatibility with old themes and will be removed in a future version
88
*
99
*/
10-
_deprecated_file( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a footer.php template in your theme.');
10+
_deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
1111
?>
1212

1313
<hr />

wp-includes/theme-compat/header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* This file is here for Backwards compatibility with old themes and will be removed in a future version
88
*
99
*/
10-
_deprecated_file( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a header.php template in your theme.');
10+
_deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
1111
?>
1212
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1313
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

wp-includes/theme-compat/sidebar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* This file is here for Backwards compatibility with old themes and will be removed in a future version
88
*
99
*/
10-
_deprecated_file( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a sidebar.php template in your theme.');
10+
_deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
1111
?>
1212
<div id="sidebar" role="complementary">
1313
<ul>

0 commit comments

Comments
 (0)