Skip to content

Commit

Permalink
Makefile: Fix .tx/config patch
Browse files Browse the repository at this point in the history
  • Loading branch information
rffontenelle committed May 14, 2024
1 parent 11990b4 commit 3d04303
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ tx-config: pot tx-install
--pot-dir pot
@mkdir -p .tx
@sed $(CPYTHON_DIR)/$(LOCALE_DIR)/.tx/config \
-e "s|^file_filter = .*|&\nx&|;" \
-e "s|^source_file = pot/|source_file = $(LOCALE_RELATIVE)/pot/|" \
-e "s|^file_filter *= .*|&\nx&|;" \
-e "s|= pot/|= ../../pot/|" \
> .tx/config
@sed -i .tx/config \
-e "s|^xfile_filter = ./<lang>/LC_MESSAGES/|trans.$(LANGUAGE) = |;"
-e "s|^xfile_filter *= ./<lang>/LC_MESSAGES/|trans.$(LANGUAGE) = |;"


# tx-install: Install Transifex CLI client if not installed yet. Installs
Expand Down

0 comments on commit 3d04303

Please sign in to comment.