add pybabel setup.py commands and initial .pot

This commit is contained in:
Michael Barton 2011-01-27 00:01:24 +00:00
parent edb4e90ebb
commit 9fcb3ad4f6
4 changed files with 1054 additions and 1 deletions

2
babel.cfg Normal file
View File

@ -0,0 +1,2 @@
[python: **.py]

1030
locale/swift.pot Normal file

File diff suppressed because it is too large Load Diff

View File

@ -7,3 +7,17 @@ source-dir = doc/source
tag_build = tag_build =
tag_date = 0 tag_date = 0
tag_svn_revision = 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

View File

@ -18,6 +18,7 @@ from setuptools import setup, find_packages
from setuptools.command.sdist import sdist from setuptools.command.sdist import sdist
import os import os
import subprocess import subprocess
from babel.messages import frontend
from swift import __version__ as version from swift import __version__ as version
@ -49,7 +50,13 @@ setup(
url='https://launchpad.net/swift', url='https://launchpad.net/swift',
packages=find_packages(exclude=['test', 'bin']), packages=find_packages(exclude=['test', 'bin']),
test_suite='nose.collector', 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=[ classifiers=[
'Development Status :: 4 - Beta', 'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License', 'License :: OSI Approved :: Apache Software License',