Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add English translation for main page and PEC emailed report. #115

Merged
merged 3 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions common/constants/controller/instagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
# -----
######

N_FOLLOWERS = "Numero di followers: "
N_FOLLOWERS = "Number of followers: "
FOLLOWERS = "Followers: \n"
N_FOLLOWEES = "Numero di followees: "
N_FOLLOWEES = "Number of followees: "
FOLLOWEES = "Followees: \n"
VERIFIED = "Tipo di profilo: verificato"
NO_VERIFIED = "Tipo di profilo: non verificato"
FULL_NAME = "Nome completo: "
PERSONAL = "Tipo di profilo: personale"
TYPE = "Tipo di account: "
BIO = "Biografia account: "
N_POSTS = "Numero di post: "
VERIFIED = "Profile Type: verified"
NO_VERIFIED = "Profile Type: not verified"
FULL_NAME = "Full Name: "
PERSONAL = "Profile Type: personal"
TYPE = "Account Type: "
BIO = "Account Bio: "
N_POSTS = "Number of posts: "
HANDLE_429 = 'Instagram responded with HTTP error "429 - Too Many Requests".<br>\
Please wait a few minutes (5/6) and do not run FIT multiple times in parallel or within short sequence.<br>\
Also, do not use any Instagram App while FIT is running.'
4 changes: 2 additions & 2 deletions common/constants/controller/pec.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# -----
######

SUBJECT = "Report acquisizione {} caso: {} ID: {}"
SUBJECT = "Acquisition Report {} case: {} ID: {}"
BODY = (
"In allegato report e relativo timestamp dell'acquisizione {} relativa al caso: {}"
"Attached is the report and related timestamp for acquisition {} for case: {}"
)
5 changes: 4 additions & 1 deletion common/constants/controller/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@
CCDESCR = (
"La catena di custodia è un concetto importante in ambito forense che descrive il "
"controllo e la documentazione degli spostamenti e delle manipolazioni di una prova "
"durante un'indagine o un processo legale. La catena di custodia garantisce che la prova sia autentica, "
"non alterata e non contaminata, e che la sua integrità sia mantenuta dal momento della raccolta fino "
"all'utilizzo in tribunale. Mantenere una catena di custodia affidabile è fondamentale per garantire "
"che la prova sia valida e adatta a supportare le conclusioni nell'ambito giudiziario."
)
"durante un'indagine o un processo legale. La catena di custodia garantisce che la prova sia autentica, " "non alterata e non contaminata, e che la sua integrità sia mantenuta dal momento della raccolta fino " "all'utilizzo in tribunale. Mantenere una catena di custodia affidabile è fondamentale per garantire " "che la prova sia valida e adatta a supportare le conclusioni nell'ambito giudiziario."

TITLEH = "Hash"
HDESCR = (
Expand Down
12 changes: 6 additions & 6 deletions common/constants/view/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
# -----
######
TITLE = "Case Info"
NAME = "Cliente/Caso*"
LAWYER = "Avvocato"
OPERATOR = "Operatore"
PROCEEDING_TYPE = "Tipo procedimento"
COURTHOUSE = "Tribunale"
PROCEEDING_NUMBER = "Numero Procedimento"
NAME = "Client/Case # *"
LAWYER = "Lawyer"
OPERATOR = "Operator"
PROCEEDING_TYPE = "Proceeding Type"
COURTHOUSE = "Courthouse"
PROCEEDING_NUMBER = "Proceeding Number"
NOTES = "Note"
DIALOG_TITLE = " Case {} ID:{}"
LOGO = "Logo"
Expand Down
6 changes: 3 additions & 3 deletions controller/verify_pec/generate_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __generate(
subject,
send_date,
expiration_date,
integrità,
integrity,
revoked,
signature,
provider_name,
Expand All @@ -64,7 +64,7 @@ def __generate(
ntp,
eml_file_path,
):
case_index = subject.find("caso: ")
case_index = subject.find("case: ")
case_slice_before = subject[:case_index]
case_slice_after = subject[case_index:]
subject = case_slice_before + "\n" + case_slice_after
Expand Down Expand Up @@ -114,7 +114,7 @@ def __generate(
"======================================================================\n"
)
file.write(f"{REPORT_LABEL_INTEGRITY}\n")
file.write(f"{integrità}\n")
file.write(f"{integrity}\n")
file.write(
"======================================================================\n"
)
Expand Down
2 changes: 1 addition & 1 deletion model/configurations/tabs/general/typesproceedings.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ def delete(self, ids):
self.db.session.commit()

def set_default_values(self):
self.add(["Penale", "Civile", "Extragiudiziale"])
self.add(["Civil", "Extrajudicial", "Penal"])
Loading