[3] | 1 | # Author: David Goodger |
---|
| 2 | # Contact: goodger@users.sourceforge.net |
---|
| 3 | # Revision: $Revision: 2224 $ |
---|
| 4 | # Date: $Date: 2004-06-05 21:40:46 +0200 (Sat, 05 Jun 2004) $ |
---|
| 5 | # Copyright: This module has been placed in the public domain. |
---|
| 6 | |
---|
| 7 | # Internationalization details are documented in |
---|
| 8 | # <http://docutils.sf.net/docs/howto/i18n.html>. |
---|
| 9 | |
---|
| 10 | """ |
---|
| 11 | This package contains modules for language-dependent features of Docutils. |
---|
| 12 | """ |
---|
| 13 | |
---|
| 14 | __docformat__ = 'reStructuredText' |
---|
| 15 | |
---|
| 16 | _languages = {} |
---|
| 17 | |
---|
| 18 | def get_language(language_code): |
---|
| 19 | if _languages.has_key(language_code): |
---|
| 20 | return _languages[language_code] |
---|
| 21 | module = __import__(language_code, globals(), locals()) |
---|
| 22 | _languages[language_code] = module |
---|
| 23 | return module |
---|