Redgettext

Latest version: v3.4.2

Safety actively analyzes 630094 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

3.0

Changes
- Now using [`polib`](https://pypi.org/p/polib) to write the `.pot` files
- When the `--command-docstrings` flag is used, cogs in this form will be recognised:
py
class MyCog(commands.Cog, translator=_):
...

2.1

**[ADDED]**
- New option for file exclusion pattern

2.0

I've rewritten a lot of the script in this release. I'm gonna start to write a bit of a changelog but I'm likely to miss some things.

[ADDED]
- Ability to output multiple files during a runtime
- Ability to specify directories and recurse into them
- Ability to output files relative to CWD or to the files being translated

[CHANGED]
- Using `argparse` builtin lib over old `getopt` parsing
- Changed a lot of CLI options, removed redundant or irrelevant ones and added some new ones:
- Removed `--extract-all` as it was obselete
- Removed `--default-domain` as I have no interest in supporting change of defaults
- Removed `--escape` as I have no need to escape all non-ascii characters
- Removed `--keyword` as for now I have no need for custom keywords
- Removed `--no-default-keywords` w.r.t. the above
- Removed `--style` as I only need GNU style
- Removed `--exclude-file` as for now I don't need it
- Removed `--no-docstrings` as for now I don't need it
- Removed reading from stdin and stdout for now
- Renamed `--add-location` to `--include-context` to be more explicit
- Renamed `--no-location` to `--no-context` as above
- Changed `--docstrings` to have the original behaviour from pygettext
- Added `--command-docstrings` to do what `--docstrings` did in v1
- Added `--recursive` option, see [[ADDED]](added)
- Added `--relative-to-cwd` option, see [[ADDED]](added)
- Made defaults settings more catered towards Red's usage
- Made file discovery more naive, now just looks for any `.py` files

1.1

Updated from pygettext upstream.

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.