diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 680f4f198ccc9..20ffa2414c782 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 ``` diff --git a/contrib/docker/docker-init.sh b/contrib/docker/docker-init.sh index 0e8b87d18956d..dbcdefce9a46d 100755 --- a/contrib/docker/docker-init.sh +++ b/contrib/docker/docker-init.sh @@ -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