buildframework/helium/external/python/lib/2.5/docutils-0.5-py2.5.egg/docutils/languages/__init__.py
equal
deleted
inserted
replaced
1 # $Id: __init__.py 4564 2006-05-21 20:44:42Z wiemann $ |
|
2 # Author: David Goodger <goodger@python.org> |
|
3 # Copyright: This module has been placed in the public domain. |
|
4 |
|
5 # Internationalization details are documented in |
|
6 # <http://docutils.sf.net/docs/howto/i18n.html>. |
|
7 |
|
8 """ |
|
9 This package contains modules for language-dependent features of Docutils. |
|
10 """ |
|
11 |
|
12 __docformat__ = 'reStructuredText' |
|
13 |
|
14 _languages = {} |
|
15 |
|
16 def get_language(language_code): |
|
17 if _languages.has_key(language_code): |
|
18 return _languages[language_code] |
|
19 module = __import__(language_code, globals(), locals()) |
|
20 _languages[language_code] = module |
|
21 return module |
|