Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/02/2012, 11:06
phpdevelopment
 
Fecha de Ingreso: mayo-2011
Mensajes: 256
Antigüedad: 12 años, 11 meses
Puntos: 5
Respuesta: cambiar lang="en-US" en wordpress 3.1

Gracias pero sale esto:

html <?php language_attributes(); ?>>
en mi wp-config tengo :

define('WPLANG', 'es_ES');


Con lo que me deberia de coger el es_Es en :

de l10n.php
Código PHP:
Ver original
  1. function get_locale() {
  2.     global $locale;
  3.  
  4.     if ( isset( $locale ) )
  5.         return apply_filters( 'locale', $locale );
  6.  
  7.     // WPLANG is defined in wp-config.
  8.     if ( defined( 'WPLANG' ) )
  9.         $locale = WPLANG;
  10.  
  11.     // If multisite, check options.
  12.     if ( is_multisite() ) {
  13.         // Don't check blog option when installing.
  14.         if ( defined( 'WP_INSTALLING' ) || ( false === $ms_locale = get_option( 'WPLANG' ) ) )
  15.             $ms_locale = get_site_option('WPLANG');
  16.  
  17.         if ( $ms_locale !== false )
  18.             $locale = $ms_locale;
  19.     }
  20.  
  21.     if ( empty( $locale ) )
  22.         $locale = 'en_US';
  23.  
  24.     return apply_filters( 'locale', $locale );
  25. }

y en get_bloginfo()

tengo :
case 'language':
$output = get_locale();
$output = str_replace('_', '-', $output);
break;

para despues cargar los datos en html <?php language_attributes(); ?>>

Pero me no hay manera de cambiarlo sigue saliendo en_US

me falta algo?

Última edición por phpdevelopment; 19/02/2012 a las 11:16 Razón: mas datos