language code -> locale code
This commit is contained in:
parent
8f16ed6115
commit
b8188bc558
|
@ -44,7 +44,7 @@ class Reader implements ProviderInterface
|
|||
* Constructor.
|
||||
*
|
||||
* @param string $filename The path to the GeoIP2 database file.
|
||||
* @param array $languages List of language codes to use in name property
|
||||
* @param array $languages List of locale codes to use in name property
|
||||
* from most preferred to least preferred.
|
||||
* @throws \MaxMind\Db\Reader\InvalidDatabaseException if the database
|
||||
* is corrupt or invalid
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace GeoIp2\Record;
|
|||
* @property string $name The name of the city based on the languages list
|
||||
* passed to the constructor. This attribute is returned by all end points.
|
||||
*
|
||||
* @property array $names A array map where the keys are language codes
|
||||
* @property array $names A array map where the keys are locale codes
|
||||
* and the values are names. This attribute is returned by all end points.
|
||||
*/
|
||||
class City extends AbstractPlaceRecord
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace GeoIp2\Record;
|
|||
* languages list passed to the constructor. This attribute is returned by
|
||||
* all end points.
|
||||
*
|
||||
* @property array $names An array map where the keys are language codes
|
||||
* @property array $names An array map where the keys are locale codes
|
||||
* and the values are names. This attribute is returned by all end points.
|
||||
*/
|
||||
class Continent extends AbstractPlaceRecord
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace GeoIp2\Record;
|
|||
* @property string $name The name of the country based on the languages list
|
||||
* passed to the constructor. This attribute is returned by all end points.
|
||||
*
|
||||
* @property array $names An array map where the keys are language codes and
|
||||
* @property array $names An array map where the keys are locale codes and
|
||||
* the values are names. This attribute is returned by all end points.
|
||||
*/
|
||||
class Country extends AbstractPlaceRecord
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace GeoIp2\Record;
|
|||
* @property string $name The name of the country based on the languages list
|
||||
* passed to the constructor. This attribute is returned by all end points.
|
||||
*
|
||||
* @property array $names An array map where the keys are language codes and
|
||||
* @property array $names An array map where the keys are locale codes and
|
||||
* the values are names. This attribute is returned by all end points.
|
||||
*
|
||||
* @property string $type A string indicating the type of entity that is
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace GeoIp2\Record;
|
|||
* list passed to the constructor. This attribute is returned by all end
|
||||
* points except Country.
|
||||
*
|
||||
* @property array $names An array map where the keys are language codes and
|
||||
* @property array $names An array map where the keys are locale codes and
|
||||
* the values are names. This attribute is returned by all end points except
|
||||
* Country.
|
||||
*/
|
||||
|
|
|
@ -58,7 +58,7 @@ class Client implements ProviderInterface
|
|||
*
|
||||
* @param int $userId Your MaxMind user ID
|
||||
* @param string $licenseKey Your MaxMind license key
|
||||
* @param array $languages List of language codes to use in name property
|
||||
* @param array $languages List of locale codes to use in name property
|
||||
* from most preferred to least preferred.
|
||||
* @param string $host Optional host parameter
|
||||
* @param object $guzzleClient Optional Guzzle client to use (to facilitate
|
||||
|
|
Loading…
Reference in New Issue
Block a user