Skip to content

Commit 27b90fe

Browse files
committed
docs: traduction des noms d'étapes BCASL en anglais
1 parent 61c9633 commit 27b90fe

4 files changed

Lines changed: 31 additions & 31 deletions

File tree

Ui/Gui/Dialogs/BcaslDialog.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ def _apply_themed_icon(widget: QPushButton, icon_name: str, size: int = 18) -> N
123123

124124
# phase_score → (display_name, description)
125125
SECTION_PHASES: dict[int, tuple[str, str]] = {
126-
0: ("Nettoyage", "Nettoyage et hygiène du workspace"),
127-
10: ("Validation", "Validation et vérification des prérequis"),
128-
20: ("Préparation", "Préparation et génération des ressources"),
129-
30: ("Conformité", "Conformité et injection de headers"),
130-
40: ("Linting", "Linting, formatage et vérification de type"),
131-
50: ("Obfuscation", "Obfuscation, protection et transpilation"),
132-
100: ("Défaut", "Autres actions (phase par défaut)"),
126+
0: ("Cleanup", "Workspace cleanup and hygiene"),
127+
10: ("Validation", "Prerequisite validation and checking"),
128+
20: ("Preparation", "Resource preparation and generation"),
129+
30: ("Compliance", "Compliance and header injection"),
130+
40: ("Linting", "Linting, formatting, and type checking"),
131+
50: ("Obfuscation", "Obfuscation, protection and transpilation"),
132+
100: ("Default", "Other actions (default phase)"),
133133
}
134134

135135
# Tag → score de phase

bcasl/Loader.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,15 +439,15 @@ def _read_yml(p: Path) -> dict[str, Any]:
439439
except Exception:
440440
pass
441441

442-
# Phases par défaut (toutes activées)
442+
# Default phases (all enabled)
443443
default_phases = {
444-
"Nettoyage": True,
444+
"Cleanup": True,
445445
"Validation": True,
446-
"Préparation": True,
447-
"Conformité": True,
446+
"Preparation": True,
447+
"Compliance": True,
448448
"Linting": True,
449449
"Obfuscation": True,
450-
"Défaut": True,
450+
"Default": True,
451451
}
452452

453453
default_cfg = {

bcasl/executor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -516,13 +516,13 @@ def _load_plugin_instance(
516516

517517
# phase_score -> (display_name, min_priority, max_priority)
518518
PHASES: dict[int, tuple[str, int, int]] = {
519-
0: ("Nettoyage", 0, 9),
519+
0: ("Cleanup", 0, 9),
520520
10: ("Validation", 10, 19),
521-
20: ("Préparation", 20, 29),
522-
30: ("Conformité", 30, 39),
521+
20: ("Preparation", 20, 29),
522+
30: ("Compliance", 30, 39),
523523
40: ("Linting", 40, 49),
524524
50: ("Obfuscation", 50, 59),
525-
100: ("Défaut", 60, 199),
525+
100: ("Default", 60, 199),
526526
}
527527

528528

bcasl/tagging.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@
1717

1818
# Hiérarchie de priorité basée sur les tags (ordre d'exécution)
1919
TAG_PRIORITY_MAP = {
20-
# Phase 0: Nettoyage et hygiène du workspace
20+
# Phase 0: Workspace cleanup and hygiene
2121
"clean": 0,
2222
"cleanup": 0,
2323
"sanitize": 0,
2424
"prune": 0,
2525
"tidy": 0,
26-
# Phase 1: Validation et vérification des prérequis
26+
# Phase 1: Prerequisite validation and checking
2727
"validation": 10,
2828
"presence": 10,
2929
"check": 10,
3030
"requirements": 10,
3131
"verify": 10,
32-
# Phase 2: Préparation et génération des ressources
32+
# Phase 2: Resource preparation and generation
3333
"prepare": 20,
3434
"codegen": 20,
3535
"generate": 20,
@@ -40,7 +40,7 @@
4040
"bootstrap": 20,
4141
"configure": 20,
4242
"setup": 20,
43-
# Phase 3: Conformité et injection de headers
43+
# Phase 3: Compliance and header injection
4444
"license": 30,
4545
"header": 30,
4646
"normalize": 30,
@@ -49,7 +49,7 @@
4949
"banner": 30,
5050
"copyright": 30,
5151
"metadata": 30,
52-
# Phase 4: Linting, formatage et vérification de type
52+
# Phase 4: Linting, formatting and type checking
5353
"lint": 40,
5454
"format": 40,
5555
"typecheck": 40,
@@ -61,7 +61,7 @@
6161
"isort": 40,
6262
"sort-imports": 40,
6363
"style": 40,
64-
# Phase 5: Obfuscation, protection et transpilation (dernière passe)
64+
# Phase 5: Obfuscation, protection and transpilation (last pass)
6565
"obfuscation": 50,
6666
"obfuscate": 50,
6767
"transpile": 50,
@@ -81,13 +81,13 @@ def compute_tag_order(meta_map: dict[str, dict[str, Any]]) -> list[str]:
8181
Tags pris depuis meta_map[pid]["tags"]. Inconnu => DEFAULT_TAG_PRIORITY.
8282
8383
Phases d'exécution:
84-
- 0: Nettoyage (clean, cleanup, sanitize)
84+
- 0: Cleanup (clean, cleanup, sanitize)
8585
- 10: Validation (check, requirements, verify)
86-
- 20: Préparation (prepare, generate, install, configure)
87-
- 30: Conformité (license, header, normalize, inject)
86+
- 20: Preparation (prepare, generate, install, configure)
87+
- 30: Compliance (license, header, normalize, inject)
8888
- 40: Linting (lint, format, typecheck, style)
8989
- 50: Obfuscation (obfuscate, transpile, protect, encrypt)
90-
- 100: Défaut (none tag reconnu)
90+
- 100: Default (none tag reconnu)
9191
"""
9292

9393
def _compute_score(pid: str) -> int:
@@ -126,13 +126,13 @@ def get_tag_phase_name(tag: str) -> str:
126126
score = TAG_PRIORITY_MAP.get(tag_lower, DEFAULT_TAG_PRIORITY)
127127

128128
phase_names = {
129-
0: "Nettoyage",
129+
0: "Cleanup",
130130
10: "Validation",
131-
20: "Préparation",
132-
30: "Conformité",
131+
20: "Preparation",
132+
30: "Compliance",
133133
40: "Linting",
134134
50: "Obfuscation",
135-
100: "Défaut",
135+
100: "Default",
136136
}
137137

138138
return phase_names.get(score, f"Phase {score}")
@@ -144,7 +144,7 @@ def describe_plugin_priority(plugin_id: str, tags: list[str]) -> str:
144144
Exemple: "plugin_id (lint, format) -> Phase 4: Linting"
145145
"""
146146
if not tags:
147-
return f"{plugin_id} (aucun tag) -> Phase {DEFAULT_TAG_PRIORITY}: Défaut"
147+
return f"{plugin_id} (aucun tag) -> Phase {DEFAULT_TAG_PRIORITY}: Default"
148148

149149
tag_str = ", ".join(str(t).strip().lower() for t in tags)
150150
scores = [

0 commit comments

Comments
 (0)