aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/monitor.py7
-rwxr-xr-xsrc/net_monitor2
2 files changed, 8 insertions, 1 deletions
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