2017 © Pedro Peláez
 

lithium-library li3_cldr

A li₃ plugin adding support for querying Unicode's CLDR.

image

unionofrad/li3_cldr

A li₃ plugin adding support for querying Unicode's CLDR.

  • Monday, July 30, 2018
  • by davidpersson
  • Repository
  • 8 Watchers
  • 7 Stars
  • 1,993 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 11 Versions
  • 4 % Grown

The README.md

li3_cldr

From the CLDR project site:, (*1)

The Unicode CLDR provides key building blocks for software to support the world's languages, with the largest and most extensive standard repository of locale data available. This data is used by a wide spectrum of companies for their software internationalization and localization, adapting software to the conventions of different languages [...], (*2)

The core g11n implementation in Lithium already utilizes the CLDR indirectly through the intl php extension, which makes use of ICU, which in turn is based upon the data provided by the CLDR. So at first sight there seems to be no need to access the CLDR directly. As more and more features are added to the intl extension it does not provide a way to access certain data yet. With the CLDR Catalog adapter contained in this plugin you can query the CLDR for this data. Currently there's support for:, (*3)

  • Postal code validation rules for most countries (validation.postalCode).
  • List and translation of currencies (currency).
  • List and translation of languages (language).
  • List and translation of territories (territory).
  • List and translation of scripts (script).

Installation

Clone the project into your libraries directory., (*4)

git clone git@github.com:UnionOfRAD/li3_cldr.git /path/to/project/libraries/li3_cldr

Make your Lithium app aware of the plugin by adding the following line to your bootstrap/libraries.php file., (*5)

Libraries::add('li3_cldr');

Resource Dependencies

Currently the plugin does not contain the actual CLDR data. We must take the following steps to install it. Download the ZIP file of the latest release, unpack it into a temporary directory and move the common directory into place., (*6)

curl http://unicode.org/Public/cldr/1.8.0/core.zip -o core.zip
unzip core.zip -d /tmp

mv /tmp/common /path/to/project/libraries/li3_cldr/resources/g11n
# ... or ...
mv /tmp/common /path/to/project/app/resource/g11n/cldr

The Versions

30/07 2018

1.0.x-dev

1.0.9999999.9999999-dev http://li3.me

A li₃ plugin adding support for querying Unicode's CLDR.

  Sources   Download

BSD-3-Clause

The Requires

 

php unicode g11n lithium li3 cldr

18/10 2017

dev-master

9999999-dev http://li3.me

A Lithium plugin adding support for querying Unicode's CLDR.

  Sources   Download

BSD-3-Clause

The Requires

 

php unicode g11n lithium li3 cldr

18/10 2017

v1.0.3

1.0.3.0 http://li3.me

A Lithium plugin adding support for querying Unicode's CLDR.

  Sources   Download

BSD-3-Clause

The Requires

 

php unicode g11n lithium li3 cldr

08/04 2017

v1.0.2

1.0.2.0 http://li3.me

A Lithium plugin adding support for querying Unicode's CLDR.

  Sources   Download

BSD-3-Clause

The Requires

 

php unicode g11n lithium li3 cldr

20/06 2016

v1.0.1

1.0.1.0 http://li3.me

A Lithium plugin adding support for querying Unicode's CLDR.

  Sources   Download

BSD-3-Clause

The Requires

 

php unicode g11n lithium li3 cldr

01/06 2016

v1.0.0

1.0.0.0 http://li3.me

A Lithium plugin adding support for querying Unicode's CLDR.

  Sources   Download

BSD-3-Clause

The Requires

 

php unicode g11n lithium li3 cldr

05/09 2015

v1.0.0-rc3

1.0.0.0-RC3 http://li3.me

A Lithium plugin adding support for querying Unicode's CLDR.

  Sources   Download

BSD-3-Clause

The Requires

 

php unicode g11n lithium li3 cldr

13/08 2015

v1.0.0-rc2

1.0.0.0-RC2 http://li3.me

A Lithium plugin adding support for querying Unicode's CLDR.

  Sources   Download

BSD-3-Clause

The Requires

 

php unicode g11n lithium li3 cldr

13/08 2015

v1.0.0-rc1

1.0.0.0-RC1 http://li3.me

A Lithium plugin adding support for querying Unicode's CLDR.

  Sources   Download

BSD-3-Clause

The Requires

 

php unicode g11n lithium li3 cldr

31/01 2015

v1.0.0-beta2

1.0.0.0-beta2 http://li3.me

A Lithium plugin adding support for querying Unicode's CLDR.

  Sources   Download

BSD-3-Clause

The Requires

 

php unicode g11n lithium li3 cldr

16/12 2014

v1.0.0-beta

1.0.0.0-beta http://li3.me

A Lithium plugin adding support for querying Unicode's CLDR.

  Sources   Download

BSD-3-Clause

The Requires

 

php unicode g11n lithium li3 cldr