|
45 | 45 | "label_files_section": "2. Files to build", |
46 | 46 | "btn_remove_file": "🗑️ Remove selected file", |
47 | 47 | "label_logs_section": "Build logs", |
| 48 | + "label_workspace_status": "Workspace: {path}", |
| 49 | + "label_workspace_status_none": "Workspace: None", |
| 50 | + "file_filter_placeholder": "Filter list…", |
| 51 | + "btn_clear_workspace": "🧹 Clear workspace", |
48 | 52 | "choose_language_title": "Choose language", |
49 | 53 | "choose_language_label": "Language:", |
50 | 54 | "choose_language_system": "System", |
|
65 | 69 | "tt_venv_button": "Manually select a venv directory to use for compilation.", |
66 | 70 | "tt_suggest_deps": "Analyze the project for missing Python dependencies.", |
67 | 71 | "tt_show_stats": "Show build statistics (time, number of files, memory).", |
| 72 | + "tt_clear_workspace": "Clear the file list and reset the selection.", |
68 | 73 | } |
69 | 74 |
|
70 | 75 |
|
@@ -373,6 +378,7 @@ def _tt(key: str, current: str) -> str: |
373 | 378 | _set("btn_help", "help") |
374 | 379 | _set("btn_show_stats", "show_stats") |
375 | 380 | _set("btn_remove_file", "btn_remove_file") |
| 381 | + _set("btn_clear_workspace", "btn_clear_workspace") |
376 | 382 |
|
377 | 383 | # Bouton de langue (variante System vs simple), sans valeur de secours |
378 | 384 | try: |
@@ -417,6 +423,21 @@ def _tt(key: str, current: str) -> str: |
417 | 423 | _set("label_files_section", "label_files_section") |
418 | 424 | _set("label_logs_section", "label_logs_section") |
419 | 425 |
|
| 426 | + # Workspace status label (dynamic path if available) |
| 427 | + if getattr(self, "label_workspace_status", None): |
| 428 | + try: |
| 429 | + ws = getattr(self, "workspace_dir", None) |
| 430 | + if ws: |
| 431 | + tmpl = tr.get("label_workspace_status") or "Workspace: {path}" |
| 432 | + self.label_workspace_status.setText( |
| 433 | + str(tmpl).replace("{path}", str(ws)) |
| 434 | + ) |
| 435 | + else: |
| 436 | + val = tr.get("label_workspace_status_none") or "Workspace: None" |
| 437 | + self.label_workspace_status.setText(str(val)) |
| 438 | + except Exception: |
| 439 | + pass |
| 440 | + |
420 | 441 | # === TABS === |
421 | 442 | if getattr(self, "compiler_tabs", None): |
422 | 443 | try: |
@@ -483,6 +504,13 @@ def _tt(key: str, current: str) -> str: |
483 | 504 | self.nuitka_output_dir.setPlaceholderText(ph) |
484 | 505 | except Exception: |
485 | 506 | pass |
| 507 | + if getattr(self, "file_filter_input", None): |
| 508 | + try: |
| 509 | + ph = tr.get("file_filter_placeholder") |
| 510 | + if isinstance(ph, str) and ph.strip(): |
| 511 | + self.file_filter_input.setPlaceholderText(ph) |
| 512 | + except Exception: |
| 513 | + pass |
486 | 514 |
|
487 | 515 | # === TOOLTIPS === |
488 | 516 | # Main buttons tooltips |
@@ -536,6 +564,10 @@ def _tt(key: str, current: str) -> str: |
536 | 564 | self.btn_show_stats.setToolTip( |
537 | 565 | _tt("tt_show_stats", self.btn_show_stats.toolTip()) |
538 | 566 | ) |
| 567 | + if getattr(self, "btn_clear_workspace", None): |
| 568 | + self.btn_clear_workspace.setToolTip( |
| 569 | + _tt("tt_clear_workspace", self.btn_clear_workspace.toolTip()) |
| 570 | + ) |
539 | 571 |
|
540 | 572 | # Output directory tooltip |
541 | 573 | if getattr(self, "output_dir_input", None): |
|
0 commit comments