Skip to content

Commit

Permalink
Remove validity check from DarkRP.getPhraseLocalised
Browse files Browse the repository at this point in the history
  • Loading branch information
FPtje committed Nov 5, 2023
1 parent 8718285 commit d156914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamemode/modules/language/sh_language.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function DarkRP.getPhrase(name, ...)
end

function DarkRP.getPhraseLocalized(ply, name, ...)
local lang = IsValid(ply) and ply:GetInfo("gmod_language") or selectedLanguage
local lang = ply:GetInfo("gmod_language") or selectedLanguage
local langTable = rp_languages[lang] or rp_languages.en

return (langTable[name] or rp_languages.en[name]) and string.format(langTable[name] or rp_languages.en[name], ...) or nil
Expand Down

0 comments on commit d156914

Please sign in to comment.