Browse Source

Fixed updating the plugin translation catalog

Ignore the plugins folder for FlaskBB's translations.
sh4nks 10 years ago
parent
commit
d565b58e4e
2 changed files with 2 additions and 1 deletions
  1. 1 0
      babel.cfg
  2. 1 1
      manage.py

+ 1 - 0
babel.cfg

@@ -1,3 +1,4 @@
+[ignore: **/plugins/**]
 [python: **.py]
 [jinja2: **/templates/**.html]
 extensions=jinja2.ext.autoescape,jinja2.ext.with_

+ 1 - 1
manage.py

@@ -255,7 +255,7 @@ def update_plugin_translations(plugin):
     subprocess.call(["pybabel", "extract", "-F", "babel.cfg",
                      "-k", "lazy_gettext", "-o", "messages.pot",
                      plugin_folder])
-    subprocess.call(["pybabel", "update", "-i", "messages.pot"
+    subprocess.call(["pybabel", "update", "-i", "messages.pot",
                      "-d", translations_folder])
     os.unlink("messages.pot")