Make WordPress Core


Ignore:
Timestamp:
04/26/2004 02:00:08 AM (22 years ago)
Author:
rboren
Message:

Set language with WPLANG.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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";
Note: See TracChangeset for help on using the changeset viewer.