Brunx
  • Home
  • Cinema System
    • Installation
    • Configuration
      • Language
      • Setting up cinema
      • Setting up store
      • Keybinds and commands
    • Frameworks
      • Client guide
      • Server guide
    • Exports and events
      • Client events
      • Server events
      • State bags
Powered by GitBook
On this page
  1. Cinema System
  2. Configuration

Language

It is possible to create or use existing languages within our script by accessing the file located at brnx-cinemasystem/modules/locales. In this file, you can define translations for the desired language. To select the language to be used, simply configure the config.locale variable in the brnx-cinemasystem/modules/shared/config.lua file, as shown in the example below.

brnx-cinemasystem/modules/shared/config.lua
config.locale = 'en'

If you wish to create a new language, make sure to follow the structure of other example files. The .json file format should remain the same, but with translations adapted to the new language. See the example below:

brnx-cinemasystem/modules/locales/jp.json
// JAPANESE
{
  "CURRENCY": "JPY",
  "SHOP": {
    "PURCHASE": "{name}を{price}で1枚購入しました。",
    "HAS_TICKET": "このチケットはすでに購入済みです。",
    "NO_MONEY": "お金が足りません。",
    "PURCHASE_TICKET": "{name}の映画のチケットを{hour}時、{room}の部屋で購入しました。"
  },
  "TABLET": {
    "PAYMENT": "支払い",
    "ROOM": "部屋",
    "NO_FILMS": "今日は視聴可能な映画はありません。",
    "SELECT_A_TIME": "時間を選択",
    "FINALIZE_PURCHASE": "チケット購入を完了しますか?",
    "CONFIRM": "確認",
    "CANCEL": "キャンセル",
    "BUY": "購入"
  },
  "ROOM": {
    "NO_TICKET": "このセッションのチケットをまだ持っていません。",
    "NO_SESSION": "セッションはまだ始まっていません。",
    "FINISHED": "セッションは終了しました。"
  }
}
PreviousConfigurationNextSetting up cinema