|
|
@ -19,7 +19,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
import time |
|
|
|
import time |
|
|
|
import urllib |
|
|
|
import urllib |
|
|
|
|
|
|
|
import sys |
|
|
|
import os |
|
|
|
import os |
|
|
|
|
|
|
|
import os.path |
|
|
|
import logging |
|
|
|
import logging |
|
|
|
import warnings |
|
|
|
import warnings |
|
|
|
import gettext |
|
|
|
import gettext |
|
|
@ -35,9 +37,13 @@ log = logging.getLogger('mitter') |
|
|
|
# ---------------------------------------------------------------------- |
|
|
|
# ---------------------------------------------------------------------- |
|
|
|
# i18n stuff |
|
|
|
# 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.textdomain('mitter') |
|
|
|
_ = gettext.gettext |
|
|
|
|
|
|
|
|
|
|
|
lang = gettext.translation('mitter', local_path, fallback = True) |
|
|
|
|
|
|
|
_ = lang.gettext |
|
|
|
|
|
|
|
|
|
|
|
def main(): |
|
|
|
def main(): |
|
|
|
"""Main function.""" |
|
|
|
"""Main function.""" |
|
|
|