Skip to content

Commit

Permalink
[translations] generating missing strings (#3577)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Oct 4, 2017
1 parent e95132d commit e9804ae
Show file tree
Hide file tree
Showing 17 changed files with 15,416 additions and 4,431 deletions.
6 changes: 1 addition & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,6 @@ navigation bar.
'zh': {'flag': 'cn', 'name': 'Chinese'},
}

We need to extract the string to be translated, run the following command:

pybabel extract -F ./babel/babel.cfg -k _ -k __ -k t -k tn -k tct -o ./babel/messages.pot .

As per the [Flask AppBuilder documentation] about translation, to create a
new language dictionary, run the following command:

Expand All @@ -356,7 +352,7 @@ new language dictionary, run the following command:
Then it's a matter of running the statement below to gather all strings that
need translation

fabmanager babel-extract --target superset/translations/
fabmanager babel-extract --target superset/translations/ -k _ -k __ -k t -k tn -k tct

You can then translate the strings gathered in files located under
`superset/translation`, where there's one per language. For the translations
Expand Down
Loading

0 comments on commit e9804ae

Please sign in to comment.