[dev-gnome-web/wip/fredp/i18n] manage: add docstring for management commands
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dev-gnome-web/wip/fredp/i18n] manage: add docstring for management commands
- Date: Thu, 28 Jan 2016 13:42:28 +0000 (UTC)
commit 1f5ad76bed89a4be86fd17fa6f57116ec0367f93
Author: Frédéric Péters <fpeters 0d be>
Date: Thu Jan 28 14:41:07 2016 +0100
manage: add docstring for management commands
manage.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/manage.py b/manage.py
index c30d363..0f4a6e2 100755
--- a/manage.py
+++ b/manage.py
@@ -61,6 +61,9 @@ def docs():
@manager.command
def extract_translations():
+ '''
+ Extracts translations from templates and code into a messages catalog.
+ '''
call(['pybabel', 'extract', '-F', 'babel.cfg', '-o', 'messages.pot', '.'])
for language in app.config['LANGUAGES']:
if language == 'en':
@@ -75,6 +78,9 @@ def extract_translations():
@manager.command
def compile_translations():
+ '''
+ Build translations.
+ '''
return call(['pybabel', 'compile', '-d', 'server/translations/'])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]