diff options
-rw-r--r-- | sos/utilities.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sos/utilities.py b/sos/utilities.py index 871956c1..851b7715 100644 --- a/sos/utilities.py +++ b/sos/utilities.py @@ -19,6 +19,7 @@ import shlex import glob import threading import time +import gettext from contextlib import closing from collections import deque @@ -26,6 +27,17 @@ from collections import deque # PYCOMPAT import six +gettext_dir = "/usr/share/locale" +gettext_app = "sos" + +gettext.bindtextdomain(gettext_app, gettext_dir) + + +def _default(msg): + return gettext.dgettext(gettext_app, msg) + + +_sos = _default def tail(filename, number_of_bytes): """Returns the last number_of_bytes of filename""" |