# Languages & Translations

## Translations

Every line the plugin can print lives in one file:

```
PhoenixCurrencies/translations/translations.en.yml
```

Messages to players, command replies, the transaction log, the banknote item, the Discord posts and the whole in-game editor are all in there. Edit it and run /pcur reload to apply the new text. The wallet and the balance history are in their own [menu files](customize-menus.md).

## Translating the plugin

Everything sits under `en` at the top of the file. Translate the right-hand side and leave the keys and the placeholders alone. Anything wrapped in `%` is filled in by the plugin, so `%amount%`, `%player%` and `%currency%` have to survive the translation to keep working.

```yaml
en:
  pay:
    sent: "%prefix%&aYou sent &f%amount% &ato &e%player%&a. You have &f%balance% &aleft."
```

## The Prefix

`%prefix%` at the start of a message is replaced with the `plugin-prefix` line, so the prefix of every message is changed in one place. Remove `%prefix%` from a message to send that one without it.

## Short Amounts

`format.compact-suffixes` lists the endings of short amounts, from thousands up: `k`, `M`, `B`, `T` and `Q` by default. The same endings are accepted when players type an amount, so translating them changes both.

## Reasons

The `reasons` section names each kind of change, such as Payment or Admin Give, as shown in the transaction log and the Discord posts.

## Updating the plugin

New keys reach your file on their own, with their English default. Keys you already have are never touched, so a message whose default wording changed in an update keeps your old text.

Source: https://www.phoenixplugins.com/docs/phoenix-currencies/configurations/languages