Browse Source

add pybabel setup.py commands and initial .pot

changes/79/379/1
Michael Barton 11 years ago
parent
commit
9fcb3ad4f6
  1. 2
      babel.cfg
  2. 1030
      locale/swift.pot
  3. 14
      setup.cfg
  4. 9
      setup.py

2
babel.cfg

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

1030
locale/swift.pot

File diff suppressed because it is too large

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

@ -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…
Cancel
Save