Skip to content

Commit c780968

Browse files
authored
Merge pull request #21 from super-buster/patch-1
Update 第十三章:国际化和本地化.md
2 parents 951125b + 18cb593 commit c780968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/第十三章:国际化和本地化.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def get_locale():
277277
如果在添加`_()`包装器时错过了一些文本,则会出现另一种常见情况。 在这种情况下,你会发现你错过的那些文本将保持为英文,因为Flask-Babel对他们一无所知。 当你检测到这种情况时,会想要将其用`_()``_l()`包装,然后执行更新过程,这包括两个步骤:
278278

279279
```
280-
(venv) $ pybabel extract -f babel.cfg -k _l -o messages.pot .
280+
(venv) $ pybabel extract -F babel.cfg -k _l -o messages.pot .
281281
(venv) $ pybabel update -i messages.pot -d app/translations
282282
```
283283

0 commit comments

Comments
 (0)