From 94d93f98fa69fcca2b9743bdf43429f22b528a70 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Sun, 16 Jan 2011 15:04:43 -0200 Subject: i18n --- src/monitor.py | 7 +++++++ src/net_monitor | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/monitor.py b/src/monitor.py index 5a2bcfe..8cf3138 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -12,6 +12,13 @@ import time # native library implements a few bits import _native +# localization +import gettext +try: + gettext.install("net_monitor") +except IOError: + _ = str + class Monitor: # based on http://svn.pardus.org.tr/pardus/tags/pardus-1.0/system/base/wireless-tools/comar/link.py diff --git a/src/net_monitor b/src/net_monitor index 650af0b..c9a025c 100755 --- a/src/net_monitor +++ b/src/net_monitor @@ -26,7 +26,7 @@ import textwrap # localization import gettext try: - gettext.install("msec") + gettext.install("net_monitor") except IOError: _ = str -- cgit v1.2.1