Translations: remove old non-working invoke tasks
import os
-from invoke import task, Collection
+from invoke import Collection, task
-import common.tasks
import common.dockerfiles.tasks
-
+import common.tasks
ROOT_PATH = os.path.dirname(__file__)
@@ -30,25 +29,6 @@ namespace.add_collection(
name='docker',
)
-# Localization tasks
-@task
-def push(ctx):
- """Rebuild and push the source language to Transifex"""
- with ctx.cd(os.path.join(ROOT_PATH, 'readthedocs')):
- ctx.run('django-admin makemessages -l en')
- ctx.run('tx push -s')
- ctx.run('django-admin compilemessages -l en')
-
-
-@task
-def pull(ctx):
- """Pull the updated translations from Transifex"""
- with ctx.cd(os.path.join(ROOT_PATH, 'readthedocs')):
- ctx.run('tx pull -f ')
- ctx.run('django-admin makemessages --all')
- ctx.run('django-admin compilemessages')
-
-
@task
def docs(ctx, regenerate_config=False, push=False):
"""Pull and push translations to Transifex for our docs"""
@@ -70,8 +50,6 @@ def docs(ctx, regenerate_config=False, push=False):
namespace.add_collection(
Collection(
- push,
- pull,
docs,
),
name='l10n',
