- Put auto imports after the docstring to avoid breaking doctests.
- In multilingual mode, ensure that all variables from the original f-strings appear in the closure.
- Fixed glitches in writing of translation files.
- Set the default encoding to utf-8 rather than locale.
- Support for switching between different languages (provisional, may change)
- Drop support for Python 3.8.
- Jaml reader crashed on empty files instead of reporting an error
- Jaml write crashed on empty strings
- Support (= test in CI) Python 3.11 and 3.12
- Add option for in-place translation
- After changed in 0.2.3, files without messages were inadvertently included in message files. This resulted in broken .jaml files.
- (Compatibility breking change) Remove support for yaml-style (
|
) blocks in jaml. Use multiline (single-)quoted strings instead. - Arguments
-s
and-d
are now required; trubar no longer falls back to current directory - If default configuration file is not found in current directory, Trubar also searches the directory with messages and source directory.
.trubarconfig
is now a primary default name.
collect
with--pattern
now keeps original messages from non-matching when updating an existing file- Replaces Windows-style backslashes with slashes in jaml keys
- Fix message supression in
collect
collect
can now update existing files, reducing the need formerge
- Minor reorganization of command line arguments
- A simplified proprietary variation of .jaml with round-trip comments and less need for quotes
- New action
stat
- Different verbosity levels for
translate
action - Better error messages about malformed translations
- New option
exclude-pattern
in config files instead of always skipping files whose names begin with "test_". - New argument
--static
instead of having a path for static files
- Better testing before introducing the f-prefix: if the original already included braces, the f-prefix is not longer added
- Fixed a bug occuring when paths ended with a trailing slash
- Report an error when the source directory does not exist
- Strings that are not translated are no longer reported as rejected in merge