22
33LANG = {
44 "de" : {
5- # --- Window & General UI ---
65 "window_title" : f"{ APP_NAME } – KI-gestützte Verschlüsselungs-Policies" ,
76 "lang_de" : "DE" ,
87 "lang_en" : "EN" ,
98
10- # Directory / Controls
119 "label_directory" : "Basisverzeichnis:" ,
1210 "button_browse" : "Durchsuchen …" ,
1311 "button_scan" : "Scannen & Richtlinien anwenden" ,
1412 "button_info" : "Info" ,
1513 "button_github" : "GitHub" ,
1614
17- # API UI
1815 "label_api_mode" : "API-Modus aktivieren:" ,
1916 "label_api_url" : "API-Basis-URL:" ,
2017
21- # Table / Columns
2218 "column_file" : "Datei" ,
2319 "column_classification" : "Klassifizierung" ,
2420 "column_risk" : "Risiko" ,
2521 "column_action" : "Aktion" ,
2622
27- # Status messages
2823 "status_ready" : "Bereit." ,
2924 "status_scanning" : "AI-Analyse läuft … bitte warten." ,
3025 "status_done" : "Scan abgeschlossen." ,
3126 "status_error" : "Fehler beim Scan – Details in der Konsole." ,
3227 "status_api_error" : "API-Fehler – Fallback auf lokale Analyse." ,
3328
34- # Dialog: no directory
3529 "msg_no_dir_title" : "Kein Verzeichnis" ,
3630 "msg_no_dir_body" : "Bitte wählen Sie zuerst ein Basisverzeichnis aus." ,
3731
38- # Dialog: scan finished
3932 "msg_scan_finished_title" : "Scan abgeschlossen" ,
4033 "msg_scan_finished_body" : "Der Scan wurde abgeschlossen.\n Anzahl analysierter Dateien: {count}" ,
4134
42- # Classification labels
4335 "classification_PUBLIC" : "Öffentlich" ,
4436 "classification_INTERNAL" : "Intern" ,
4537 "classification_CONFIDENTIAL" : "Vertraulich" ,
4638 "classification_HIGHLY_CONFIDENTIAL" : "Streng vertraulich" ,
4739
48- # Action labels
4940 "action_ENCRYPTED" : "Verschlüsselt" ,
5041 "action_LOG_ONLY" : "Nur protokolliert" ,
5142 "action_NONE" : "Keine Maßnahme" ,
5243 "action_ERROR" : "Fehler" ,
5344
54- # Info dialog
5545 "info_title" : "Informationen zur Anwendung" ,
5646 "info_body" : (
5747 f"{ APP_NAME } \n "
6555 "über die externe Systeme Analysen anfragen können."
6656 ),
6757
68- # Detail dialog
6958 "detail_title" : "AI-Analyse & Entscheidungsgrundlage" ,
7059 "detail_file" : "Datei" ,
7160 "detail_classification" : "Klassifizierung" ,
7261 "detail_risk" : "Risiko-Score" ,
7362 "detail_explanation" : "Begründung" ,
7463
75- # --- AI Core / Animation (Persona C) ---
7664 "ai_core_idle" : "AI Core: Bereit" ,
7765 "ai_core_active_label" : "SECUREAI CORE – AKTIV" ,
7866 "ai_core_idle_label" : "SECUREAI CORE" ,
8573 "Ich löse die finale Entscheidung aus …" ,
8674 ],
8775
88- # --- Explainable AI Textbausteine (Persona C) ---
89- # Diese kannst du bei Bedarf im classifier verwenden.
9076 "ai_explain_header" : "Ich habe diese Datei ausgewertet und eine Einstufung vorgenommen." ,
9177 "ai_explain_risk" : "Mein aktueller Risiko-Score für diese Datei liegt bei {score}/100." ,
9278 "ai_explain_no_entities" : (
10591 "kann aber je nach Policy sinnvoll sein."
10692 ),
10793
108- # Mapping für Entity Labels (falls du sie anzeigen möchtest)
10994 "entity_EMAIL" : "E-Mail-Adresse" ,
11095 "entity_IBAN" : "IBAN" ,
11196 "entity_CREDIT_CARD" : "Kreditkartennummer" ,
115100 "entity_ORG" : "Organisation" ,
116101 "entity_LOCATION" : "Ort" ,
117102
118- # Optional: kurze AI-Hinweise
119103 "ai_hint_confidential" : (
120104 "Ich sehe personenbezogene oder geschäftskritische Informationen. "
121105 "Ich empfehle dringend eine starke Verschlüsselung."
127111 },
128112
129113 "en" : {
130- # --- Window & General UI ---
131114 "window_title" : f"{ APP_NAME } – AI-powered Encryption Policies" ,
132115 "lang_de" : "DE" ,
133116 "lang_en" : "EN" ,
134117
135- # Directory / Controls
136118 "label_directory" : "Base directory:" ,
137119 "button_browse" : "Browse…" ,
138120 "button_scan" : "Scan & apply policies" ,
139121 "button_info" : "Info" ,
140122 "button_github" : "GitHub" ,
141123
142- # API UI
143124 "label_api_mode" : "Enable API mode:" ,
144125 "label_api_url" : "API base URL:" ,
145126
146- # Table / Columns
147127 "column_file" : "File" ,
148128 "column_classification" : "Classification" ,
149129 "column_risk" : "Risk" ,
150130 "column_action" : "Action" ,
151131
152- # Status messages
153132 "status_ready" : "Ready." ,
154133 "status_scanning" : "AI analysis in progress…" ,
155134 "status_done" : "Scan completed." ,
156135 "status_error" : "Error during scan – see console for details." ,
157136 "status_api_error" : "API error – falling back to local analysis." ,
158137
159- # Dialog: no directory
160138 "msg_no_dir_title" : "No directory selected" ,
161139 "msg_no_dir_body" : "Please select a base directory first." ,
162140
163- # Dialog: scan finished
164141 "msg_scan_finished_title" : "Scan completed" ,
165142 "msg_scan_finished_body" : "Scan finished.\n Number of analyzed files: {count}" ,
166143
167- # Classification labels
168144 "classification_PUBLIC" : "Public" ,
169145 "classification_INTERNAL" : "Internal" ,
170146 "classification_CONFIDENTIAL" : "Confidential" ,
171147 "classification_HIGHLY_CONFIDENTIAL" : "Highly confidential" ,
172148
173- # Action labels
174149 "action_ENCRYPTED" : "Encrypted" ,
175150 "action_LOG_ONLY" : "Logged only" ,
176151 "action_NONE" : "No action" ,
177152 "action_ERROR" : "Error" ,
178153
179- # Info dialog
180154 "info_title" : "Application information" ,
181155 "info_body" : (
182156 f"{ APP_NAME } \n "
190164 "can request analyses online."
191165 ),
192166
193- # Detail dialog
194167 "detail_title" : "AI analysis & decision basis" ,
195168 "detail_file" : "File" ,
196169 "detail_classification" : "Classification" ,
197170 "detail_risk" : "Risk score" ,
198171 "detail_explanation" : "Explanation" ,
199172
200- # --- AI Core / Animation (Persona C) ---
201173 "ai_core_idle" : "AI Core: Idle" ,
202174 "ai_core_active_label" : "SECUREAI CORE – ACTIVE" ,
203175 "ai_core_idle_label" : "SECUREAI CORE" ,
210182 "I'm triggering the final decision …" ,
211183 ],
212184
213- # --- Explainable AI Textbausteine (Persona C) ---
214185 "ai_explain_header" : "I've analyzed this file and determined a classification." ,
215186 "ai_explain_risk" : "My current risk score for this file is {score}/100." ,
216187 "ai_explain_no_entities" : (
229200 "but may still be useful depending on your policies."
230201 ),
231202
232- # Mapping for entity labels
233203 "entity_EMAIL" : "Email address" ,
234204 "entity_IBAN" : "IBAN" ,
235205 "entity_CREDIT_CARD" : "Credit card number" ,
239209 "entity_ORG" : "Organization" ,
240210 "entity_LOCATION" : "Location" ,
241211
242- # Optional short hints
243212 "ai_hint_confidential" : (
244213 "I see personal or business-critical information. "
245214 "I strongly recommend strong encryption."
249218 "as long as no stricter compliance rules apply."
250219 ),
251220 },
252- }
221+ }
0 commit comments