| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent adf715c commit 66820a5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -68,15 +68,15 @@ def update_catalogs(locale: str): | |||
| 68 | 68 | """Update translations from existing message catalogs""" | |
| 69 | 69 | cmd = ["pybabel", "update", "-i", POT_FILE, "-d", LOCALES_DIR] | |
| 70 | 70 | if locale != "": | |
| 71 | - cmd.append(["-l", locale]) | ||
| 71 | + cmd.extend(["-l", locale]) | ||
| 72 | 72 | subprocess.run(cmd, check=True) | |
| 73 | 73 | ||
| 74 | 74 | ||
| 75 | 75 | def compile_catalogs(locale: str): | |
| 76 | 76 | """Compile existing message catalogs""" | |
| 77 | 77 | cmd = ["pybabel", "compile", "-d", LOCALES_DIR] | |
| 78 | 78 | if locale != "": | |
| 79 | - cmd.append(["-l", locale]) | ||
| 79 | + cmd.extend(["-l", locale]) | ||
| 80 | 80 | subprocess.run(cmd, check=True) | |
| 81 | 81 | ||
| 82 | 82 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments