Moved item names into a separate translation file, in order to make translations easier

This commit is contained in:
Wofsauge committed 2026-01-13 18:31:20 +01:00
1 parent d3f24e321b
commit d33a9b829c
23 files changed
+21994 -1

No files matched your search

+6
View File
@@ -102,6 +102,12 @@ function EID:LoadLanguagePacks(gameVersion)
EID:WriteErrorMsg("Loading Languagepack '" .. languageCode .. "' (" .. gameVersion .. ") failed: " ..
tostring(err))
end
-- load item name lists
wasSuccessful, err = pcall(require, "descriptions.names." .. languageCode)
if not wasSuccessful and not string.find(err, "not found") then
EID:WriteErrorMsg("Loading Languagepack '" .. languageCode .. "' (Names) failed: " ..
tostring(err))
end
end
end