Go to file
2024-03-06 09:40:12 +01:00
static Multiple visual adaptations. 2024-03-06 09:40:12 +01:00
templates Multiple visual adaptations. 2024-03-06 09:40:12 +01:00
translations Multiple visual adaptations. 2024-03-06 09:40:12 +01:00
.gitignore Updated index page + Added about and result pages 2023-12-05 15:26:57 +01:00
app.py Multiple visual adaptations. 2024-03-06 09:40:12 +01:00
babel.cfg Updated visuals and expanded website. 2024-02-19 15:33:19 +01:00
docker-compose.yml Added --compare and --query 2024-02-20 10:59:58 +01:00
Dockerfile Updated visuals and expanded website. 2024-02-19 15:33:19 +01:00
gui.py Initial commit 2023-10-04 17:24:40 +02:00
LICENSE Added licence 2023-12-06 16:38:40 +01:00
messages.pot Multiple visual adaptations. 2024-03-06 09:40:12 +01:00
README.md Added --compare and --query 2024-02-20 10:59:58 +01:00
requirements.txt Multiple visual adaptations. 2024-03-06 09:40:12 +01:00
setup.py Updated visuals and expanded website. 2024-02-19 15:33:19 +01:00

Translations

Create .pot file

pybabel extract -F babel.cfg -o messages.pot .

Create language .po files

pybabel init -i messages.pot -d translations -l en pybabel init -i messages.pot -d translations -l sl

Compile changes

pybabel compile -d translations

Update commands

Install gettext (sudo apt install gettext)

pybabel extract -F babel.cfg -o messages.pot .
msgmerge translations/sl/LC_MESSAGES/messages.po messages.pot -o translations/sl/LC_MESSAGES/messages.po
msgmerge translations/en/LC_MESSAGES/messages.po messages.pot -o translations/en/LC_MESSAGES/messages.po

# check and delete fuzzy in .po files
pybabel compile -d translations

Deployment

docker build -t stark-web . docker run -p 8080:8080 stark-web