add pybabel setup.py commands and initial .pot
This commit is contained in:
parent
edb4e90ebb
commit
9fcb3ad4f6
1030
locale/swift.pot
Normal file
1030
locale/swift.pot
Normal file
File diff suppressed because it is too large
Load Diff
14
setup.cfg
14
setup.cfg
@ -7,3 +7,17 @@ source-dir = doc/source
|
||||
tag_build =
|
||||
tag_date = 0
|
||||
tag_svn_revision = 0
|
||||
|
||||
[compile_catalog]
|
||||
directory = locale
|
||||
domain = swift
|
||||
|
||||
[update_catalog]
|
||||
domain = swift
|
||||
output_dir = locale
|
||||
input_file = locale/swift.pot
|
||||
|
||||
[extract_messages]
|
||||
keywords = _ l_ lazy_gettext
|
||||
mapping_file = babel.cfg
|
||||
output_file = locale/swift.pot
|
||||
|
9
setup.py
9
setup.py
@ -18,6 +18,7 @@ from setuptools import setup, find_packages
|
||||
from setuptools.command.sdist import sdist
|
||||
import os
|
||||
import subprocess
|
||||
from babel.messages import frontend
|
||||
|
||||
from swift import __version__ as version
|
||||
|
||||
@ -49,7 +50,13 @@ setup(
|
||||
url='https://launchpad.net/swift',
|
||||
packages=find_packages(exclude=['test', 'bin']),
|
||||
test_suite='nose.collector',
|
||||
cmdclass={'sdist': local_sdist},
|
||||
cmdclass={
|
||||
'sdist': local_sdist,
|
||||
'compile_catalog': frontend.compile_catalog,
|
||||
'extract_messages': frontend.extract_messages,
|
||||
'init_catalog': frontend.init_catalog,
|
||||
'update_catalog': frontend.update_catalog,
|
||||
},
|
||||
classifiers=[
|
||||
'Development Status :: 4 - Beta',
|
||||
'License :: OSI Approved :: Apache Software License',
|
||||
|
Loading…
Reference in New Issue
Block a user