Giter VIP home page Giter VIP logo

intl-icu-data-tables's Introduction

PHP intl extension, ICU data tables

Live version is available at http://intl.rmcreative.ru/.

The project was created to simplify checking out various PHP intl / ICU / CLDR data which is mainly used in translation strings without the need to check different websites and search huge data tables for locale you need.

Instead you can enter locale code and get all the info for just that locale right away.

What's currently displayed

  • General locale info.
  • Plural rules. Also available via CLDR website.
  • Numbering schemas. Not available anywhere but ICU resource sources which aren't too user friendly to read.
  • Number formatting rules and data.
  • Currency data.
  • Language data.
  • Region data.
  • Zone data.
  • Unit data.

Are examples broken?

There are known issues with PHP intl extension regarding usage of named parameters such as {n}. Severity of issues depends on PHP and intl versions used. The primary goal of the project is to serve as info source for using with Yii 2.0 framework which provides wrapper around intl allowing usage of named parameters in all possible cases.

If you're not using Yii, try positional placeholders such as {0} instead.

DIRECTORY STRUCTURE

assets/             contains assets definition
config/             contains application configurations
controllers/        contains Web controller classes
runtime/            contains files generated during runtime
vendor/             contains dependent 3rd-party packages
views/              contains view files for the Web application
web/                contains the entry script and Web resources

REQUIREMENTS

The minimum requirement by this project that your Web server supports PHP 5.4.0.

INSTALLATION

  1. Download zip.
  2. Copy /config/csrf_key.php.example to /config/csrf_key.php. Paste validation key there.
  3. Run composer global require "fxp/composer-asset-plugin:~1.1.0" && composer install.
  4. Configure your webserver to point to /web.

intl-icu-data-tables's People

Contributors

cebe avatar dependabot[bot] avatar samdark avatar zelenin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

intl-icu-data-tables's Issues

Does not work with php7 or icu data > 4.8 ?

I just installed the app locally using php 7.0.3 and icu 52.1 and I get errors when rules are generated:

SiteController::getNumberThatSatisfiesCondition() gets called with arguments like 'v = 0 && i % 10 = 1 && i % 100 !...' which cause the eval to fail. seems the format of rules has changed in some version of icu data?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.