Skip to content

Commit

Permalink
Add LINGUA_OPTIONS setting to lingua domain in i18n topic. Can …
Browse files Browse the repository at this point in the history
…be used for passing additional command line options to `pot-create`.
  • Loading branch information
rnixx committed May 25, 2024
1 parent ccfc8c4 commit a7cd5e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## 1.0a5 (unreleased)

- Add `LINGUA_OPTIONS` setting to `lingua` domain in `i18n` topic. Can be used
for passing additional command line options to `pot-create`.

- Perform `mxenv` domain related checks inside target to support setups
which install their own python environment.

Expand Down
6 changes: 5 additions & 1 deletion src/mxmake/topics/i18n/lingua.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
#:[setting.LINGUA_PLUGINS]
#:description = Python packages containing lingua extensions.
#:default =
#:
#:[setting.LINGUA_OPTIONS]
#:description = Command line options passed to `pot-create`
#:default =

##############################################################################
# lingua
Expand All @@ -34,7 +38,7 @@ PHONY: lingua-extract
lingua-extract: $(LINGUA_TARGET)
@echo "Extract messages"
@pot-create \
"$(LINGUA_SEARCH_PATH)" \
"$(LINGUA_SEARCH_PATH)" $(LINGUA_OPTIONS) \
-o "$(GETTEXT_LOCALES_PATH)/$(GETTEXT_DOMAIN).pot"

PHONY: lingua
Expand Down

0 comments on commit a7cd5e8

Please sign in to comment.