I18Nv2_Negotiator::getLocaleMatch

I18Nv2_Negotiator::getLocaleMatch() – マッチしたロケールを取得する

Synopsis

require_once 'I18Nv2/Negotiator.php';

string I18Nv2_Negotiator::getLocaleMatch ( array $langs = = null , array $countries = = null )

Description

マッチしたロケールコードを取得します。

このメソッドは I18Nv2::getLanguageMatch() および I18Nv2::getCountryMatch() を組み合わせたものです。

Parameter

array $langs

言語コードの配列

array $countries

国コードの配列

Return value

マッチしたロケールコードを文字列で返します。

Note

This function can not be called statically.