Skip to content

Commit 55207e9

Browse files
committed
Update help dialog translations and structure
1 parent 9673a26 commit 55207e9

12 files changed

Lines changed: 34 additions & 41 deletions

File tree

Core/MainWindow.py

Lines changed: 12 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,48 +1091,19 @@ def remove_selected_file(self):
10911091

10921092
def show_help_dialog(self):
10931093
# Minimal help dialog with current license information
1094-
if getattr(self, "current_language", "Français") == "English":
1095-
help_text = (
1096-
"<b>PyCompiler ARK++ — Quick Help</b><br>"
1097-
"<ul>"
1098-
"<li>1) Select the Workspace and add your .py files.</li>"
1099-
"<li>2) Configure pre‑compile plugins via <b>API Loader</b> (BCASL).</li>"
1100-
"<li>3) Configure options in the <b>PyInstaller</b>, <b>Nuitka</b> or <b>CX_Freeze</b> tab.</li>"
1101-
"<li>4) Click <b>Build</b> and follow the logs.</li>"
1102-
"</ul>"
1103-
"<b>Notes</b><br>"
1104-
"<ul>"
1105-
"<li>When a build starts, all action controls are disabled (including API Loader) until it finishes or is canceled.</li>"
1106-
"<li>Pre‑compilation (BCASL) completes before compilation.</li>"
1107-
"<li>A <i>venv</i> can be created automatically; requirements.txt is installed if present; tools are installed into the venv as needed.</li>"
1108-
"<li>API‑initiated workspace changes are auto‑applied; running builds are canceled before switching.</li>"
1109-
"</ul>"
1110-
"<b>License</b>: Apache-2.0 — <a href='https://www.apache.org/licenses/LICENSE-2.0'>apache.org/licenses/LICENSE-2.0</a>"
1111-
"<br><b>Author</b>: Ague Samuel Amen"
1112-
"<br>© 2026 Ague Samuel Amen"
1113-
)
1114-
else:
1115-
help_text = (
1116-
"<b>PyCompiler ARK++ — Aide rapide</b><br>"
1117-
"<ul>"
1118-
"<li>1) Sélectionnez le Workspace et ajoutez vos fichiers .py.</li>"
1119-
"<li>2) Configurez les plugins de pré‑compilation via <b>API Loader</b> (BCASL).</li>"
1120-
"<li>3) Réglez les options dans l’onglet <b>PyInstaller</b> ou <b>Nuitka</b>.</li>"
1121-
"<li>4) Cliquez sur <b>Build</b> et suivez les logs.</li>"
1122-
"</ul>"
1123-
"<b>Notes</b><br>"
1124-
"<ul>"
1125-
"<li>Au démarrage d’un build, tous les contrôles d’action sont désactivés (y compris API Loader) jusqu’à la fin ou l’annulation.</li>"
1126-
"<li>La pré‑compilation (BCASL) se termine avant la compilation.</li>"
1127-
"<li>Un <i>venv</i> peut être créé automatiquement ; requirements.txt est installé s’il est présent ; les outils sont installés dans le venv si nécessaire.</li>"
1128-
"<li>Les demandes de changement de workspace via l’API sont appliquées automatiquement ; les builds en cours sont annulés avant le changement.</li>"
1129-
"</ul>"
1130-
"<b>Licence</b> : Apache-2.0 — <a href='https://www.apache.org/licenses/LICENSE-2.0'>apache.org/licenses/LICENSE-2.0</a>"
1131-
"<br><b>Auteur</b> : Ague Samuel Amen"
1132-
"<br>© 2026 Ague Samuel Amen"
1133-
)
1094+
try:
1095+
tr = getattr(self, "_tr", None)
1096+
if tr and isinstance(tr, dict):
1097+
help_title = tr.get("help_title", "Help")
1098+
help_text = tr.get("help_text", "")
1099+
else:
1100+
help_title = "Help"
1101+
help_text = ""
1102+
except Exception:
1103+
help_title = "Help"
1104+
help_text = ""
11341105
dlg = QMessageBox(self)
1135-
dlg.setWindowTitle(self.tr("Aide", "Help"))
1106+
dlg.setWindowTitle(help_title)
11361107
dlg.setTextFormat(Qt.TextFormat.RichText)
11371108
dlg.setText(help_text)
11381109
dlg.setIcon(QMessageBox.Icon.Information)

languages/af.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"cancel_all": "⛔ Kanselleer",
1414
"suggest_deps": "🔎 Ontleed afhanklikhede",
1515
"help": "❓ Hulp",
16+
"help_title": "Hulp",
17+
"help_text": "<b>PyCompiler ARK++ — Vinnige Hulp</b><br><ul><li>1) Kies die Werkruimte en voeg jou .py lêers by.</li><li>2) Stel voor-kompileer plugins op via <b>API Loader</b> (BCASL).</li><li>3) Stel opsies in die <b>PyInstaller</b>, <b>Nuitka</b> of <b>CX_Freeze</b> tab.</li><li>4) Klik <b>Bou</b> en volg die logs.</li></ul><b>Nota</b><br><ul><li>Wanneer 'n bou begin, word alle aksie kontroles gedeaktiveer (insluitend API Loader) totdat dit klaar is of gekanselleer word.</li><li>Voor-kompilasie (BCASL) voltooi voor kompilasie.</li><li>'n <i>venv</i> kan outomaties geskep word; requirements.txt word geïnstalleer indien teenwoordig; gereedskap word in die venv geïnstalleer soos nodig.</li><li>API-geïnisieerde werkruimte veranderinge word outomaties toegepas; lopende boue word gekanselleer voor omskakeling.</li></ul><b>Lisensie</b>: Apache-2.0 — <a href='https://www.apache.org/licenses/LICENSE-2.0'>apache.org/licenses/LICENSE-2.0</a><br><b>Outeur</b>: Ague Samuel Amen<br>© 2026 Ague Samuel Amen",
1618
"show_stats": "📊 Statistiek",
1719
"select_lang": "Kies taal",
1820
"venv_button": "Kies venv-lêergids handmatig",

languages/de.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"cancel_all": "⛔ Abbrechen",
1414
"suggest_deps": "🔎 Abhängigkeiten analysieren",
1515
"help": "❓ Hilfe",
16+
"help_title": "Hilfe",
17+
"help_text": "<b>PyCompiler ARK++ — Schnellhilfe</b><br><ul><li>1) Wählen Sie den Arbeitsbereich und fügen Sie Ihre .py-Dateien hinzu.</li><li>2) Konfigurieren Sie Pre-Compile-Plugins über <b>API Loader</b> (BCASL).</li><li>3) Passen Sie die Optionen im <b>PyInstaller</b>-, <b>Nuitka</b>- oder <b>CX_Freeze</b>-Tab an.</li><li>4) Klicken Sie auf <b>Erstellen</b> und folgen Sie den Logs.</li></ul><b>Hinweise</b><br><ul><li>Beim Start eines Builds werden alle Aktionssteuerungen deaktiviert (einschließlich API Loader), bis er abgeschlossen oder abgebrochen ist.</li><li>Pre-Compilation (BCASL) wird vor der Compilation abgeschlossen.</li><li>Ein <i>venv</i> kann automatisch erstellt werden; requirements.txt wird installiert, falls vorhanden; Tools werden bei Bedarf in der venv installiert.</li><li>API-initiierte Arbeitsbereichsänderungen werden automatisch angewendet; laufende Builds werden vor dem Wechsel abgebrochen.</li></ul><b>Lizenz</b>: Apache-2.0 — <a href='https://www.apache.org/licenses/LICENSE-2.0'>apache.org/licenses/LICENSE-2.0</a><br><b>Autor</b>: Ague Samuel Amen<br>© 2026 Ague Samuel Amen",
1618
"show_stats": "📊 Statistiken",
1719
"select_lang": "Sprache wählen",
1820
"venv_button": "venv-Ordner manuell auswählen",

languages/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"cancel_all": "⛔ Cancel",
1414
"suggest_deps": "🔎 Analyze dependencies",
1515
"help": "❓ Help",
16+
"help_title": "Help",
17+
"help_text": "<b>PyCompiler ARK++ — Quick Help</b><br><ul><li>1) Select the Workspace and add your .py files.</li><li>2) Configure pre‑compile plugins via <b>API Loader</b> (BCASL).</li><li>3) Configure options in the <b>PyInstaller</b>, <b>Nuitka</b> or <b>CX_Freeze</b> tab.</li><li>4) Click <b>Build</b> and follow the logs.</li></ul><b>Notes</b><br><ul><li>When a build starts, all action controls are disabled (including API Loader) until it finishes or is canceled.</li><li>Pre‑compilation (BCASL) completes before compilation.</li><li>A <i>venv</i> can be created automatically; requirements.txt is installed if present; tools are installed into the venv as needed.</li><li>API‑initiated workspace changes are auto‑applied; running builds are canceled before switching.</li></ul><b>License</b>: Apache-2.0 — <a href='https://www.apache.org/licenses/LICENSE-2.0'>apache.org/licenses/LICENSE-2.0</a><br><b>Author</b>: Ague Samuel Amen<br>© 2026 Ague Samuel Amen",
1618
"show_stats": "📊 Statistics",
1719
"select_lang": "Choose language",
1820
"venv_button": "Choose venv folder manually",

languages/es.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"cancel_all": "⛔ Cancelar",
1414
"suggest_deps": "🔎 Analizar dependencias",
1515
"help": "❓ Ayuda",
16+
"help_title": "Ayuda",
17+
"help_text": "<b>PyCompiler ARK++ — Ayuda rápida</b><br><ul><li>1) Seleccione el Espacio de trabajo y añada sus archivos .py.</li><li>2) Configure los plugins de pre-compilación a través de <b>API Loader</b> (BCASL).</li><li>3) Ajuste las opciones en la pestaña <b>PyInstaller</b>, <b>Nuitka</b> o <b>CX_Freeze</b>.</li><li>4) Haga clic en <b>Compilar</b> y siga los logs.</li></ul><b>Notas</b><br><ul><li>Al iniciar una compilación, todos los controles de acción se desactivan (incluyendo API Loader) hasta que termine o se cancele.</li><li>La pre-compilación (BCASL) se completa antes de la compilación.</li><li>Un <i>venv</i> puede crearse automáticamente; requirements.txt se instala si está presente; las herramientas se instalan en el venv según sea necesario.</li><li>Los cambios de espacio de trabajo iniciados por API se aplican automáticamente; las compilaciones en curso se cancelan antes del cambio.</li></ul><b>Licencia</b>: Apache-2.0 — <a href='https://www.apache.org/licenses/LICENSE-2.0'>apache.org/licenses/LICENSE-2.0</a><br><b>Autor</b>: Ague Samuel Amen<br>© 2026 Ague Samuel Amen",
1618
"show_stats": "📊 Estadísticas",
1719
"select_lang": "Elegir idioma",
1820
"venv_button": "Elegir carpeta venv manualmente",

languages/fr.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"cancel_all": "⛔ Annuler",
1414
"suggest_deps": "🔎 Analyser les dépendances",
1515
"help": "❓ Aide",
16+
"help_title": "Aide",
17+
"help_text": "<b>PyCompiler ARK++ — Aide rapide</b><br><ul><li>1) Sélectionnez le Workspace et ajoutez vos fichiers .py.</li><li>2) Configurez les plugins de pré‑compilation via <b>API Loader</b> (BCASL).</li><li>3) Réglez les options dans l’onglet <b>PyInstaller</b> ou <b>Nuitka</b>.</li><li>4) Cliquez sur <b>Build</b> et suivez les logs.</li></ul><b>Notes</b><br><ul><li>Au démarrage d’un build, tous les contrôles d’action sont désactivés (y compris API Loader) jusqu’à la fin ou l’annulation.</li><li>La pré‑compilation (BCASL) se termine avant la compilation.</li><li>Un <i>venv</i> peut être créé automatiquement ; requirements.txt est installé s’il est présent ; les outils sont installés dans le venv si nécessaire.</li><li>Les demandes de changement de workspace via l’API sont appliquées automatiquement ; les builds en cours sont annulés avant le changement.</li></ul><b>Licence</b> : Apache-2.0 — <a href='https://www.apache.org/licenses/LICENSE-2.0'>apache.org/licenses/LICENSE-2.0</a><br><b>Auteur</b> : Ague Samuel Amen<br>© 2026 Ague Samuel Amen",
1618
"show_stats": "📊 Statistiques",
1719
"select_lang": "Choisir une langue",
1820
"venv_button": "Choisir un dossier venv manuellement",

languages/it.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"cancel_all": "⛔ Annulla",
1414
"suggest_deps": "🔎 Analizza dipendenze",
1515
"help": "❓ Aiuto",
16+
"help_title": "Aiuto",
17+
"help_text": "<b>PyCompiler ARK++ — Guida rapida</b><br><ul><li>1) Seleziona l'Area di lavoro e aggiungi i tuoi file .py.</li><li>2) Configura i plugin di pre-compilazione tramite <b>API Loader</b> (BCASL).</li><li>3) Regola le opzioni nella scheda <b>PyInstaller</b>, <b>Nuitka</b> o <b>CX_Freeze</b>.</li><li>4) Fai clic su <b>Compila</b> e segui i log.</li></ul><b>Note</b><br><ul><li>All'avvio di una compilazione, tutti i controlli di azione vengono disabilitati (incluso API Loader) fino al completamento o all'annullamento.</li><li>La pre-compilazione (BCASL) si completa prima della compilazione.</li><li>Un <i>venv</i> può essere creato automaticamente; requirements.txt viene installato se presente; gli strumenti vengono installati nel venv se necessario.</li><li>Le modifiche all'area di lavoro avviate dall'API vengono applicate automaticamente; le compilazioni in corso vengono annullate prima del cambio.</li></ul><b>Licenza</b>: Apache-2.0 — <a href='https://www.apache.org/licenses/LICENSE-2.0'>apache.org/licenses/LICENSE-2.0</a><br><b>Autore</b>: Ague Samuel Amen<br>© 2026 Ague Samuel Amen",
1618
"show_stats": "📊 Statistiche",
1719
"select_lang": "Scegli lingua",
1820
"venv_button": "Scegli cartella venv manualmente",

languages/ja.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"cancel_all": "⛔ キャンセル",
1414
"suggest_deps": "🔎 依存関係を解析",
1515
"help": "❓ ヘルプ",
16+
"help_title": "ヘルプ",
17+
"help_text": "<b>PyCompiler ARK++ — クイックヘルプ</b><br><ul><li>1) ワークスペースを選択し、.py ファイルを追加します。</li><li>2) <b>API Loader</b> (BCASL) を介してプリコンパイルプラグインを設定します。</li><li>3) <b>PyInstaller</b>、<b>Nuitka</b>、または <b>CX_Freeze</b> タブでオプションを調整します。</li><li>4) <b>ビルド</b> をクリックし、ログに従います。</li></ul><b>注記</b><br><ul><li>ビルドが開始されると、すべてのアクションコントロール (API Loader を含む) が完了またはキャンセルされるまで無効になります。</li><li>プリコンパイル (BCASL) はコンパイル前に完了します。</li><li><i>venv</i> は自動的に作成される可能性があります; requirements.txt が存在する場合にインストールされます; 必要に応じてツールが venv にインストールされます。</li><li>API によって開始されたワークスペースの変更は自動的に適用されます; 実行中のビルドは切り替え前にキャンセルされます。</li></ul><b>ライセンス</b>: Apache-2.0 — <a href='https://www.apache.org/licenses/LICENSE-2.0'>apache.org/licenses/LICENSE-2.0</a><br><b>著者</b>: Ague Samuel Amen<br>© 2026 Ague Samuel Amen",
1618
"show_stats": "📊 統計",
1719
"select_lang": "言語を選択",
1820
"venv_button": "venv フォルダーを手動で選択",

languages/ko.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"cancel_all": "⛔ 취소",
1414
"suggest_deps": "🔎 의존성 분석",
1515
"help": "❓ 도움말",
16+
"help_title": "도움말",
17+
"help_text": "<b>PyCompiler ARK++ — 빠른 도움말</b><br><ul><li>1) 작업 영역을 선택하고 .py 파일을 추가합니다.</li><li>2) <b>API Loader</b> (BCASL)를 통해 사전 컴파일 플러그인을 구성합니다.</li><li>3) <b>PyInstaller</b>, <b>Nuitka</b> 또는 <b>CX_Freeze</b> 탭에서 옵션을 조정합니다.</li><li>4) <b>빌드</b>를 클릭하고 로그를 따릅니다.</li></ul><b>참고</b><br><ul><li>빌드가 시작되면 모든 액션 컨트롤( API Loader 포함)이 완료되거나 취소될 때까지 비활성화됩니다.</li><li>사전 컴파일(BCASL)은 컴파일 전에 완료됩니다.</li><li><i>venv</i>는 자동으로 생성될 수 있습니다; requirements.txt가 존재하면 설치됩니다; 필요에 따라 도구가 venv에 설치됩니다.</li><li>API에 의해 시작된 작업 영역 변경은 자동으로 적용됩니다; 실행 중인 빌드는 전환 전에 취소됩니다.</li></ul><b>라이선스</b>: Apache-2.0 — <a href='https://www.apache.org/licenses/LICENSE-2.0'>apache.org/licenses/LICENSE-2.0</a><br><b>저자</b>: Ague Samuel Amen<br>© 2026 Ague Samuel Amen",
1618
"show_stats": "📊 통계",
1719
"select_lang": "언어 선택",
1820
"venv_button": "venv 폴더 직접 선택",

languages/pt-BR.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"cancel_all": "⛔ Cancelar",
1414
"suggest_deps": "🔎 Analisar dependências",
1515
"help": "❓ Ajuda",
16+
"help_title": "Ajuda",
17+
"help_text": "<b>PyCompiler ARK++ — Ajuda rápida</b><br><ul><li>1) Selecione o Espaço de trabalho e adicione seus arquivos .py.</li><li>2) Configure os plugins de pré-compilação via <b>API Loader</b> (BCASL).</li><li>3) Ajuste as opções na aba <b>PyInstaller</b>, <b>Nuitka</b> ou <b>CX_Freeze</b>.</li><li>4) Clique em <b>Compilar</b> e siga os logs.</li></ul><b>Notas</b><br><ul><li>Ao iniciar uma compilação, todos os controles de ação são desabilitados (incluindo API Loader) até terminar ou ser cancelado.</li><li>A pré-compilação (BCASL) é concluída antes da compilação.</li><li>Um <i>venv</i> pode ser criado automaticamente; requirements.txt é instalado se presente; ferramentas são instaladas no venv conforme necessário.</li><li>As mudanças de espaço de trabalho iniciadas pela API são aplicadas automaticamente; compilações em andamento são canceladas antes da mudança.</li></ul><b>Licença</b>: Apache-2.0 — <a href='https://www.apache.org/licenses/LICENSE-2.0'>apache.org/licenses/LICENSE-2.0</a><br><b>Autor</b>: Ague Samuel Amen<br>© 2026 Ague Samuel Amen",
1618
"show_stats": "📊 Estatísticas",
1719
"select_lang": "Escolher idioma",
1820
"venv_button": "Escolher pasta venv manualmente",

0 commit comments

Comments
 (0)