[docs] Fix, deprecate fabmanager cli (#7660)

This commit is contained in:
Daniel Vaz Gaspar 2019-06-07 06:15:00 +01:00 committed by Maxime Beauchemin
parent d62c37b895
commit de9f61e934
2 changed files with 4 additions and 4 deletions

View File

@ -319,7 +319,7 @@ pip install -r requirements-dev.txt
pip install -e .
# Create an admin user in your metadata database
fabmanager create-admin --app superset
flask fab create-admin --app superset
# Initialize the database
superset db upgrade
@ -594,7 +594,7 @@ LANGUAGES = {
### Extracting new strings for translation
```bash
fabmanager babel-extract --target superset/translations --output superset/translations/messages.pot --config superset/translations/babel.cfg -k _ -k __ -k t -k tn -k tct
flask fab babel-extract --target superset/translations --output superset/translations/messages.pot --config superset/translations/babel.cfg -k _ -k __ -k t -k tn -k tct
```
You can then translate the strings gathered in files located under
@ -607,7 +607,7 @@ For the translations to take effect:
```bash
# In the case of JS translation, we need to convert the PO file into a JSON file, and we need the global download of the npm package po2json.
npm install -g po2json
fabmanager babel-compile --target superset/translations
flask fab babel-compile --target superset/translations
# Convert the en PO file into a JSON file
po2json -d superset -f jed1.x superset/translations/en/LC_MESSAGES/messages.po superset/translations/en/LC_MESSAGES/messages.json
```

View File

@ -18,7 +18,7 @@
set -ex
# Create an admin user (you will be prompted to set username, first and last name before setting a password)
fabmanager create-admin --app superset
flask fab create-admin --app superset
# Initialize the database
superset db upgrade