Releases: php-gettext/Gettext
Releases · php-gettext/Gettext
2.1.0
Translator::loadTranslations()accepts also arrays and instances ofTranslationsinstead only file paths.- Minor fixes and code styles
2.0
- Changed the license to MIT
- Use PSR-4 to autoload
- Renamed
Gettext\EntriestoGettext\Translations - Changed the API of extractors. Now they have the methods
fromFile()andfromString - Changed the API of generators. Now they have the methods
toFile()andtoString - Removed the ability to scan a folder. Now you have to provide a file or an array of files
- Added magic methods to
Gettext\Translationsto use extractors and generators easily - Improved the JsCode extractor
- New extractor for Blade templates (#27, thanks @eusonlito )
- And more bug files
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
- New mergeWith method, to merge two entries instances
- Added plural support #17 (thanks @esnoeijs)
Gettext\Translatoris instantiable instead static- Added magic method __clone in Entries to clone all translations
- In .po files, the headers
x-domainandlanguagechange the domain and language of the entries - Make the code psr-1 and psr-2 compilance
- Fixes some problems with Jed (thanks @leom)
- And more bugs fixed