All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Previous releases are documented in github releases
4.5.0 - 2018-04-23
- Support for disabled translations
- Added php-7.2 to travis
- Fixed po tests on bigendian #159
- Improved comment estraction #166
- Fixed incorrect docs to dn__ function #170
- Ignored phpcs.xml file on export #168
- Improved
@methoddocs inTranslations#175
4.4.4 - 2018-02-21
- Changed the comment extraction to be compatible with gettext behaviour: the comment must be placed in the line preceding the function #161.
- Validate eval input from plural forms #156
4.4.3 - 2017-08-09
- Handle
NULLarguments on extract entries in php. For exampledn__(null, 'singular', 'plural'). - Fixed the
PhpCodeandJsCodeextractors that didn't extractdn__anddngettextentries #155. - Fixed the
PhpCodeandJsCodeextractors that didn't extractdnpgettextcorrectly.
4.4.2 - 2017-07-27
- Clone the translations in
Translations::mergeWithto prevent that the translation is referenced in both places. #152 - Fixed escaped quotes in the javascript extractor #154
4.4.1 - 2017-05-20
- Fixed a bug where the options was not passed correctly to the merging Translations object #147
- Unified the plural behaviours between PHP gettext and Translator when the plural translation is unknown #148
- Removed the deprecated function
create_function()and useeval()instead
4.4.0 - 2017-05-10
- New option
noLocationto po generator, to omit the references #143 - New options
delimiter,enclosureandescape_charto Csv and CsvDictionary extractors and generators #145 - Added the missing
dn__()function #146
- Improved the code style including php_codesniffer in development
4.3.0 - 2017-03-04
- Added support for named placeholders (using
strtr). For example:__('Hello :name', [':name' => 'World']);
- Added support for Twig v2
- New function
BaseTranslator::includeFunctions()to include the functions file without register any translator
- Fixed a bug related with the javascript source extraction with single quotes