Fix - GetText error caused by GitHub pull request
This commit is contained in:
Artur Tretiak 2018-11-30 01:20:52 +02:00
parent 0acb324fc2
commit 8c00529135
4 changed files with 7 additions and 2 deletions

View File

@ -13,6 +13,7 @@ from Defs.Languages import *
RED, WHITE, CYAN, GREEN, DEFAULT = '\033[91m', '\033[46m', '\033[36m', '\033[1;32m', '\033[0m' RED, WHITE, CYAN, GREEN, DEFAULT = '\033[91m', '\033[46m', '\033[36m', '\033[1;32m', '\033[0m'
installGetText()
languageSelector() languageSelector()
ifSettingsNotExists() ifSettingsNotExists()
config = readConfig() config = readConfig()

View File

@ -6,11 +6,12 @@ from subprocess import check_output
from platform import system as systemos, architecture from platform import system as systemos, architecture
from wget import download from wget import download
from Defs.Languages import * from Defs.Languages import *
RED, GREEN, DEFAULT = '\033[91m', '\033[1;32m', '\033[0m' RED, GREEN, DEFAULT = '\033[91m', '\033[1;32m', '\033[0m'
installGetText()
languageSelector() languageSelector()
def checkConnection(host='http://duckduckgo.com'): #Connection check def checkConnection(host='http://duckduckgo.com'): #Connection check
try: try:
urlopen(host) urlopen(host)

View File

@ -4,6 +4,9 @@ import sys
import gettext import gettext
from Defs.Configurations import readConfig from Defs.Configurations import readConfig
def installGetText():
gettext.install('hiddeneye', './locale')
def langRussian(): def langRussian():
ru = gettext.translation('hiddeneye',localedir='./locale', languages=['ru']) ru = gettext.translation('hiddeneye',localedir='./locale', languages=['ru'])
ru.install() ru.install()

View File

@ -12,7 +12,7 @@ from Defs.Languages import *
RED, WHITE, CYAN, GREEN, DEFAULT = '\033[91m', '\033[46m', '\033[36m', '\033[1;32m', '\033[0m' RED, WHITE, CYAN, GREEN, DEFAULT = '\033[91m', '\033[46m', '\033[36m', '\033[1;32m', '\033[0m'
installGetText()
languageSelector() languageSelector()
checkConnection() checkConnection()
checkNgrok() checkNgrok()