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().

Create an I18Nv2_Negotiator object (Previous) Transform locales to languages (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.