Not ready for production (before 0.1.0). Like MR Moqui, whose text these packs carry into other languages, this component is in early development. Screens and messages still change, so a pack can trail the English, and the data model changes without migrations. MR Moqui is for development machines only for now; the full notice is at the top of the mr-moqui README.
Language packs for MR Moqui, the Moqui framework in Rust, and its applications: the labels, field titles, messages, enumeration and status names, and email and print text, as data that loads into a database.
| Language | Load type | Files |
|---|---|---|
Spanish: neutral international Spanish, with a short overlay for Spain (es_ES) |
es |
data/es/ |
| Simplified Chinese | zh |
data/zh/ |
| Covered | Not yet | |
|---|---|---|
| mr-moqui | framework, tools, webroot, basic-comms, example, dev-aide | |
| mr-mantle | Enumerations and statuses, states and provinces, messages and templates | |
| mr-marble | Screens, email and print | |
| mr-boss | All sixteen apps, and the shared screens they mount | |
| mr-pass | Account, Billing, Forum, Marketing, Members, Sales, Shop, Sites, Smithy, Supplier, and Support |
Texts longer than 255 characters stay in English; they are listed in docs/Strings-Left-In-English.md.
In an mr-moqui checkout, get the component with
./moq component-get mr-l10n. Each language's files have its code as their data type, so they load when that type
is loaded:
- In development,
./moq loadloads every type, and so does the first start of./moq runon an empty database. Both languages are there. - With the production conf or the binary alone,
moqui loadand an empty-database start loadseed,seed-initialandinstallonly. Load Spanish withmoqui load types=esand Simplified Chinese withmoqui load types=zh, or addesorzhto a longer type list;types=allincludes them.
A database that already has data does not pick a language up until that load runs. A person sees it when their account's locale is that language.
A new language is a directory data/<code>/ whose files follow the Spanish key set, with the same names under the
new prefix and type="<code>". The rules under Writing rows apply, and the language gets a section
in docs/Voice.md with its register, glossary and the words it avoids. A regional variant is a short
overlay file, as EsRegional.xml is for es_ES, not a second catalog.
Each language's files are in data/<lang>/, named by prefix (Es or Zh) and area, split into A, B, … parts when
large:
| Name | Contents |
|---|---|
Chrome* |
Shared labels and field titles |
Messages*, FrameworkExtra |
Service, screen and framework messages, including seed text added after the first catalog |
SeedEnum*, SeedMeasure, Geo |
Framework enumeration and status text, currency and unit descriptions, country names |
Tools*, Webroot, Example |
The tools screens, login and shell, the example app |
Comms* |
basic-comms: mail, chat and calls |
DevAide |
Dev AIDE |
Mantle* |
mr-mantle enumerations, states and provinces, messages and templates |
Marble* |
mr-marble screens, email and print |
Boss* |
mr-boss: all sixteen apps, and the shared screens they mount |
Pass* |
mr-pass: Account, the customer and supplier portals, Smithy, Forum, and Shop |
EsRegional.xml |
es_ES overrides (still type es); es_MX has none of its own |
Geo.geoName, enumeration and status descriptions, status transition names, and UOM description and symbol have enable-localization="true", so these rows show on screen. Product feature description and abbreviation do too. geoNameLocal is the place's own name, not the viewer's language. Party names, product names, and GL account names are stored text and stay as entered.
The wording rules and glossaries for each language are in docs/Voice.md. In short: a row is stored
only when the text differs from the English original (the omitted originals are listed in data/<lang>/unchanged-*.txt,
which the loader ignores); placeholders (${...}, {0}, {n,choice,...}) and number patterns are copied unchanged;
and the localized value is at most 255 characters (LocalizedMessage.original holds at most 255 too). Longer texts
stay in English; they are listed in docs/Strings-Left-In-English.md.
CC0 1.0 Universal with a Grant of Patent License. To contribute code, sign AUTHORS.md in a commit from the account that submits the pull request; its Contributing section has the details.