buildframework/helium/external/python/lib/common/Sphinx-0.5.1-py2.5.egg/sphinx/locale/__init__.py
equal
deleted
inserted
replaced
|
1 # -*- coding: utf-8 -*- |
|
2 """ |
|
3 sphinx.locale |
|
4 ~~~~~~~~~~~~~ |
|
5 |
|
6 Locale utilities. |
|
7 |
|
8 :copyright: 2008 by Georg Brandl. |
|
9 :license: BSD. |
|
10 """ |
|
11 |
|
12 _ = lambda x: x |
|
13 |
|
14 admonitionlabels = { |
|
15 'attention': _('Attention'), |
|
16 'caution': _('Caution'), |
|
17 'danger': _('Danger'), |
|
18 'error': _('Error'), |
|
19 'hint': _('Hint'), |
|
20 'important': _('Important'), |
|
21 'note': _('Note'), |
|
22 'seealso': _('See Also'), |
|
23 'tip': _('Tip'), |
|
24 'warning': _('Warning'), |
|
25 } |
|
26 |
|
27 versionlabels = { |
|
28 'versionadded': _('New in version %s'), |
|
29 'versionchanged': _('Changed in version %s'), |
|
30 'deprecated': _('Deprecated since version %s'), |
|
31 } |
|
32 |
|
33 pairindextypes = { |
|
34 'module': _('module'), |
|
35 'keyword': _('keyword'), |
|
36 'operator': _('operator'), |
|
37 'object': _('object'), |
|
38 'exception': _('exception'), |
|
39 'statement': _('statement'), |
|
40 'builtin': _('built-in function'), |
|
41 } |
|
42 |
|
43 del _ |
|
44 |
|
45 def init(): |
|
46 for dct in (admonitionlabels, versionlabels, pairindextypes): |
|
47 for key in dct: |
|
48 dct[key] = _(dct[key]) |