# Babel translation how-to

- Extract strings to translate:
  pybabel extract -F babel.cfg -o papersize.pot .

- Update French translations catalog (replace update with init for first translation of a new language)
  pybabel update -i papersize.pot -d papersize/translations --domain papersize -l fr

- Manually update translations
  vim papersize/translations/fr/LC_MESSAGES/papersize.po

- Compile translations
  pybabel compile -d papersize/translations --domain papersize
