What code is required to put in
functions.php in order to make the theme translation ready?
The TwentyEleven theme has only following line:
load_theme_textdomain( 'twentyeleven', get_template_directory() . '/languages' );
But in many tutorials they have mentioned to add following:
load_theme_textdomain( 'twentyeleven', get_template_directory() . '/languages' ); $locale = get_locale(); $locale_file = TEMPLATEPATH . "/languages/$locale.php"; if ( is_readable( $locale_file ) ) require_once( $locale_file );
Is the second part required to add in the
functions.php file to make it translation ready? If it is, why the TwentyEleven theme does not have it?