|
|
|
@ -19,7 +19,9 @@
|
|
|
|
|
|
|
|
|
|
import time |
|
|
|
|
import urllib |
|
|
|
|
import sys |
|
|
|
|
import os |
|
|
|
|
import os.path |
|
|
|
|
import logging |
|
|
|
|
import warnings |
|
|
|
|
import gettext |
|
|
|
@ -35,9 +37,13 @@ log = logging.getLogger('mitter')
|
|
|
|
|
# ---------------------------------------------------------------------- |
|
|
|
|
# i18n stuff |
|
|
|
|
# ---------------------------------------------------------------------- |
|
|
|
|
gettext.bindtextdomain('mitter') |
|
|
|
|
local_path = os.path.realpath(os.path.dirname(sys.argv[0])) |
|
|
|
|
|
|
|
|
|
gettext.bindtextdomain('mitter', local_path) |
|
|
|
|
gettext.textdomain('mitter') |
|
|
|
|
_ = gettext.gettext |
|
|
|
|
|
|
|
|
|
lang = gettext.translation('mitter', local_path, fallback = True) |
|
|
|
|
_ = lang.gettext |
|
|
|
|
|
|
|
|
|
def main(): |
|
|
|
|
"""Main function.""" |
|
|
|
|