Refactor the error messages and make them translatable.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ae468d52ac
commit
c01891f5bd
|
@ -7,7 +7,7 @@
|
|||
* This file is here for Backwards compatibility with old themes and will be removed in a future version
|
||||
*
|
||||
*/
|
||||
_deprecated_file( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a comments-popup.php template in your theme.');
|
||||
_deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
|
||||
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* This file is here for Backwards compatibility with old themes and will be removed in a future version
|
||||
*
|
||||
*/
|
||||
_deprecated_file( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a comments.php template in your theme.');
|
||||
_deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
|
||||
|
||||
// Do not delete these lines
|
||||
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* This file is here for Backwards compatibility with old themes and will be removed in a future version
|
||||
*
|
||||
*/
|
||||
_deprecated_file( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a footer.php template in your theme.');
|
||||
_deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
|
||||
?>
|
||||
|
||||
<hr />
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* This file is here for Backwards compatibility with old themes and will be removed in a future version
|
||||
*
|
||||
*/
|
||||
_deprecated_file( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a header.php template in your theme.');
|
||||
_deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* This file is here for Backwards compatibility with old themes and will be removed in a future version
|
||||
*
|
||||
*/
|
||||
_deprecated_file( 'Theme without ' . basename(__FILE__), '3.0', null, 'Please include a sidebar.php template in your theme.');
|
||||
_deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
|
||||
?>
|
||||
<div id="sidebar" role="complementary">
|
||||
<ul>
|
||||
|
|
Loading…
Reference in New Issue