mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
_( was not always defined
This commit is contained in:
parent
c78a85edad
commit
c914572fba
1 changed files with 4 additions and 3 deletions
|
@ -23,6 +23,10 @@ import sys, os, os.path, time, string, commands, gettext
|
|||
from ConfigParser import SafeConfigParser
|
||||
from snack import *
|
||||
|
||||
gettext.bindtextdomain('screen-profiles-helper', '/usr/share/screen-profiles/po')
|
||||
gettext.textdomain('screen-profiles-helper')
|
||||
_ = gettext.gettext
|
||||
|
||||
# Command presets for windows creation
|
||||
cmd=( ("System activity", "top", "top"),
|
||||
("System log", "log", "watch -n 10 tail -n 5 /var/log/syslog /var/log/auth.log /var/log/dmesg"),
|
||||
|
@ -318,9 +322,6 @@ def install(screen, size, isInstalled):
|
|||
def main():
|
||||
"""This is the main loop of our screen helper.
|
||||
"""
|
||||
gettext.bindtextdomain('screen-profiles-helper', '/usr/share/screen-profiles/po')
|
||||
gettext.textdomain('screen-profiles-helper')
|
||||
_ = gettext.gettext
|
||||
|
||||
size = terminal_size()
|
||||
screen = SnackScreen()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue