Languages
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
-
Open
config/general.lua. -
Change
Config.Locale:Config.Locale = 'es' -- 'en' English, 'es' Spanish -
Restart the resource (
restart vault-festival). Players inside the festival may need to reconnect.
Add a new language
Example: French (fr).
-
Open the
locales/folder. -
Copy
en.luaand name the copyfr.lua. -
Open
fr.lua. Near the top, changeLocales.entoLocales.fr:Locales.fr = { -
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.", -
Open
config/general.luaand setConfig.Locale = 'fr'. -
Restart the resource (
restart vault-festival). Players inside the festival may need to reconnect.
Rules
- Never change the names on the left of the
=(likesin_permiso). The script looks for them by name. - Keep
%sand%dwhere 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
uipart: 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.