Small changes regarding Analysis translation
This commit is contained in:
@ -451,7 +451,7 @@ class Report(object):
|
||||
color:#CCC;
|
||||
}
|
||||
@bottom-center {
|
||||
content: REPORT_FOOTER;
|
||||
content: "REPORT_FOOTER";
|
||||
font-size:12px;
|
||||
color:#CCC;
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ class SuricataEngine():
|
||||
# Load template language
|
||||
if not re.match("^[a-z]{2,3}$", self.userlang):
|
||||
self.userlang = "en"
|
||||
with open(os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), "lang/{}.json".format(self.userlang))) as f:
|
||||
with open(os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), "locales/{}.json".format(self.userlang))) as f:
|
||||
self.template = json.load(f)["alerts"]
|
||||
|
||||
def start_suricata(self):
|
||||
|
@ -35,7 +35,7 @@ class ZeekEngine(object):
|
||||
# Load template language
|
||||
if not re.match("^[a-z]{2,3}$", self.userlang):
|
||||
self.userlang = "en"
|
||||
with open(os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), "lang/{}.json".format(self.userlang))) as f:
|
||||
with open(os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), "locales/{}.json".format(self.userlang))) as f:
|
||||
self.template = json.load(f)["alerts"]
|
||||
|
||||
def fill_dns(self, dir):
|
||||
|
Reference in New Issue
Block a user