Fix: possible unfound translation

This commit is contained in:
Linventif 2024-08-18 16:52:08 +00:00
parent 4085a5148c
commit cc3cfd5b3e

View File

@ -10,9 +10,11 @@ list.Set("DesktopWindows", "GmodIntegration:DesktopWindows", {
end
})
local report_bug_title = language.GetPhrase("gmod_integration.report_bug.title")
report_bug_title = report_bug_title == "gmod_integration.report_bug.title" && "Report Bug" || report_bug_title
list.Set("DesktopWindows", "GmodIntegration:DesktopWindows:ReportBug", {
icon = "gmod_integration/logo_context_report.png",
title = language.GetPhrase("gmod_integration.report_bug.title"),
title = report_bug_title,
width = 960,
height = 700,
onewindow = true,