def compile_translations(include_plugins=False):
 translations_folder = os.path.join(current_app.root_path, 'translations')
 subprocess.call(['pybabel', 'compile', '-d', translations_folder])
 if include_plugins:
  for plugin in plugin_manager.all_plugins:
   compile_plugin_translations(plugin)

def compile_translations ( include_plugins = False ) : translations_folder = os . path . join ( current_app . root_path , 'translations' ) subprocess . call ( [ 'pybabel' , 'compile' , '-d' , translations_folder ] ) if include_plugins : for plugin in plugin_manager . all_plugins : compile_plugin_translations ( plugin )
compiles all translations .