Browse Source

translations are in

master
Julio Biason 15 years ago
parent
commit
158f806d45
  1. 1
      MANIFEST
  2. 10
      mitter
  3. 2
      setup.py

1
MANIFEST

@ -28,3 +28,4 @@ pixmaps/mitter-error.png
pixmaps/mitter-new.png pixmaps/mitter-new.png
pixmaps/mitter.png pixmaps/mitter.png
pixmaps/unknown.png pixmaps/unknown.png
locale/en_US/LC_MESSAGES/mitter.po

10
mitter

@ -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."""

2
setup.py

@ -19,6 +19,8 @@ params = {
'pixmaps/mitter-new.png', 'pixmaps/mitter-new.png',
'pixmaps/mitter-error.png', 'pixmaps/mitter-error.png',
'pixmaps/unknown.png']), 'pixmaps/unknown.png']),
('share/locale/en_US/LC_MESSAGES',
['locale/en_US/LC_MESSAGES/mitter.mo']),
('share/applications', ('share/applications',
['mitter.desktop'])], ['mitter.desktop'])],
'license': 'GPL3', 'license': 'GPL3',

Loading…
Cancel
Save