Make WordPress Core

Changeset 14366


Ignore:
Timestamp:
05/03/2010 10:13:40 AM (15 years ago)
Author:
westi
Message:

Refactor the error messages and make them translatable.

Location:
trunk/wp-includes/theme-compat
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme-compat/comments-popup.php

    r14365 r14366  
    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">
  • trunk/wp-includes/theme-compat/comments.php

    r14365 r14366  
    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
  • trunk/wp-includes/theme-compat/footer.php

    r14365 r14366  
    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
  • trunk/wp-includes/theme-compat/header.php

    r14365 r14366  
    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">
  • trunk/wp-includes/theme-compat/sidebar.php

    r14365 r14366  
    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">
Note: See TracChangeset for help on using the changeset viewer.