Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
.env
.venv
*.egg-info
*.mo
*.pyc
*.sqlite3
build
Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ database before running bootstrap or `make migrate` and `make test` will fail.
# to get mysql client to install
# export LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib"
make bootstrap
# If you update locale .po files, compile messages before running/testing
make compilemessages
# If you want to enable DEBUG (and development mode)
echo 1 > ~/.config/promgen/DEBUG

Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ COPY promgen/tests/examples/promgen.yml /etc/promgen/promgen.yml

WORKDIR /usr/src/app
RUN pip install --no-cache-dir -e .
RUN set -ex \
&& apk add --no-cache gettext \
&& SECRET_KEY=1 promgen compilemessages \
&& apk del gettext

USER promgen
EXPOSE 8000
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ ruff-check-format: $(RUFF_BIN)
migrate: $(APP_BIN)
$(APP_BIN) migrate

.PHONY: compilemessages
## Django: Compile locale messages (.po -> .mo)
compilemessages: $(APP_BIN)
$(APP_BIN) compilemessages

.PHONY: run
## Django: Run development server
run: migrate
Expand Down
Binary file removed promgen/locale/ja/LC_MESSAGES/django.mo
Binary file not shown.
Loading