Skip to content

Latest commit

 

History

History
79 lines (63 loc) · 3.64 KB

AdminPanelLocalization.md

File metadata and controls

79 lines (63 loc) · 3.64 KB

Admin panel localization

Select 简体中文 in the admin panel language selector to use the Simplified Chinese (zh-CN) resources, or Deutsch to use the German (de) resources. The selected culture is preserved by the existing culture cookie. English remains the neutral resource language and fallback.

Coverage

The translations cover administration pages, shared form controls, model labels and descriptions, enum captions, configuration summaries, plugin metadata, plugin configuration fields, and configuration update descriptions.

Regional culture names are preserved during culture selection and request localization. Culture discovery also checks deployed satellite assemblies, so zh-CN is available on platforms where ICU enumerates a different Chinese culture name.

Plugin extension point names and authorization roles are translated for display. Their stored identifiers are unchanged. Protocol identifiers, command words, external plugin text without a translation retain their original text. Model ToString() summaries are culture-dependent and may also appear localized in logs.

Names stored in game configuration data are separate from UI resource files. Adding these resources does not translate existing database records or alter configuration initialization, gameplay values, or database schemas.

Maintaining translations

Add neutral text to the corresponding Properties/*.resx file. Chinese translations are optional: missing keys fall back to English and do not block other contributions. When adding a translation to *.zh-CN.resx, use the same key and keep formatting placeholders unchanged. Model captions use the naming conventions in ModelResourceProvider; plugin DisplayAttribute metadata must reference public resource properties. Use {Type}_{Property}_Name / _Description for property metadata and {Type}_Name / _Description for type metadata, rather than numbered keys.

Keep contribution descriptions, source comments, and documentation in English. Do not translate command syntax, packet identifiers, or authorization values.

German terminology

The German texts (*.de.resx) use the same terms as the German translation of the open source game client (sven-n/MuMain, src/Localization/*.de.resx), so players see the same words in server messages and in the client. They address the player formally ("Sie"), like the client. Map, class and event names follow the client (e.g. Verlorener Turm, Dunkler Ritter, Lord-Imperator, Blutburg, Illusionstempel, Festung der Kaiserlichen Wächter); the event names Devil Square, Chaos Castle and Castle Siege are not translated, like in the client. The client's docs/translation-system.md lists the shared terms. Monster and skill names stay English, because the client shows them in English. Item names are German, like in the client's item data (see Item name localization).

Run the admin panel tests with:

dotnet test tests/MUnique.OpenMU.Web.Tests/MUnique.OpenMU.Web.Tests.csproj \
  -c Release -p:ci=true

To run them again without code changes (for example with a --filter), build once and use --no-build with the same options, so the project isn't rebuilt each time:

dotnet build tests/MUnique.OpenMU.Web.Tests/MUnique.OpenMU.Web.Tests.csproj \
  -c Release -p:ci=true
dotnet test tests/MUnique.OpenMU.Web.Tests/MUnique.OpenMU.Web.Tests.csproj \
  -c Release -p:ci=true --no-build

Localization tests cover culture selection, enum round trips, model captions and summaries, plugin resource metadata, English fallback and translated placeholders, and paging with the shared grid state.