PUBLISHED : _LANGUE_PAR_DEFAUT

**SPIP**

# Article validated

The article "**\_LANGUE\_PAR_DEFAUT**
(https://www.spip.net/en_article6585.html)" was validated by
<multi>[ar]جورج[fr]George [en]George</multi>.

* * *

## \_LANGUE\_PAR_DEFAUT

Tuesday 9 June 2020 , by [jack](.././?page=auteur&id_auteur=593&)

The constant **`_LANGUE_PAR_DEFAUT`** sets the default language. The
default value is French (code `"fr"`). For some non-French-speaking sites,
it may be interesting to set another value.
It is possible to customize this value in your file
`config/mes_options.php` (See the article dedicated to it
(https://www.spip.net/ecrire/?exec=article&id_article=4909)).

**Example :**

    // the default language is Dutch

    define
    
     (http://www.php.net/define)
    
    &#40;

    '_LANGUE_PAR_DEFAUT'

    ,

    'nl'

    &#41;

    ;

**P.S.**
This constant is available from SPIP 3.0.23 and SPIP 3.1.2.

— Sent by SPIP (https://www.spip.net/)

rubon199.jpg