From 3d4e07fb8edeef5c1b99e79bbb0babb0272d0557 Mon Sep 17 00:00:00 2001 From: Gellipapa Date: Thu, 22 Jun 2023 23:27:46 +0200 Subject: [PATCH] :adhesive_bandage: fix get current resource name --- [core]/es_extended/locale.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/[core]/es_extended/locale.lua b/[core]/es_extended/locale.lua index 18120067..37c7e091 100644 --- a/[core]/es_extended/locale.lua +++ b/[core]/es_extended/locale.lua @@ -2,8 +2,7 @@ Locales = {} function Translate(str, ...) -- Translate string if not str then - local currentResourceName = GetCurrentResourceName() - print(("[^1ERROR^7] Resource ^5%s^7 You did not specify a parameter for the Translate function or the value is nil!"):format(currentResourceName)) + print(("[^1ERROR^7] Resource ^5%s^7 You did not specify a parameter for the Translate function or the value is nil!"):format(GetInvokingResource() or GetCurrentResourceName())) return 'Given translate function parameter is nil!' end if Locales[Config.Locale] then