Method: l::set

Sets a language value by key

Info

Syntax

l::set($key, $value=null)

Parameters

Example


// in the german translation file
l::set('yes', 'Ja');

// in the english translation file    
l::set('yes', 'yes');

// set multiple values at once
l::set(array(
    'yes' => 'Ja',
    'no'  => 'Nein'
));