Exemple #1
0
def compile_po(full_file_path):
    file_name = os.path.basename(full_file_path)
    dir_name = os.path.dirname(full_file_path)

    compile_command = Command()
    compile_command.verbosity = 0
    compile_command.compile_messages([(dir_name, file_name)])
Exemple #2
0
def compile_po(full_file_path):
    file_name = os.path.basename(full_file_path)
    dir_name = os.path.dirname(full_file_path)

    compile_command = Command()
    compile_command.verbosity = 0
    compile_command.compile_messages([(dir_name, file_name)])
Exemple #3
0
 def run(self):
     _install_lib.run(self)
     from django.core.management.commands.compilemessages \
         import Command
     os.chdir("bingo")
     cmd = Command()
     cmd.handle(verbosity=0, exclude=[], locale=[])
     os.chdir("..")
Exemple #4
0
    def run(self):
        from django.core.management.commands.compilemessages import Command as CompileMessages

        curdir = os.getcwd()
        os.chdir(os.path.join(os.path.dirname(__file__), 'marcus'))
        cmd = CompileMessages()
        cmd.stdout = sys.stdout
        cmd.stderr = sys.stderr
        cmd.handle(verbosity=4)
        os.chdir(curdir)
Exemple #5
0
    def run(self):
        from django.core.management.commands.compilemessages import Command as CompileMessages

        curdir = os.getcwd()
        os.chdir(os.path.join(os.path.dirname(__file__), 'marcus'))
        cmd = CompileMessages()
        cmd.stdout = sys.stdout
        cmd.stderr = sys.stderr
        cmd.handle(verbosity=4)
        os.chdir(curdir)
#!/usr/bin/env python
from setuptools import setup, find_packages
from os import path
import codecs
import os
import re
import sys


# When creating the sdist, make sure the django.mo file also exists:
if 'sdist' in sys.argv or 'develop' in sys.argv:
    try:
        os.chdir('fluent_dashboard')

        from django.core.management.commands.compilemessages import Command
        command = Command()
        command.execute(stdout=sys.stderr, verbosity=1)
    except ImportError:
        # < Django 1.7
        from django.core.management.commands.compilemessages import compile_messages
        compile_messages(sys.stderr)
    finally:
        os.chdir('..')


def read(*parts):
    file_path = path.join(path.dirname(__file__), *parts)
    return codecs.open(file_path, encoding='utf-8').read()


def find_version(*parts):
#!/usr/bin/env python
from setuptools import setup, find_packages
from os import path
import codecs
import os
import re
import sys


# When creating the sdist, make sure the django.mo file also exists:
if 'sdist' in sys.argv or 'develop' in sys.argv:
    try:
        os.chdir('polymorphic_tree')

        from django.core.management.commands.compilemessages import Command
        command = Command()
        command.execute(stdout=sys.stderr, verbosity=1)
    except:
        # < Django 1.7
        from django.core.management.commands.compilemessages import compile_messages
        compile_messages(sys.stderr)
    finally:
        os.chdir('..')


def read(*parts):
    file_path = path.join(path.dirname(__file__), *parts)
    return codecs.open(file_path, encoding='utf-8').read()


def find_version(*parts):
Exemple #8
0
import os
import re
import sys
import codecs

from setuptools import setup, find_packages

# When creating the sdist, make sure the django.mo file also exists:
if 'sdist' in sys.argv or 'develop' in sys.argv:
    os.chdir('fluentcms_filer')

    for plugin in ['file', 'picture', 'teaser']:
        os.chdir(plugin)
        try:
            from django.core.management.commands.compilemessages import Command
            command = Command()
            command.execute(stdout=sys.stderr, exclude=[], verbosity=1)
        except ImportError:
            # < Django 1.7
            from django.core.management.commands.compilemessages import compile_messages
            compile_messages(sys.stderr, exclude=[])
        finally:
            os.chdir('..')

    os.chdir('..')


def read(*parts):
    file_path = os.path.join(os.path.dirname(__file__), *parts)
    return codecs.open(file_path, encoding='utf-8').read()