Refactor the error messages and make them translatable.
git-svn-id: https://develop.svn.wordpress.org/trunk@14366 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
473772f395
commit
a1f53d258b
@ -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
Block a user