Skip to content

Commit

Permalink
Merge pull request #1087 from carmenbianca/all-python-files-gettext
Browse files Browse the repository at this point in the history
Generate .pot with all reuse Python files
  • Loading branch information
carmenbianca authored Oct 10, 2024
2 parents ac9266d + a87cdcc commit 234f38f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ dist: clean-build clean-pyc clean-docs ## builds source and wheel package

.PHONY: create-pot
create-pot: ## generate .pot file
xgettext --add-comments --from-code=utf-8 --output=po/reuse.pot src/reuse/**.py
xgettext --add-comments --from-code=utf-8 --output=po/reuse.pot src/reuse/**/*.py
xgettext --add-comments --output=po/click.pot "${VIRTUAL_ENV}"/lib/python*/*-packages/click/**.py
msgcat --output=po/reuse.pot po/reuse.pot po/click.pot
for name in po/*.po; do \
Expand Down
2 changes: 1 addition & 1 deletion src/reuse/cli/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def handle_parse_result(


def spdx_identifier(text: str) -> Expression:
"""factory for creating SPDX expressions."""
"""Factory for creating SPDX expressions."""
try:
return _LICENSING.parse(text)
except (ExpressionError, ParseError) as error:
Expand Down

0 comments on commit 234f38f

Please sign in to comment.