Skip to content

Commit

Permalink
Merge pull request #1416 from Mycroft-Studios/main
Browse files Browse the repository at this point in the history
tweak: use txAdmin locale by default
  • Loading branch information
Arctos2win authored Oct 19, 2024
2 parents 661374f + 480d152 commit 7b646e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion [core]/es_extended/config.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Config = {}
Config.Locale = GetConvar("esx:locale", "en")

local txAdminLocale = GetConvar("txAdmin-locale", "en")
local esxLocale = GetConvar("esx:locale", "invalid")

Config.Locale = (esxLocale ~= "invalid") and esxLocale or (txAdminLocale ~= "custom" and txAdminLocale) or "en"

Config.OxInventory = GetResourceState("ox_inventory") ~= 'missing'

Expand Down
4 changes: 3 additions & 1 deletion server.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ set onesync on # Enable OneSync [REQUIRED FOR LEGACY 1.7.5 +]
set mysql_connection_string "mysql://user:password@localhost/es_extended?waitForConnections=true&charset=utf8mb4"
set mysql_ui true

setr esx:locale "en"
## Umcomment to set your own locale,
## if not, it will use the language you have selected in txAdmin.
#setr esx:locale "en"

## These resources will start by default.
ensure chat
Expand Down

0 comments on commit 7b646e6

Please sign in to comment.