mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[translations] generating missing strings (#3577)
This commit is contained in:
committed by
GitHub
parent
e95132ddc3
commit
e9804aedff
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user