Getting the multilingual Locale from Language
Permalink
I have a string variable $Language with the value "nb" for the Norwegian language.
How to get the related Norwegian Locale ie. "nb_NO" from that string?
For an object $Lang as an example it's possible to get the related Locale from $Lang->getLocale();
But what about starting with the language being represented by a string variable and not an object?
How to get the related Norwegian Locale ie. "nb_NO" from that string?
For an object $Lang as an example it's possible to get the related Locale from $Lang->getLocale();
But what about starting with the language being represented by a string variable and not an object?