Changeset 1177

Show
Ignore:
Timestamp:
04/26/04 02:00:08 (4 years ago)
Author:
rboren
Message:

Set language with WPLANG.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-config-sample.php

    r628 r1177  
    1313$table_prefix  = 'wp_';   // example: 'wp_' or 'b2' or 'mylogin_' 
    1414 
     15// Change this to localize WordPress.  A corresponding MO file for the 
     16// chosen language must be installed to wp-includes/languages. 
     17// For example, install de.mo to wp-includes/languages and set WPLANG to 'de' 
     18// to enable German lanuage support. 
     19define ('WPLANG', ''); 
     20 
    1521/* Stop editing */ 
    1622 
  • trunk/wp-includes/wp-l10n.php

    r1086 r1177  
    22$curpath = dirname(__FILE__).'/'; 
    33 
    4 // The locale is hard-coded here for now. 
    5 $locale = 'en_US'; 
     4$locale = ''; 
     5 
     6// WPLANG is defined in wp-config. 
     7if (defined('WPLANG')) { 
     8    $locale = WPLANG; 
     9
     10 
     11if (empty($locale)) { 
     12    $locale = 'en_US'; 
     13
    614 
    715$mofile = $curpath . "/languages/$locale.mo";