# chuyu-team/dism-multi-language architecture

> Architecture diagram of the GitHub repository chuyu-team/dism-multi-language, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chuyu-team/dism-multi-language
- Repository: https://github.com/chuyu-team/dism-multi-language

## Overview

#### Purpose and Scope
This repository is the resource, localization, documentation, and support-site companion for Dism++. It does not contain the main Dism++ application. Its primary deliverables are cleanup/optimization rules, desktop UI translations, a small Windows resource-building utility, static multilingual web/help content, and a PHP crash-statistics backend.

#### Primary Entry Points
- Desktop resource consumers load the rules and localized XML assets: `Data.xml`, `Languages/en.xml`, `Languages/zh-Hans.xml`.
- The standalone Visual Studio solution builds the RCMake utility: `Languages.sln`, `RCMake/RCMake.cpp`, `RCMake/RCMake.vcxproj`.
- Website hosting begins at `www.chuyu.me/index.html`; documentation entry pages are localized under `www.chuyu.me/en/Document.html` and `www.chuyu.me/zh-Hans/Document.html`.
- Crash/update telemetry is served through PHP endpoints: `chuyu-analysis/crash_report.php`, `chuyu-analysis/client_update.php`, `chuyu-analysis/query.php`.

#### Dism++ Resource Layer
`Data.xml` is the central declarative ruleset supplying cleanup and optimization behavior to the external Dism++ executable. It is a hard boundary: this repo defines data consumed by Dism++, rather than executing system cleanup itself. Desktop strings are separately localized by language-specific XML files in `Languages/`, with Simplified Chinese identified as the development-default source language.

#### Localization Model
The desktop localization catalog is a flat, parallel XML set, e.g. `Languages/en.xml`, `Languages/de.xml`, and `Languages/zh-Hant.xml`. Website localization is independently maintained under `www.chuyu.me/`, including site-level XML dictionaries such as `www.chuyu.me/en.xml` and translated documentation trees such as `www.chuyu.me/en/library/` and `www.chuyu.me/zh-Hant/library/`. These are separate resource domains and should not be assumed mechanically interchangeable.

#### Resource Build Utility
`RCMake/` is a native C++/Visual Studio component, centered on `RCMake/RCMake.cpp` and built through `RCMake/RCMake.vcxproj`. Together with the solution-level `Languages.sln`, it is the repository’s only evident compiled entry point and likely supports generation or packaging of language/resource artifacts. Its Windows/MSVC project files establish the material build runtime.

#### Website and Documentation Delivery
`www.chuyu.me/` is a static website deployment root: shared shell and assets are in `www.chuyu.me/Base.html`, `www.chuyu.me/css/`, and `www.chuyu.me/js/`. The `amWiki` subtree provides client-side documentation rendering, navigation, search, storage, and web-worker search capabilities through files such as `www.chuyu.me/amWiki/js/amWiki.js` and `www.chuyu.me/amWiki/js/amWiki.search.worker.js`. Markdown documentation is localized and structured by navigation manifests, e.g. `www.chuyu.me/en/library/$navigation.md`.

#### Telemetry Backend Boundary
`chuyu-analysis/` is a separate PHP web backend for Dism++ crash reporting, update client interactions, querying, and statistics display. Request-facing scripts (`crash_report.php`, `client_update.php`, `statistics.php`) form the server boundary; static dashboards (`index.html`, `statistics.html`) are its browser-facing surface. No database schema or deployment configuration is present in the tree, so persistence and hosting dependencies are external.

#### Operational Separation
The repository combines independently deployable artifacts: XML resources shipped with Dism++, the Windows RCMake build tool, static official-site/help files, and PHP telemetry endpoints. Changes should preserve these boundaries: desktop XML compatibility, website translation parity and navigation paths, native MSVC build behavior, and server-side PHP endpoint contracts.

Main entry points: [`www.chuyu.me/amWiki/js/amWiki.js`](https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/amWiki/js/amWiki.js) (amWiki renderer), [`Languages/en.xml`](https://github.com/chuyu-team/dism-multi-language/blob/master/Languages/en.xml) (Desktop language catalogs), [`www.chuyu.me/en/Document.html`](https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/en/Document.html) (Localized documentation), [`www.chuyu.me/index.html`](https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/index.html) (Official site root)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop resources"]
  node_dismpp{{"Dism++ executable<br/>external consumer"}}
  node_data_rules["Cleanup and optimization rules<br/>XML ruleset<br/>[Data.xml]"]
  node_desktop_catalogs["Desktop language catalogs<br/>XML localization<br/>[en.xml]"]
  node_zh_hans_catalog["Chinese source catalog<br/>XML localization<br/>[zh-Hans.xml]"]
end

subgraph group_build["Native build tool"]
  node_languages_solution["Languages solution<br/>Visual Studio solution<br/>[Languages.sln]"]
  node_rcmake_project["RCMake project<br/>MSVC project<br/>[RCMake.vcxproj]"]
  node_rcmake["RCMake utility<br/>C++ utility<br/>[RCMake.cpp]"]
end

subgraph group_site["Static website and help"]
  node_site_root["Official site root<br/>static deployment<br/>[index.html]"]
  node_site_shell["Shared site shell<br/>HTML and assets<br/>[Base.html]"]
  node_site_dictionary["Website dictionaries<br/>XML localization<br/>[en.xml]"]
  node_localized_docs["Localized documentation<br/>HTML and Markdown<br/>[Document.html]"]
  node_doc_navigation["Documentation navigation<br/>Markdown manifest<br/>[$navigation.md]"]
  node_amwiki["amWiki renderer<br/>client-side documentation app<br/>[amWiki.js]"]
  node_search_worker["Search worker<br/>web worker"]
end

subgraph group_telemetry["Telemetry backend"]
  node_crash_endpoint["Crash reporting endpoint<br/>PHP endpoint<br/>[crash_report.php]"]
  node_update_endpoint["Client update endpoint<br/>PHP endpoint<br/>[client_update.php]"]
  node_query_endpoint["Query endpoint<br/>PHP endpoint<br/>[query.php]"]
  node_statistics["Statistics surface<br/>PHP and static dashboard<br/>[statistics.php]"]
  node_external_persistence[("External persistence and hosting<br/>external dependency")]
end

node_data_rules -->|"defines cleanup behavior"| node_dismpp
node_desktop_catalogs -->|"supplies UI strings"| node_dismpp
node_zh_hans_catalog -.->|"default source language"| node_desktop_catalogs
node_languages_solution -->|"builds"| node_rcmake_project
node_rcmake_project -->|"compiles"| node_rcmake
node_rcmake -.->|"packages or generates"| node_desktop_catalogs
node_site_root -->|"uses"| node_site_shell
node_site_shell -->|"localizes"| node_site_dictionary
node_site_root -->|"links to help"| node_localized_docs
node_localized_docs -->|"structured by"| node_doc_navigation
node_amwiki -->|"renders"| node_localized_docs
node_amwiki -->|"loads navigation"| node_doc_navigation
node_amwiki -->|"delegates search"| node_search_worker
node_crash_endpoint -.->|"stores or forwards"| node_external_persistence
node_update_endpoint -.->|"uses external service state"| node_external_persistence
node_query_endpoint -.->|"queries"| node_external_persistence
node_statistics -.->|"presents query results"| node_query_endpoint
node_statistics -.->|"reads statistics"| node_external_persistence

click node_data_rules "https://github.com/chuyu-team/dism-multi-language/blob/master/Data.xml"
click node_desktop_catalogs "https://github.com/chuyu-team/dism-multi-language/blob/master/Languages/en.xml"
click node_zh_hans_catalog "https://github.com/chuyu-team/dism-multi-language/blob/master/Languages/zh-Hans.xml"
click node_languages_solution "https://github.com/chuyu-team/dism-multi-language/blob/master/Languages.sln"
click node_rcmake_project "https://github.com/chuyu-team/dism-multi-language/blob/master/RCMake/RCMake.vcxproj"
click node_rcmake "https://github.com/chuyu-team/dism-multi-language/blob/master/RCMake/RCMake.cpp"
click node_site_root "https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/index.html"
click node_site_shell "https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/Base.html"
click node_site_dictionary "https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/en.xml"
click node_localized_docs "https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/en/Document.html"
click node_doc_navigation "https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/en/library/%24navigation.md"
click node_amwiki "https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/amWiki/js/amWiki.js"
click node_search_worker "https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/amWiki/js/amWiki.search.worker.js"
click node_crash_endpoint "https://github.com/chuyu-team/dism-multi-language/blob/master/chuyu-analysis/crash_report.php"
click node_update_endpoint "https://github.com/chuyu-team/dism-multi-language/blob/master/chuyu-analysis/client_update.php"
click node_query_endpoint "https://github.com/chuyu-team/dism-multi-language/blob/master/chuyu-analysis/query.php"
click node_statistics "https://github.com/chuyu-team/dism-multi-language/blob/master/chuyu-analysis/statistics.php"

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_dismpp,node_data_rules,node_desktop_catalogs,node_zh_hans_catalog toneBlue
class node_languages_solution,node_rcmake_project,node_rcmake toneAmber
class node_site_root,node_site_shell,node_site_dictionary,node_localized_docs,node_doc_navigation,node_amwiki,node_search_worker toneMint
class node_crash_endpoint,node_update_endpoint,node_query_endpoint,node_statistics,node_external_persistence toneRose
```

## Components

### Desktop resources

Assets consumed by the external Dism++ application.

- **Dism++ executable**: external consumer · External application that consumes repository XML resources.
- [Cleanup and optimization rules](https://github.com/chuyu-team/dism-multi-language/blob/master/Data.xml): XML ruleset · Central declarative behavior data. · `Data.xml`
- [Desktop language catalogs](https://github.com/chuyu-team/dism-multi-language/blob/master/Languages/en.xml): XML localization · Flat parallel UI translation set. · `Languages/en.xml`
- [Chinese source catalog](https://github.com/chuyu-team/dism-multi-language/blob/master/Languages/zh-Hans.xml): XML localization · Simplified Chinese is the development-default language. · `Languages/zh-Hans.xml`

### Native build tool

Windows/MSVC resource utility.

- [Languages solution](https://github.com/chuyu-team/dism-multi-language/blob/master/Languages.sln): Visual Studio solution · `Languages.sln`
- [RCMake project](https://github.com/chuyu-team/dism-multi-language/blob/master/RCMake/RCMake.vcxproj): MSVC project · Defines the Windows native build runtime. · `RCMake/RCMake.vcxproj`
- [RCMake utility](https://github.com/chuyu-team/dism-multi-language/blob/master/RCMake/RCMake.cpp): C++ utility · Compiled resource generation or packaging tool. · `RCMake/RCMake.cpp`

### Static website and help

Independently localized site and documentation delivery.

- [Official site root](https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/index.html): static deployment · Static hosting entry point. · `www.chuyu.me/index.html`
- [Shared site shell](https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/Base.html): HTML and assets · Common page layout, CSS, and JavaScript. · `www.chuyu.me/Base.html`
- [Website dictionaries](https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/en.xml): XML localization · Separate localization domain from desktop XML. · `www.chuyu.me/en.xml`
- [Localized documentation](https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/en/Document.html): HTML and Markdown · Translated help trees and entry pages. · `www.chuyu.me/en/Document.html`
- [Documentation navigation](https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/en/library/%24navigation.md): Markdown manifest · Defines localized documentation structure. · `www.chuyu.me/en/library/$navigation.md`
- [amWiki renderer](https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/amWiki/js/amWiki.js): client-side documentation app · Provides rendering, navigation, storage, and search. · `www.chuyu.me/amWiki/js/amWiki.js`
- [Search worker](https://github.com/chuyu-team/dism-multi-language/blob/master/www.chuyu.me/amWiki/js/amWiki.search.worker.js): web worker · Client-side documentation search worker. · `www.chuyu.me/amWiki/js/amWiki.search.worker.js`

### Telemetry backend

PHP request surface separate from the static site.

- [Crash reporting endpoint](https://github.com/chuyu-team/dism-multi-language/blob/master/chuyu-analysis/crash_report.php): PHP endpoint · Receives Dism++ crash reports. · `chuyu-analysis/crash_report.php`
- [Client update endpoint](https://github.com/chuyu-team/dism-multi-language/blob/master/chuyu-analysis/client_update.php): PHP endpoint · Serves update client interactions. · `chuyu-analysis/client_update.php`
- [Query endpoint](https://github.com/chuyu-team/dism-multi-language/blob/master/chuyu-analysis/query.php): PHP endpoint · Request-facing telemetry query API. · `chuyu-analysis/query.php`
- [Statistics surface](https://github.com/chuyu-team/dism-multi-language/blob/master/chuyu-analysis/statistics.php): PHP and static dashboard · Browser-facing telemetry statistics. · `chuyu-analysis/statistics.php`
- **External persistence and hosting**: external dependency · No database schema or deployment configuration is present.

## Connections

- Cleanup and optimization rules → Dism++ executable: defines cleanup behavior
- Desktop language catalogs → Dism++ executable: supplies UI strings
- Chinese source catalog → Desktop language catalogs: default source language
- Languages solution → RCMake project: builds
- RCMake project → RCMake utility: compiles
- RCMake utility → Desktop language catalogs: packages or generates · Likely resource-artifact support role.
- Official site root → Shared site shell: uses
- Shared site shell → Website dictionaries: localizes
- Official site root → Localized documentation: links to help
- Localized documentation → Documentation navigation: structured by
- amWiki renderer → Localized documentation: renders
- amWiki renderer → Documentation navigation: loads navigation
- amWiki renderer → Search worker: delegates search
- Crash reporting endpoint → External persistence and hosting: stores or forwards
- Client update endpoint → External persistence and hosting: uses external service state
- Query endpoint → External persistence and hosting: queries
- Statistics surface → Query endpoint: presents query results
- Statistics surface → External persistence and hosting: reads statistics
