Skip to content

Releases: Cog-Creators/redgettext

v3.4.2

21 Feb 15:16

Choose a tag to compare

  • fixed one last attribute error left from v3.4 release

v3.4.1

21 Feb 15:06

Choose a tag to compare

  • fixed attribute and name errors that were introduced in the previous release

v3.4

20 Feb 22:56

Choose a tag to compare

  • Added support for detecting call to gettext in f-strings

v3.3

20 Feb 22:26

Choose a tag to compare

  • fixed TypeError when excluded files option wasn't provided
  • msgids are no longer incorrectly double-escaped
  • fixed encoding of the script

Real date of release: 2020-07-22

v3.2

02 Jul 02:15

Choose a tag to compare

  • Allow --excluded-files to be specified multiple times, thanks @retke! (#2)

v3.1

07 Jul 02:29

Choose a tag to compare

Changes

  • Added --omit-empty flag to skip writing empty .pot files.

v3.0

04 Jul 07:42

Choose a tag to compare

Changes

  • Now using polib to write the .pot files
  • When the --command-docstrings flag is used, cogs in this form will be recognised:
    class MyCog(commands.Cog, translator=_):
        ...

v2.1

21 Aug 00:29

Choose a tag to compare

[ADDED]

  • New option for file exclusion pattern

v2.0

15 Aug 09:56

Choose a tag to compare

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 --relative-to-cwd option, see [ADDED]
  • Made defaults settings more catered towards Red's usage
  • Made file discovery more naive, now just looks for any .py files

v1.1

15 Aug 02:40

Choose a tag to compare

Updated from pygettext upstream.