Skip to content

Releases: php-gettext/Gettext

2.1.0

21 Nov 13:10

Choose a tag to compare

  • Translator::loadTranslations() accepts also arrays and instances of Translations instead only file paths.
  • Minor fixes and code styles

2.0

20 Nov 11:34

Choose a tag to compare

2.0
  • Changed the license to MIT
  • Use PSR-4 to autoload
  • Renamed Gettext\Entries to Gettext\Translations
  • Changed the API of extractors. Now they have the methods fromFile() and fromString
  • Changed the API of generators. Now they have the methods toFile() and toString
  • Removed the ability to scan a folder. Now you have to provide a file or an array of files
  • Added magic methods to Gettext\Translations to use extractors and generators easily
  • Improved the JsCode extractor
  • New extractor for Blade templates (#27, thanks @eusonlito )
  • And more bug files

1.1.5

22 Oct 16:09

Choose a tag to compare

Improvements in .mo file parsing #25

1.1.4

21 Oct 15:09

Choose a tag to compare

Fixed Entries::mergeWidth() #24

1.1.3

15 Oct 14:26

Choose a tag to compare

Fixed the unicode context glue in Translator and PhpArray #23

1.1.2

14 Aug 14:05

Choose a tag to compare

Fixed warnings parsing php code #22

1.1.1

12 Aug 14:54

Choose a tag to compare

Fixed #21

1.1.0

24 Jul 16:16

Choose a tag to compare

  • New mergeWith method, to merge two entries instances
  • Added plural support #17 (thanks @esnoeijs)
  • Gettext\Translator is instantiable instead static
  • Added magic method __clone in Entries to clone all translations
  • In .po files, the headers x-domain and language change 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

1.0.3

20 Feb 17:45

Choose a tag to compare

  • Wrong empty line skipping logic in .po extractor #14
  • Fixed function name at Gettext\Extractors\Po #16

1.0.2

26 Dec 11:19

Choose a tag to compare

  • bugfixes #13
  • Added basic tests (and added to travis)