-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
12 add translations #258
12 add translations #258
Conversation
… code loaded as module
901c7df
to
8339ebf
Compare
…etch-map-tool into 12-add-translations
Dockerfile
Outdated
@@ -39,6 +39,9 @@ COPY --chown=smt:smt sketch_map_tool sketch_map_tool | |||
COPY --chown=smt:smt data/ data/ | |||
RUN python -m poetry install --no-ansi --no-interaction | |||
|
|||
# Compile translations | |||
RUN python3 -m poetry run pybabel compile -d sketch_map_tool/translations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RUN python3 -m poetry run pybabel compile -d sketch_map_tool/translations | |
RUN python -m poetry run pybabel compile -d sketch_map_tool/translations |
docs/development-setup.md
Outdated
@@ -61,7 +61,7 @@ celery --app sketch_map_tool.tasks worker --loglevel=INFO | |||
|
|||
```bash | |||
mamba activate smt | |||
flask --app sketch_map_tool/routes.py --debug run | |||
flask --app sketch_map_tool/routes.py --debug run -p 5000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flask --app sketch_map_tool/routes.py --debug run -p 5000 | |
flask --app sketch_map_tool/routes.py --debug run |
pyproject.toml
Outdated
# these dependencies are maintained by your local setup and have to be fixed for now, since poetry and (py)gdal packages can't work together | ||
# if you change these versions, please change them in development-setup.md, Dockerfile and .github/workflows/python.yml as well | ||
#numpy = "1.23.5" | ||
#pygdal = "3.4.1.10" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# these dependencies are maintained by your local setup and have to be fixed for now, since poetry and (py)gdal packages can't work together | |
# if you change these versions, please change them in development-setup.md, Dockerfile and .github/workflows/python.yml as well | |
#numpy = "1.23.5" | |
#pygdal = "3.4.1.10" |
sketch_map_tool/__init__.py
Outdated
@@ -1,8 +1,10 @@ | |||
import logging | |||
import os |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed?
esbuild.js
Outdated
@@ -16,7 +17,7 @@ require("esbuild") | |||
entryNames: "[dir]", // will name the result files by their folder names | |||
outbase: "./client-src", | |||
bundle: true, | |||
minify: true, | |||
// minify: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
sketch_map_tool/__init__.py
Outdated
flask_app.config.update( | ||
CELERY_CONFIG=CELERY_CONFIG, | ||
BABEL_DEFAULT_LOCALE="en", | ||
LANGUAGES={"en": "English", "de": "Deutsch", "pt": "Portuguese"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LANGUAGES={"en": "English", "de": "Deutsch", "pt": "Portuguese"}, | |
LANGUAGES={"en": "English", "de": "Deutsch"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add fr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and es
…etch-map-tool into 12-add-translations
👍 Nice to see that the Sketch Map Tool is still flourishing and continues to be improved! |
Great to hear from you. Yeah, the Sketch Map Tool is in active development :) |
CONTRIBUTING.md
Closes #367