Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,20 @@ new language dictionary, run the following command:
pybabel init -i ./babel/messages.pot -d superset/translations -l es

Then it's a matter of running the statement below to gather all stings that
need translation
need translation:

fabmanager babel-extract --target superset/translations/
pybabel extract -F ./babel/babel.cfg -k __ -k _ -o ./babel/messages.pot .


And update the extracted translations to `.po` files that translated already:

pybabel update -N -i ./babel/messages.pot -d ./superset/translations -l es

You can then translate the strings gathered in files located under
`superset/translation`, where there's one per language. For the translations
to take effect, they need to be compiled using this command:

fabmanager babel-compile --target superset/translations/
pybabel compile -d ./superset/translations/


## Adding new datasources
Expand Down