|
Revision 384, 484 bytes
(checked in by arjanmol, 4 years ago)
|
*** empty log message ***
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
"""Internationalization (i18n) support for Gaphor. |
|---|
| 3 |
|
|---|
| 4 |
Here the _() function is defined that is used to translate text into |
|---|
| 5 |
your native language. |
|---|
| 6 |
""" |
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
__all__ = [ '_' ] |
|---|
| 11 |
|
|---|
| 12 |
import gettext |
|---|
| 13 |
|
|---|
| 14 |
try: |
|---|
| 15 |
catalog = gettext.Catalog('gaphor') |
|---|
| 16 |
|
|---|
| 17 |
_ = catalog.gettext |
|---|
| 18 |
except IOError, e: |
|---|
| 19 |
|
|---|
| 20 |
def _(s): return s |
|---|
| 21 |
|
|---|