diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-01-31 05:33:54 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-01-31 05:33:54 +0000 |
commit | 9faeb0674c012383a2d01a9c17d97f94cc5a5897 (patch) | |
tree | e771a9985aca4a461f01f2af684ff8c44b1a3223 /src/client.py | |
parent | 6f34406477714668898e7a711e96268e2549d6c0 (diff) | |
download | poezio-9faeb0674c012383a2d01a9c17d97f94cc5a5897.tar.gz poezio-9faeb0674c012383a2d01a9c17d97f94cc5a5897.tar.bz2 poezio-9faeb0674c012383a2d01a9c17d97f94cc5a5897.tar.xz poezio-9faeb0674c012383a2d01a9c17d97f94cc5a5897.zip |
cleanup, launch.sh, makefile
Diffstat (limited to 'src/client.py')
-rw-r--r-- | src/client.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client.py b/src/client.py index 47a87071..263ed08f 100644 --- a/src/client.py +++ b/src/client.py @@ -17,6 +17,13 @@ # You should have received a copy of the GNU General Public License # along with Poezio. If not, see <http://www.gnu.org/licenses/>. +from gettext import (bindtextdomain, textdomain, bind_textdomain_codeset, + gettext as _) + +bindtextdomain('poezio') +textdomain('poezio') +bind_textdomain_codeset('poezio', 'UTF-8') + import sys from connection import Connection from multiuserchat import MultiUserChat @@ -25,10 +32,10 @@ from handler import Handler from gui import Gui from curses import wrapper, initscr -# sys.stderr = open('logs', 'a') if len(sys.argv) == 1: # not debug, so hide any error message and disable C-c import signal signal.signal(signal.SIGINT, signal.SIG_IGN) + sys.stderr = open('/dev/null', 'w') class Client(object): """ |