Black FridayVault Festival from 60 € to 35 €. Only until Cyber Monday.--d --h --m --sGet it →
VAULTSTORE
Vault Festival

Languages

Back to the index

The festival comes in English and Spanish. One setting changes every text: messages, the console, the portable desk, the set-up editor, the touch screens and the admin panel.

Change the language

  1. Open config/general.lua.

  2. Change Config.Locale:

    Config.Locale = 'es'   -- 'en' English, 'es' Spanish
  3. Restart the resource (restart vault-festival). Players inside the festival may need to reconnect.

Add a new language

Example: French (fr).

  1. Open the locales/ folder.

  2. Copy en.lua and name the copy fr.lua.

  3. Open fr.lua. Near the top, change Locales.en to Locales.fr:

    Locales.fr = {
  4. Translate only the texts between quotes on the right:

    sin_permiso = 'You are not allowed to operate the festival.',

    becomes

    sin_permiso = "Vous n'avez pas le droit d'utiliser le festival.",
  5. Open config/general.lua and set Config.Locale = 'fr'.

  6. Restart the resource (restart vault-festival). Players inside the festival may need to reconnect.

Rules

  • Never change the names on the left of the = (like sin_permiso). The script looks for them by name.
  • Keep %s and %d where they are. The script puts a value there (a price, a key, a name). 'Buy ticket ($%d)' → 'Acheter un billet (%d $)' is fine.
  • If your text has an apostrophe ', put the text between double quotes "..." (like the example above).
  • The file has a big ui part: those are the texts of the screens (console, desk, editor, touch screens, admin panel). Translate them the same way.
  • Some lists have a fixed order (like the console’s shortcut list). Translate each line and keep the order.
  • Anything you do not translate appears in English. You can translate a little at a time.

If you made a translation, you can share it with Vault Store so other buyers can use it.

Back to the index