From 2368b7fe2366a19a1dc3b11d504e860619dc965c Mon Sep 17 00:00:00 2001 From: Bert Roelofsen <19684880+systeembeheerder@users.noreply.github.com> Date: Thu, 21 Nov 2024 13:04:02 +0100 Subject: [PATCH 1/2] Generate .mo files --- Makefile | 5 ++++- setup.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index aa0c8057..1dce6889 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,10 @@ dev: dev-requirements.txt prod: requirements.txt pip install -r requirements.txt -run: prod +compile-translations: + pybabel compile -d snappass/translations + +run: prod compile-translations FLASK_DEBUG=1 FLASK_APP=snappass.main NO_SSL=True venv/bin/flask run test: diff --git a/setup.py b/setup.py index 44679724..ed2af90c 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ long_description=(open('README.rst').read() + '\n\n' + open('AUTHORS.rst').read()), url='http://github.com/Pinterest/snappass/', - install_requires=['Flask', 'redis', 'cryptography'], + install_requires=['Flask', 'redis', 'cryptography', 'flask-babel'], license='MIT', author='Dave Dash', author_email='dd+github@davedash.com', From 2f210c01d37f4a469bcd2ead78e2870205e7bf3e Mon Sep 17 00:00:00 2001 From: Bert Roelofsen <19684880+systeembeheerder@users.noreply.github.com> Date: Fri, 6 Dec 2024 12:09:44 +0100 Subject: [PATCH 2/2] fix tab --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1dce6889..b5297328 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ compile-translations: pybabel compile -d snappass/translations run: prod compile-translations - FLASK_DEBUG=1 FLASK_APP=snappass.main NO_SSL=True venv/bin/flask run + FLASK_DEBUG=1 FLASK_APP=snappass.main NO_SSL=True venv/bin/flask run test: PYTHONPATH=snappass venv/bin/nosetests -s tests