Arivia
Browse ScriptsDownload RLIB
v3.x
v3.x
  • Introduction
  • Select Version
  • Showcase
  • Changelog
    • ◾3.0.0.6-beta
    • ◾3.0.0.5-beta
    • ◾3.0.0.4-beta
    • ◾3.0.0.3-beta
    • ◾3.0.0.2-beta
    • ◾3.0.0.1-alpha
  • FAQ
    • ◾Add Food Categories
    • ◾Addon Won't Show
    • ◾Incompatible Addons
    • ◾Custom Category Colors
    • ◾Hide Unavailable Jobs
    • ◾Modified Script
    • ◾Refunds
    • ◾Script Errors
    • ◾When Are Updates?
  • ❱ Setup
    • ◾Install
    • ◾Verify
    • ◾Workshop
    • ◾Docs/Web
  • ❱ Configuration
    • ◾Env
    • ◾Fonts
    • ◾Languages
    • ◾Settings
      • sh_4_tabs.lua
        • bUseModelImage
        • styleB
    • ◾Visual Blueprints
  • ❱ First Use
    • ◾Binds
    • ◾Console Commands
      • ▸arivia.listjobs
      • ▸arivia.getjob
      • ▸arivia.setjob
  • ❱ Developers
    • ◾Jobs
      • ▸Parameters
        • tip
        • NeedJob
        • NeedGroup
      • ▸Sorting
    • ◾Entities
      • ▸accent
      • ▸allowed
      • ▸customHideUnavail
      • ▸level
      • ▸prestige
      • ▸price
      • ▸tip
    • ◾Food
      • ▸category
    • ◾Categories
      • ▸tip
  • ❱ Internal
    • ◾Rules
    • ◾Web Demo
  • ❱ DOC REFERENCES
    • ◾Status
Powered by GitBook
On this page
  • ▸Location
  • ▸Add Language
  • ▸Set Default Language
  • ▸Switching Languages
  1. ❱ Configuration

Languages

Information related to how this addon can be translated.

▸Location

All languages included with script are located in lua\modules\arivia\lang

▸Add Language

  • Copy the lua\modules\arivia\lang\en.lua file

  • Rename copied en.lua file to your own language

    • Example: lua\modules\arivia\lang\ru.lua ( russian )

  • Open the new language file in a text editor.

  • Locate the line:

    • mod.language[ 'en' ]

  • Change the line to your new language:

    • mod.language[ 'ru' ]

  • Translate all of the strings to your own language.

▸Set Default Language

  • Open the folder lua\modules\arivia\lang\

  • Find the filename for the language you want to make as your default

  • Open lua\modules\arivia\cfg\sh_cfg.lua

  • Locate the setting cfg.lang

  • Change 'en' to your own language's filename (without the .lua at the end)

cfg.lang = 'ru' -- russian
cfg.lang = 'es' -- spanish
cfg.lang = 'fr' -- french
  • Restart your server if changes do not get applied immediately.

▸Switching Languages

You can switch languages in-game on-the-fly by typing !lang in chat.

The languages in the list are a compiled set from all the addons you own running rlib. If you own multiple scripts, but only have French translations for one; then the one addon will be translated to French and the others will default to English.

PreviousFontsNextSettings

Last updated 2 years ago

◾