I18Nv2::langs2locales

I18Nv2::langs2locales() – Transform languages to locales

Synopsis

require_once 'I18Nv2.php';

array I18Nv2::langs2locales ( array $languages )

Description

Transforms language codes like en-US and de-DE to locale codes like en_US and de_DE.

Parameter

array $languages

array of language codes

Return value

Returns array transformed language codes as locale codes.

Note

This function should be called statically.

See

See also I18Nv2::locales2langs().