diff --git a/lua/gmod_integration/client/cl_main.lua b/lua/gmod_integration/client/cl_main.lua index 1cb1ab7..e7d0581 100644 --- a/lua/gmod_integration/client/cl_main.lua +++ b/lua/gmod_integration/client/cl_main.lua @@ -17,9 +17,9 @@ end function gmInte.showTestConnection(data) if data && data.id then - gmInte.chatAddText(Color(89, 194, 89), gmInte.getTranslation("gmod_integration.chat.authentication_success", "Successfully Authenticated"), Color(255, 255, 255), gmInte.getTranslation("gmod_integration.chat.server_link", ", server linked as {1}.", data.name)) + gmInte.chatAddText(Color(89, 194, 89), gmInte.getTranslation("chat.authentication_success", "Successfully Authenticated"), Color(255, 255, 255), gmInte.getTranslation("chat.server_link", ", server linked as {1}.", data.name)) else - gmInte.chatAddText(Color(228, 81, 81), gmInte.getTranslation("gmod_integration.chat.authentication_failed", "Failed to Authenticate"), Color(255, 255, 255), gmInte.getTranslation("gmod_integration.chat.server_fail", ", check your ID and Token.")) + gmInte.chatAddText(Color(228, 81, 81), gmInte.getTranslation("chat.authentication_failed", "Failed to Authenticate"), Color(255, 255, 255), gmInte.getTranslation("chat.server_fail", ", check your ID and Token.")) end end diff --git a/lua/gmod_integration/client/cl_report_bug.lua b/lua/gmod_integration/client/cl_report_bug.lua index d0ff96c..43fa784 100644 --- a/lua/gmod_integration/client/cl_report_bug.lua +++ b/lua/gmod_integration/client/cl_report_bug.lua @@ -118,7 +118,7 @@ local function openReportBug() messagePanel:SetBackgroundColor(Color(0, 0, 0, 0)) local messageLabel = vgui.Create("DLabel", messagePanel) messageLabel:Dock(FILL) - messageLabel:SetText(gmInte.getTranslation("gmod_integration.report_bug.description.full", "Hey, your about to report a bug to the owners of this server.\nPlease provide as much information as possible to help us fix the issue.\nThank you for helping us improve the server.\n\nIf you have a issue with Gmod Integration, please use our discord server.")) + messageLabel:SetText(gmInte.getTranslation("report_bug.description.full", "Hey, your about to report a bug to the owners of this server.\nPlease provide as much information as possible to help us fix the issue.\nThank you for helping us improve the server.\n\nIf you have a issue with Gmod Integration, please use our discord server.")) messageLabel:SetWrap(true) local elements = {} for _ = 1, #Fields do diff --git a/lua/gmod_integration/shared/sh__language.lua b/lua/gmod_integration/shared/sh__language.lua index 9821ecc..d88acbe 100644 --- a/lua/gmod_integration/shared/sh__language.lua +++ b/lua/gmod_integration/shared/sh__language.lua @@ -2,7 +2,7 @@ local default = include("gmod_integration/shared/languages/sh_en.lua") local translationTable = default function gmInte.getTranslation(key, defaultTranslation, ...) local translation = translationTable[key] - if !translation then return defaultTranslation end + if !translation then translation = defaultTranslation end if ... then for i = 1, select("#", ...) do translation = string.Replace(translation, "{" .. i .. "}", select(i, ...))