src/fenrirscreenreader/core/i18n.py
raw| 1 | #!/usr/bin/env python3 |
| 2 | # -*- coding: utf-8 -*- |
| 3 | |
| 4 | # Fenrir TTY screen reader |
| 5 | # By Chrys, Storm Dragon, and contributors. |
| 6 | |
| 7 | import builtins |
| 8 | import gettext |
| 9 | import locale |
| 10 | |
| 11 | # the only function we really need to call here is gettext.install. |
| 12 | # Python3 has simplified this. |
| 13 | gettext.install("fenrir") |
| 14 | |
| 15 | # Make _ available for import to satisfy static analysis tools |
| 16 | _ = builtins._ |