Skip to content

Version 1.3

Compare
Choose a tag to compare
@iafan iafan released this 01 Feb 21:00
· 227 commits to master since this release

This version improves multiple parsers, adds support for newer Qt .TS file format and nested parsing of HTML inside JSON, introduces a new rewrite_source callback and offers numerous other improvements across the board. Here's the full changelog:

  • Fixed a bug when extra item comment would be appended only if the original comment is not blank
  • In interactive console mode, serge help tries to use a pager, e.g. less or more (#39)
  • In POT parser, bypass non-standard comments that other tools may produce (#41)
  • Add summary at the end of the sync command: how many jobs and configs were processed, how many configs and jobs were skipped due to errors, and how many jobs ended abnormally. This will help easily identify issues both from the command line and when analyzing logs
  • JSON parser now supports parsing nested HTML-formatted values (like XML parser already does)
  • PHP/XHTML parser now treats bare HTML strings (with no wrapper tag) as translatable by default, except when they contain PHP tags. This is useful when parsing nested HTML snippets inside XML or JSON
  • Parsing errors in nested HTML values inside JSON or XML are now exposed to the parent parser for proper error reporting
  • test-parser command now accepts --as-object flag to produce a more verbose and self-descriptive output (an array of objects)
  • JSON and XML parsers can now have a nested HTML parser configured via html_parser parameter (one can specify both parser name and its parameters). If this parameter is not provided, parsers fall back to a previous behavior by using parse_php_xhtml with the default parameters as a nested parser
  • New rewrite_source callback to rewrite source strings on the fly before they are passed through the translation pipeline
  • If the parser does not return key names for serge import, it is now possible to use --disambiguate-keys to auto-generate unique key names and do the import
  • Qt Linguist TS Parser has been rewritten as a proper validating XML parser. It now also extracts context name, comments, and supports import mode
  • Translations containing just one '0' symbol are now properly saved to the database
  • Rendering of units with notices/warnings/errors is now fixed in serge import HTML reports
  • parse_js plugin now correctly handles lines with end-of-line comments containing quotes.
  • Git sync plugin now supports clone_params configuration parameter that allows one to pass extra parameters on initial project checkout (useful for e.g. shallow cloning).
  • .PO serializer now normalizes line endings prior to parsing the file. This allows one to import .PO files with Windows-style line endings.