rcore.cz
  • rcore.cz
  • Store
  • Discord
  • Web administration
  • Our store
  • YouTube
  • 🐌CFX Auth system
    • CFX Auth system
    • Transfer script to another account
    • Error: You lack the required entitlement
    • Error: syntax error near '<\1>'
  • Server
    • Updating server
    • onesync
  • Administration
    • How to change IP
    • Forgot your password?
  • FAQ
    • General issues
    • Cannot verify license
    • Cannot hear any music
    • ECONNRESET: Unable to execute a query
  • paid resources
    • 🏑rcore_airhockey
      • How To Play
      • Spawning a Hockey Table
    • 💪rcore_armwrestling
      • How to place arm table
    • 🎴rcore_banners
      • How to Begin
      • How to Update
      • Common issues & solutions
      • Installation
      • Inventory Items
      • Configs
        • General
        • Billboards
        • Business
        • Permissions
        • Job
        • Config
      • Guides
        • How to change UI logo?
        • How to create new server banner?
        • How to create business?
        • How to buy billboard?
        • How to place banner?
        • Cannot see banners?
        • Expired images
      • API
    • 🏀rcore_basketball
      • Configure new hoop
    • 🏓rcore_beerpong
      • How to use
    • 📹rcore_bodycam
      • Integration
      • Anticheat
      • Recordings don't save
    • 🎳rcore_bowling
      • Configure new alley
    • 🎥rcore_cam
      • Integration
      • Anticheat
    • ⛺rcore_camping
      • Installation
      • Config
      • Consumable Beer
      • OX Inventory
      • Frameworks
      • API
    • 🎪rcore_carnival
      • Create new minigame
    • 🃏rcore_casino
      • Installing Maps
        • UncleJust Casino
        • DlcIplLoader
        • Gabz Casino
        • NoPixel Casino
        • K4MB1 Casino
        • rcore_casino_interior
        • Underground Casino Paleto
        • K4MB1 Enterable Diamond Casino
        • Patoche Casino
        • Clawles: Casino Los Santos
        • Molo Casino
        • Jurassic Jackpot Casino
      • Standalone Version
      • Custom Framework
      • Installing on QBCore
      • Installing on ESX
      • Installing Inventory Items
      • The Cashier
      • Society
      • Lucky Wheel & Podium Vehicle
      • Table Games
      • Slot Machines
      • Casino Bar
      • Inside Track
      • Translations
      • Discord Hook
      • MYSQL Info
      • CasinoControl (Exports)
      • Casino Job & Office
      • Changing Odds
    • 👕rcore_clothes
      • Dark theme
      • Adding a new clothes shop
      • Components
      • Restriction for certian job
      • Custom clothes price
      • Clothes blacklist / Whitelist
      • esx_accessories
      • qb_apartments
      • cui_character
      • API: Open outfits
      • API: Open clothes shop
    • 🎽rcore_clothing 🆕
      • How to begin
      • Installation
      • Migration
      • Configs
        • Main config
        • Price config
        • Shop config
        • Peds config
        • Undress clothes
      • FAQ
      • Admin mode
        • Modes
        • Image debugging
        • Stock management
      • Adding replace/addon clothes
      • Categorize clothing automatically
      • API
      • Troubleshooting
      • Integration
        • Multichar integration guide
        • esx_multicharacter
        • esx_multicharacter OLD
        • qb-multicharacter
        • crm_multichar
        • codem_multichar
        • okok_multichar
        • qbox_multichar
        • ESX vms_multichar
        • QB vms_multichar
        • qs-multicharacter
        • um_multichar
        • wais_multicharacter v2
        • zr_multichar
        • zsx_multicharacter
    • 💃rcore_dance
      • Installation
      • Config
      • FAQ
      • Troubleshooting
      • API
    • 📱rcore_dispatch
      • Config
      • Add alerts
      • Add jobs
      • Locales
      • Logs
      • Integrations
      • Framework
      • Voice and radio
    • 🔒rcore_doorlock
      • Installation
      • Configuration
      • Migration
      • Business
        • Configuration
        • Locksmith Example
      • Inventory Items
      • Keychain
      • API
    • 🍺rcore_drunk
      • How to place drink on table
      • Create new item drink
      • ox inventory
      • API
      • How to use
    • 🥚rcore_easter
      • Installation
      • Configuration
      • API
    • ⛽rcore_fuel
      • Installation
        • ESX
        • QBCore
      • Inventory
        • ESX
        • QBCore
        • ox_inventory
      • Config
        • New fuel station
        • Change fuel type for vehicle
        • Change fuel capacity for vehicle
        • Setting fuel station to be ownable
        • Wrong fuel type
        • Change gas price
      • Integrations
        • API
        • Vehicle keys integrations
        • Hud/Garage integration
      • Server
        • Commands
    • 🔫rcore_gangs
      • API
        • Client
        • Server
      • Integration
        • Framework
        • Inventory
        • Dispatch
      • Localization
      • Configuration
        • Custom gang zone
    • 🚙rcore_garage
      • qb-phone missing garages name
      • missing screenshots
    • 📙rcore_guidebook
      • Installation
      • Config
      • Data permissions
      • API
      • Themes
      • 📙V1 Docs
        • Installation
        • API
        • Themes
    • 🔫rcore_gunshop
      • QBCore Installation
      • ESX Installation
      • How to change pricing
      • How to enable sales of weapons
      • Enabling MK2 weapons on QBCore
      • Adding the ammunation job for QBCore
      • Adding the ammunation job for ESX
    • 🎯rcore_gunrange
      • Installation
      • API
      • Troubleshooting
      • Frequently Asked Questions
      • Gun Range Editor
    • 🏨rcore_hotel
      • How to add another hotel example
      • esx_inventoryhud
      • Quasar inventory
      • OX inventory
      • MF inventory
      • Custom wardrobe
    • 🧑rcore_identity
      • How to change date format
      • esx_kasharacter
    • 🟠rcore_job_blips
      • Installation
      • Configuration
      • Blip Setup
      • Group Setup
      • API
    • ⛳rcore_minigolf
      • Builder
      • Company
      • Config
    • 🚛rcore_missionpack_legal
      • Migrate from old version
    • 🚗rcore_pdm
      • Missing images
      • Blips on minimap
      • Vehicles in stock
      • Missing vehicle names
      • Edit the speed of the vehicle in UI
      • Boss menu + locations
      • Displayed vehicle in the shop
      • How to add a vehicle with a new category
      • QBCore
        • Import missing vehicles from qbcore to rcore_pdm
        • Job data for QBCore framework
        • Import vehicles from database to qbcore
    • 🏓rcore_pingpong
      • How To Play
      • Spawning a Pong Table
      • Match Settings
    • 🤽‍♀️rcore_pool
      • Anticheat
      • How to place pool table
    • 👮rcore_police
      • Installation
      • How to Update
      • Features
      • Inventory
      • Deployer
      • Configs
        • Main Config
      • API
        • Client
        • Server
    • ⛓️rcore_prison
      • Migration from V1
      • How to Begin
      • How to Update
      • Installation
      • Inventory items
      • Configs
        • Main Config
      • Guides
        • Deployer
        • Changing minigame for Cigarette packaging
        • Changing Prison jobs reward
        • Configuring Permissions
        • How to translate in-game panel
        • How to define own stats for Prison GYM?
        • How to define/change default Prisoner outfits?
        • How to define own Prison map?
      • Features
        • Prison Break
        • Solitary
        • Cigar packaging
        • Canteen
        • Dealer
        • Dashboard
        • Chair system
        • Prison Prolog
      • Integrations
        • Inventory
        • Inventory items
      • API
        • Client
        • Server
      • ⛓️V1 Docs
        • Config
        • Inventory
        • API
          • Client
          • Server
        • Locales system
        • Interiors presets
        • Camera prolog
        • Outfits
    • 📻rcore_radiocar
      • API
        • Radio item
        • Marker for buying radio
    • 📋rcore_report
      • Installation
      • API
      • Ace Permissions
      • Config
      • UI Config
      • Features
      • Console Logs
      • Custom Data
      • Responsivity
    • 🏪rcore_shops
      • Add new shop
      • How to add weapon
      • Hide blip on minimap / map
      • Restrict shop to certain job
    • 🔠rcore_shortcuts
      • API
      • Commands and Hotkeys
      • Permissions
      • Notifications
      • Limits
      • Styles
    • ✨rcore_spray
      • ESX instalation
      • QBCore instalation
      • OX Inventory instalation
      • How to add a new image
      • How to add a new font
      • Gang integration
      • Anticheat
    • 📈rcore_stats
      • Installation
      • Permissions
      • Configs
        • Main config
        • Performance
        • Units
        • Other
      • Translation
      • Changing Default Values
      • API
        • Integration
        • Delete
        • Other
    • 👹rcore_tattoos
      • Installation
      • Migrations
      • Add-on tattoos
      • Config
      • Custom Framework
      • Design
      • Tattoo config options
      • Tattoo permissions
      • Troubleshooting
      • API
      • Integrations
        • qb-gangs
      • Business update
        • Config
        • Simple Business
        • Business with jobs
        • Default settings
    • 📺rcore_television
      • How to add a new television
    • 🔧rcore_tuning
      • Editing your config
      • Configuring your framework
      • Job integration
      • Item integration
      • Editing tuning prices
    • 📋rcore_whiteboard
      • Whiteboard type & data
      • Position editor
      • API
      • FAQ
    • 🎁rcore_xmas
      • Installation
      • Configuration
      • Inventory Items
      • Snowball Damage
      • API
    • 📻xradio
      • API
      • Custom menu
      • Ox inventory
  • free resources
    • rcore_arcade
      • How to add msdos games
Powered by GitBook
On this page
  • System overview
  • Where are language files are defined?
  • How to define own language?

Was this helpful?

  1. paid resources
  2. rcore_prison
  3. V1 Docs

Locales system

There you will find all necessary info about our locales system and how to integrated your language.

System overview

You need to define Language in config/config.lua\

How our locales looks:

return {
    ['PRISON_CHECK_ACCOUNT'] = '~INPUT_CONTEXT~ Check account',
    ['PRISON_CHECK_CANTEEN'] = '~INPUT_CONTEXT~ Check canteen',
    ['PRISON_CHECK_LOBBY'] = '~INPUT_CONTEXT~ Check lobby',
    ['PRISON_CHECK_BOOTH'] = '~INPUT_CONTEXT~ Check Booth',
    ['PRISON_CHECK_JOB'] = '~INPUT_CONTEXT~ Show activities',
    ['LOBBY_MENU_GIFT'] = 'Gift credits to Prisoner',
    ['LOBBY_MENU_INPUT_CREDITS'] = 'How much credits you like to sent?',
    ['LOBBY_MENU_INPUT_ACCOUNT_ID'] = 'Specify accountId of Prisoner',
    ['OUTFIT_SELECTION_TITLE'] = 'Prisoner clothing',
    ['OUTFIT_SELECTION_SUBTITLE'] = 'Options',
    ['OUTFIT_SELECTION_EQUIP'] = 'Equip outfit named:',
    ['PRISON_TITLE'] = 'Prison',
    ['USER_IS_NOT_IN_JAIL'] = 'User is not in Prison!',
    ['PRISONER_WELCOME_BACK'] = 'Welcome back, remaining jail time:',
    ['ACCOUNT_TRANSACTIONS'] = 'Transactions',
    ['ACCOUNT_ID'] = 'Account number',
    ['ACCOUNT_GIFTSTATE'] = 'Receive gifts',
    ['ACCOUNT_CREDIT'] = 'Account credits',
    ['ACCOUNT_OWNER'] = 'Account owner',
    ['ACCOUNT_TITLE'] = 'Prison',
    ['ACCOUNT_SUBTITLE'] = 'Informations',
    ['BOOTH_NUMBER'] = 'Number:',
    ['CANTEEN_TITLE'] = 'Canteen',
    ['CANTEEN_SUBTITLE'] = 'Selection from our canteen.',
    ['CANTEEN_PRICE'] = 'Price for piece',
    ['CANTEEN_TAKE_AMOUNT'] = 'Take piece',
    ['NOT_ENOUGH_CREDITS'] = 'You dont have enought credits.',
    ['YOU_HAVE_BOUGHT_ITEM'] = 'You have bought item named',
    ['WARDEN_TITLE'] = 'Warden',
    ['GUY_IS_ALREADY_IN_PRISON'] = 'He is already in prison, failure!',
    ['PRISON_RELEASED_STATE'] = 'You are released from Prison!',
    ['REMAINING_JAIL_TIME'] = 'Sentence time:',
    ['OUTFIT_SELECTION_TIME'] = 'Remaining time to select Prison outfit:',
    ['RECEIVED_STARTER_CREDITS'] = 'You receive credits from state in amount.',
    ['TRANSACTION'] = 'Transaction',
    ['FOR_PRICE'] = 'for price',
    ['CREDITS_LABEL'] = 'credits',
    ['YES'] = 'YES',
    ['NO'] = 'NO',
    ['ACCOUNT_RECEIVED_TRANSACTION'] = 'You received credits in amount',
    ['ACCOUNT_RECEIVED_FOR_JOB'] = 'for job',
    ['ACCOUNT_CANNOT_ACCEPT_GIFTS'] = 'This account, cannot accept gifts!',
    ['ACCOUNT_CREDITS_SENT'] = 'You sent succesfully credits:',
    ['ACCOUNT_CREDITS_FAILED_SENT'] = 'Failed to sent credits, not enough money:',
    ['COMMAND_UNJAIL'] = 'You unjailed, citizen:',
    ['BOOTH_CREDITS'] = 'Credits:',
    ['BOOTH_CALL_STATE'] = 'State:',
    ['BOOTH_INACTIVE_STATE'] = 'Inactive',
    ['BOOTH_ACTIVE_STATE'] = 'Active',
    ['BOOTH_DEPOSIT_CREDITS'] = 'You need to deposit credits, for usage.',
    ['ACCOUNT_DOESNT_EXIST'] = 'Failed to find this account, unk.',
    ['JOB_CHECK_REQUIREMENT'] = 'You need to in job to perform this command.',
    ['COMMAND_SPECIFY_TARGET'] = 'You need to define target SID.',
    ['JOB_PRISON_CHECK'] = 'You need to be prisoner to do this job.',
    ['JOB_PRISON_COOLDOWN'] = 'You cannot do this job, try to come later.',
    ['JOB_PRISON_REACH_MAX_LIMIT'] = 'You cannot do this job, there are already enough people.',
    ['JOB_PRISON_PRISONER_HAVE_JOB'] = 'You cannot do this job, you already have one',
    ['JOB_PRISON_FINISHED'] = 'Mission is finished',
    ['JOB_PRISON_FINISHED_PAYOUT'] = 'Job was finished, paying of for your time.',
    ['JOB_PRISON_NEW_JOB_OFFER'] = 'I have job for you, if you are interested come.',
    ['JOB_PRISON_NEW_JOB_DEBUG'] = 'OFFERING JOB FOR PRISONER',
    ['JOB_PRISONER_NEW_MEMBER'] = 'Oh, somebody join us to help!',
    ['JOB_CLEAN_YARD_MISSION_TEXT'] = 'Clean position marked on minimap',
    ['ACCOUNT_SUBTITLE'] = 'Details',
    ['ACCOUNT_SETTINGS'] = 'Account settings',
    ['ACCOUNT_SETTINGS_GIFTS'] = 'Gift settings',
    ['ACCOUNT_SETTINGS_FRIENDS'] = 'Friend settings',
    ['ACCOUNT_SETTINGS_ADD_FRIEND'] = 'Add friend',
    ['ACCOUNT_RECEIVED_FOR_JOB'] = 'for job',
    ['ACCOUNT_REGISTER_INPUT_CONFIRM_LABEL'] = 'You want to create account?',
    ['ACCOUNT_REGISTER_INPUT_CONFIRM'] = 'Press [Enter] for account creation.',
    ['ACCOUNT_REGISTER_SUCCESS'] = 'You created Prison account with ID.',
    ['ACCOUNT_REGISTER_FAILURE'] = 'You already got, prison account!',
    ['ACCOUNT_REGISTER_PRISONER_REQUIREMENT'] = 'You cannot create Prison account, not prisoner!',
    ['ACCOUNT_TRANSACTIONS_NOT_RECEIVED_ANY'] = 'Failed to find any transactions to your account.',
    ['ACCOUNT_REQUIREMENT'] = 'You need to have Prison account, to access this',
    ['ACCOUNT_REGISTER'] = 'Create account',
    ['ACCOUNT_CONTACT_FOUND'] = 'Found your contact named',
    ['ACCOUNT_CONTACT_ADDED'] = 'Contact was added to your list in account.',
    ['ACCOUNT_CONTACT_NOT_FOUND'] = 'Cannot found your contact! | ',
    ['ACCOUNT_CONTACT_IS_LISTED'] = 'You have this contact in your list.',
}

Default languages, which are supported by default: 'cs', 'en'

Where are language files are defined?

rcore_prison/data/locales

How to define own language?

  1. Copy one of our language templates, which are defined.

  2. Create .lua file inside data/locales that is using short label for Country ('es.lua')

  3. Define your language text entries.

  4. Refresh and restart prison script

  5. Now -> Go to configs/config.lua -> Language: 'es'

PreviousServerNextInteriors presets

Last updated 2 years ago

Was this helpful?

⛓️
⛓️