Skip to content

v3.0.0

Compare
Choose a tag to compare
@lukasgeiter lukasgeiter released this 17 Jul 09:46
· 60 commits to master since this release

Breaking Changes

  • The POT output format has changed a bit
    There have been a few improvements to the output - see Improvements below.
  • toPotString has been renamed to getPotString
  • toGettextMessages has been removed
    Use the new methods instead: getMessages, getContexts and getMessagesByContext

Features

  • Support for setting PO headers
  • New methods for retrieving extracted messages: getMessages, getContexts and getMessagesByContext

Improvements

  • By default the Content-Type PO header is set to text/plain; charset=UTF-8
  • Plurals have a msgstr[1] "" in the POT output #5
  • File references are sorted alphabetically in the POT output

Bugfixes

  • Prevent &, < and > from being escaped as HTML entities
  • Preserve messages with empty string as text