mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
commit
76ad6bcdfa
|
@ -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()
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user