Skip to content

Commit 25dec88

Browse files
committed
readme: add the command to only update a specific language
1 parent 9f20657 commit 25dec88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/readme_generator/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ source venv/bin/activate
5555
# Extract the english sentences from the code, needed if you modified it
5656
pybabel extract --ignore-dirs venv -F babel.cfg -o messages.pot .
5757

58-
# If working on a new locale: initialize it (in this example: fr)
58+
# If working on a new locale: initialize it: (in this example: fr)
5959
pybabel init -i messages.pot -d translations -l fr
6060
# Otherwise, update the existing .po:
6161
pybabel update -i messages.pot -d translations
62+
# To update only a specific language: (in this example: fr)
63+
pybabel update -i messages.pot -d translations -l fr
6264

6365
# ... translate stuff in translations/<lang>/LC_MESSAGES/messages.po
6466
# re-run the 'update' command to let Babel properly format the text

0 commit comments

Comments
 (0)