# bbdd987/xampp-arabic-translation architecture

> Architecture diagram of the GitHub repository bbdd987/xampp-arabic-translation, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bbdd987/xampp-arabic-translation
- Repository: https://github.com/bbdd987/xampp-arabic-translation

## Overview

This repository packages Arabic localization for an existing Windows XAMPP installation; it does not distribute XAMPP itself. The main workflow is to run the installer, which verifies the package and supported installation, stages localization files with recoverable backups, then asks the user to enable Arabic manually in the control panel. Restore applies a selected backup. A second product branch supplies localized Dashboard pages and documentation, with Arabic as the default and an English alternative. Relationships are based on the README and shown installer/build excerpts; Dashboard runtime serving details are documented only at a high level.

Main entry points: [`scripts/installer.php`](https://github.com/bbdd987/xampp-arabic-translation/blob/main/scripts/installer.php) (Install and restore engine), [`dashboard/overlay/htdocs/dashboard`](https://github.com/bbdd987/xampp-arabic-translation/tree/main/dashboard/overlay/htdocs/dashboard) (Localized Dashboard pages), [`Install.cmd`](https://github.com/bbdd987/xampp-arabic-translation/blob/main/Install.cmd) (Install launcher), [`Restore.cmd`](https://github.com/bbdd987/xampp-arabic-translation/blob/main/Restore.cmd) (Restore launcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_g_workflow["User workflow"]
  node_install_cmd["Install launcher<br/>[Install.cmd]"]
  node_restore_cmd["Restore launcher<br/>[Restore.cmd]"]
end

subgraph group_g_engine["Install and recovery"]
  node_engine["Install and restore engine<br/>[installer.php]"]
  node_compat["Compatibility fingerprints<br/>[compatibility.json]"]
  node_backup[("Recovery backups")]
  node_xampp_files["XAMPP installation files"]
end

subgraph group_g_control["Control panel language"]
  node_panel["XAMPP control panel"]
  node_locale["Panel translations"]
end

subgraph group_g_dashboard["Dashboard localization"]
  node_dashboard_pages["Localized Dashboard pages"]
  node_dashboard_styles["Arabic Dashboard styling<br/>[arabic.css]"]
  node_nav_fallback["Offline navigation fallback"]
end

node_user(("XAMPP user"))
node_apache["Apache Dashboard host"]

node_user -->|"runs install"| node_install_cmd
node_install_cmd -->|"invokes engine"| node_engine
node_engine -->|"checks fingerprints"| node_compat
node_engine -->|"installs files"| node_xampp_files
node_engine -->|"saves originals"| node_backup
node_user -->|"runs restore"| node_restore_cmd
node_restore_cmd -->|"invokes engine"| node_engine
node_engine -->|"reads selected backup"| node_backup
node_engine -->|"restores files"| node_xampp_files
node_user -->|"selects language"| node_panel
node_engine -->|"installs translations"| node_locale
node_panel -->|"loads selected translation"| node_locale
node_apache -->|"serves pages"| node_dashboard_pages
node_dashboard_pages -->|"links styling"| node_dashboard_styles
node_dashboard_pages -->|"loads navigation fallback"| node_nav_fallback

click node_install_cmd "https://github.com/bbdd987/xampp-arabic-translation/blob/main/Install.cmd"
click node_restore_cmd "https://github.com/bbdd987/xampp-arabic-translation/blob/main/Restore.cmd"
click node_engine "https://github.com/bbdd987/xampp-arabic-translation/blob/main/scripts/installer.php"
click node_compat "https://github.com/bbdd987/xampp-arabic-translation/blob/main/dashboard/compatibility.json"
click node_locale "https://github.com/bbdd987/xampp-arabic-translation/tree/main/locale"
click node_dashboard_pages "https://github.com/bbdd987/xampp-arabic-translation/tree/main/dashboard/overlay/htdocs/dashboard"
click node_dashboard_styles "https://github.com/bbdd987/xampp-arabic-translation/blob/main/dashboard/overlay/htdocs/dashboard/stylesheets/arabic.css"
click node_nav_fallback "https://github.com/bbdd987/xampp-arabic-translation/blob/main/dashboard/overlay/htdocs/dashboard/javascripts/arabic-navigation.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_install_cmd,node_restore_cmd,node_user toneBlue
class node_engine,node_compat,node_backup,node_xampp_files toneAmber
class node_panel,node_locale toneMint
class node_dashboard_pages,node_dashboard_styles,node_nav_fallback toneRose
class node_apache toneIndigo
```

## Components

### User workflow

- [Install launcher](https://github.com/bbdd987/xampp-arabic-translation/blob/main/Install.cmd): `Install.cmd`
- [Restore launcher](https://github.com/bbdd987/xampp-arabic-translation/blob/main/Restore.cmd): `Restore.cmd`

### Install and recovery

- [Install and restore engine](https://github.com/bbdd987/xampp-arabic-translation/blob/main/scripts/installer.php): `scripts/installer.php`
- [Compatibility fingerprints](https://github.com/bbdd987/xampp-arabic-translation/blob/main/dashboard/compatibility.json): `dashboard/compatibility.json`
- **Recovery backups**
- **XAMPP installation files**

### Control panel language

- **XAMPP control panel**
- [Panel translations](https://github.com/bbdd987/xampp-arabic-translation/tree/main/locale): `locale`

### Dashboard localization

- [Localized Dashboard pages](https://github.com/bbdd987/xampp-arabic-translation/tree/main/dashboard/overlay/htdocs/dashboard): `dashboard/overlay/htdocs/dashboard`
- [Arabic Dashboard styling](https://github.com/bbdd987/xampp-arabic-translation/blob/main/dashboard/overlay/htdocs/dashboard/stylesheets/arabic.css): `dashboard/overlay/htdocs/dashboard/stylesheets/arabic.css`
- [Offline navigation fallback](https://github.com/bbdd987/xampp-arabic-translation/blob/main/dashboard/overlay/htdocs/dashboard/javascripts/arabic-navigation.js): `dashboard/overlay/htdocs/dashboard/javascripts/arabic-navigation.js`

### Other components

- **XAMPP user**
- **Apache Dashboard host**

## Connections

- XAMPP user → Install launcher: runs install (evidence: `README.md`)
- Install launcher → Install and restore engine: invokes engine (evidence: `README.md`)
- Install and restore engine → Compatibility fingerprints: checks fingerprints (evidence: `scripts/installer.php`)
- Install and restore engine → XAMPP installation files: installs files (evidence: `scripts/installer.php`)
- Install and restore engine → Recovery backups: saves originals (evidence: `scripts/installer.php`)
- XAMPP user → Restore launcher: runs restore (evidence: `README.md`)
- Restore launcher → Install and restore engine: invokes engine (evidence: `README.md`)
- Install and restore engine → Recovery backups: reads selected backup (evidence: `scripts/installer.php`)
- Install and restore engine → XAMPP installation files: restores files (evidence: `scripts/installer.php`)
- XAMPP user → XAMPP control panel: selects language (evidence: `README.md`)
- Install and restore engine → Panel translations: installs translations (evidence: `scripts/installer.php`)
- XAMPP control panel → Panel translations: loads selected translation (evidence: `README.md`)
- Apache Dashboard host → Localized Dashboard pages: serves pages (evidence: `README.md`)
- Localized Dashboard pages → Arabic Dashboard styling: links styling
- Localized Dashboard pages → Offline navigation fallback: loads navigation fallback
