Please sign in to comment.
Forcing uniform format for in and ouput. The conversions for the `lossy` and `lossless` have been moved into the `Catalog` class' `read` and `write` methods. Removing support for querying multiple locales. Support for multiple locales is seldomly needed and adds up to the complexity and speed of the methods. Removing explitcly defined `Catalog` categories. To allow for easier extension and adding of categories checks if a certain category is supported have been moved into the `read` and `write` methods of the adapters. Renaming categories for templates and pages. By default all categories are treated as socalled _pages_. In order for being able to treat all categories in a uniform way. Adapters only have to return full pages and don't need to care about it's components and support for them. Selecting of _page_ ids. Parts of _pages_ can be selected by appending the id to select to the category: `validation.phone`. Renaming and making `Base::mergeMessageItem()` more generic. Renaming `Base::formatMessageItem()`. Upating lossless format to be as flexible as possible.
- Loading branch information...
Showing with 505 additions and 728 deletions.
- +4 −8 app/config/bootstrap.php
- +6 −5 libraries/lithium/console/command/g11n/Extract.php
- +62 −57 libraries/lithium/g11n/Catalog.php
- +8 −5 libraries/lithium/g11n/Message.php
- +27 −92 libraries/lithium/g11n/catalog/adapter/Base.php
- +77 −70 libraries/lithium/g11n/catalog/adapter/Cldr.php
- +37 −33 libraries/lithium/g11n/catalog/adapter/Code.php
- +74 −78 libraries/lithium/g11n/catalog/adapter/Gettext.php
- +18 −58 libraries/lithium/g11n/catalog/adapter/Memory.php
- +149 −259 libraries/lithium/tests/cases/g11n/CatalogTest.php
- +6 −9 libraries/lithium/tests/cases/g11n/MessageTest.php
- +32 −49 libraries/lithium/tests/cases/g11n/catalog/adapter/CodeTest.php
- +5 −5 libraries/lithium/tests/cases/g11n/catalog/adapter/GettextTest.php
Oops, something went wrong.