diff options
author | Alessio Sergi <al3hex@gmail.com> | 2013-08-16 15:28:00 +0200 |
---|---|---|
committer | Alessio Sergi <al3hex@gmail.com> | 2013-08-16 15:28:00 +0200 |
commit | b4704f64a5833955e752a8013effb27707be1a8f (patch) | |
tree | 37d3c18b1a653ce28a6ec346cb3368b6b76f0265 /glances/glances.py | |
parent | 282335d519f8d15b956abf19aff143679a715a87 (diff) |
Do not apply i18n before app initialization
Diffstat (limited to 'glances/glances.py')
-rw-r--r-- | glances/glances.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/glances/glances.py b/glances/glances.py index f8f9d987..ac23bab0 100644 --- a/glances/glances.py +++ b/glances/glances.py @@ -85,21 +85,21 @@ if not is_Windows: import curses import curses.panel except ImportError: - print(_('Curses module not found. Glances cannot start.')) + print('Curses module not found. Glances cannot start.') sys.exit(1) try: # psutil is the main library used to grab stats import psutil except ImportError: - print(_('PsUtil module not found. Glances cannot start.')) + print('PsUtil module not found. Glances cannot start.') sys.exit(1) psutil_version = tuple([int(num) for num in psutil.__version__.split('.')]) # this is not a mistake: psutil 0.5.1 is detected as 0.5.0 if psutil_version < (0, 5, 0): - print(_('PsUtil version %s detected.') % psutil.__version__) - print(_('PsUtil 0.5.1 or higher is needed. Glances cannot start.')) + print('PsUtil version %s detected.' % psutil.__version__) + print('PsUtil 0.5.1 or higher is needed. Glances cannot start.') sys.exit(1) try: |