diff options
author | Eugeni Dodonov <eugeni@mandriva.com> | 2011-01-16 15:04:43 -0200 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.com> | 2011-01-16 15:04:43 -0200 |
commit | 94d93f98fa69fcca2b9743bdf43429f22b528a70 (patch) | |
tree | f90562876a672c41d2c2ed8119d24db0ec0dfc49 | |
parent | 9f68975629fad70e658f6625bd544fbe746f53d7 (diff) | |
download | net_monitor-94d93f98fa69fcca2b9743bdf43429f22b528a70.tar net_monitor-94d93f98fa69fcca2b9743bdf43429f22b528a70.tar.gz net_monitor-94d93f98fa69fcca2b9743bdf43429f22b528a70.tar.bz2 net_monitor-94d93f98fa69fcca2b9743bdf43429f22b528a70.tar.xz net_monitor-94d93f98fa69fcca2b9743bdf43429f22b528a70.zip |
i18n
-rw-r--r-- | src/monitor.py | 7 | ||||
-rwxr-xr-x | src/net_monitor | 2 |
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 |