Messages & Language
Set the chat prefix, pick from 25 bundled languages, or ship your own translation.
Every line AT-ShoppingMall sends to players is a message key you can edit. Pick one of the 25 bundled languages, tweak the wording, or drop in a translation of your own.
The chat prefix
messages.prefix in config.yml is prepended to most plugin messages. It supports hex
colors and gradients:
messages:
prefix: "&#e84d4d&lShoppingMall &8» &r"Picking a language
The active language is set in config.yml:
localization:
language: english_usThe value is a file name (without .yml) from the lang/ folder. After changing it, run
/sm reload.
All 25 bundled languages are extracted to plugins/AT-ShoppingMall/lang/ on first start, so
you can open and edit any of them. Missing keys in any file fall back to english_us.
The bundled languages
Twenty real-world languages, plus five just-for-fun ones.
For the fun of it
Run a mall fit for the House of El? Set language: kryptonian and your shop signs greet
visitors like they just landed in Kandor. Or go full Qo'noS with klingon, carve prices in
egyptian hieroglyphs, keep it minimalist in toki_pona, or add a touch of old-world
charm with victorian. Pure flavor: every key still works exactly the same.
Custom translations
You don't have to use a bundled file. Drop your own lang/<name>.yml into the plugin folder
and point localization.language at it:
Copy a base file
Duplicate lang/english_us.yml (the canonical file with every key) to, say,
lang/my_language.yml.
Translate the values
Edit the text on the right of each key. Leave the keys themselves untouched. Any key you skip
falls back to english_us.
Activate it
Set localization.language: my_language and run /sm reload.
Upgrading the plugin? Leave config-version in each lang file as-is, it lets the plugin
merge in any new message keys automatically. Don't lower it by hand.
Older installs that still have a single messages.yml are migrated to
lang/english_us.yml automatically on first load, no action needed.