FFDN ISP Database

Gu1 13405f2a77 Add missing dependency: isp-format, update TODO 11 years ago
ffdnispdb 7daa937ecc i18n: Translate a missing sentence, use gender-neutral language 11 years ago
.gitignore e0b442a607 Add vim swp files to the list of ignored files 11 years ago
AUTHORS b7232bed2a Add a language selector in the navigation bar 11 years ago
LICENSE 6871cede74 Add a 3-clause BSD License in the LICENSE file 11 years ago
README.md cc26ab6296 Fix manage db create and runserver 11 years ago
TODO 13405f2a77 Add missing dependency: isp-format, update TODO 11 years ago
app_prod.py ab6fece2f9 Add an app file to use in production 11 years ago
babel.cfg 8bbdd2c9f7 Implement javascript i18n using a jinja tempate, add Flask-Cache for caching 11 years ago
manage.py cc26ab6296 Fix manage db create and runserver 11 years ago
requirements.txt 13405f2a77 Add missing dependency: isp-format, update TODO 11 years ago
schema.sql ad5dd37db4 Add labels 12 years ago
settings_dev.py 44978d076d Switch to the Application Factory pattern and Blueprints 11 years ago
settings_prod.py.dist 90bcb4d1b9 Update TODO, cosmetic changes to the map, add an empty API page 11 years ago
test_ffdnispdb.py ab6fece2f9 Add an app file to use in production 11 years ago
variables.less 2c57a65651 Add a search input in navbar and a hover effect on nav buttons 11 years ago

README.md

ffdnispdb

ffdnispdb is a website designed to display all the ISPs implementing the ispschema specification.

How to deploy & use

Preferably in a virtualenv, run:

pip install -r requirements.txt
python manage.py db create
python manage.py runserver

How to translate

First, generate the template:

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

Then initialize the catalog for the language you want:

pybabel init -i messages.pot -d ffdnispdb/translations -l XX

(where XX is the language code)

Once you're done translating, run:

pybabel compile -d ffdnispdb/translations

To update the catalog with the latest strings:

pybabel extract -F babel.cfg -o messages.pot ffdnispdb
pybabel update -i messages.pot -d ffdnispdb/translations