Skip to content
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

Contributing with new language #409

Open
kjette opened this issue Nov 27, 2023 · 1 comment
Open

Contributing with new language #409

kjette opened this issue Nov 27, 2023 · 1 comment

Comments

@kjette
Copy link

kjette commented Nov 27, 2023

Hello,

Just wanted to drop a comment regarding creating a new lang file, we used the following command:

docker-compose run --rm app django-admin makemessages -l sv

and gives the following output:

# docker-compose run --rm app django-admin makemessages -l sv
Creating chief_test_app_run ... done
processing locale sv

But I searched everywhere, and seem not to find any files that should be created.

The "app" part from the docker-compose.yml file is as follows:

app:
image: chiefonboarding/chiefonboarding:latest
restart: always
volumes:
- /var/chiefonboarding/back/settings.py:/app/back/settings.py
ports:
- "8888:8000"
environment:
- SECRET_KEY=MASKED
- DATABASE_URL=MASKED
- .... MORE STUFF MASKED
depends_on:
- db

Is it needed to specify some more volumes specific to this?
We are running this behind our own caddy btw, so that is why we used your docker-compose without caddy.

@GDay
Copy link
Member

GDay commented Nov 27, 2023

Hi! Adding a language should be done locally (development setup) and then create a PR with the translations, but you could use DeepL or similar to automate that.

You can't really run the command in production as it would create an empty language file and it therefore doesn't really do much (besides that, the translation needs to be added to the settings to be able to select it).

Let me know if you have questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants