1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

ContentDB: Add reviews tab (#15254)

This commit is contained in:
rubenwardy 2025-04-13 16:07:01 +01:00 committed by GitHub
parent 78293404c7
commit 75862e33b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 110 additions and 66 deletions

View file

@ -1,5 +1,6 @@
core.log("info", "Initializing asynchronous environment")
function core.job_processor(func, serialized_param)
local param = core.deserialize(serialized_param)
@ -7,3 +8,15 @@ function core.job_processor(func, serialized_param)
return retval or core.serialize(nil)
end
function core.get_http_accept_languages()
local languages
local current_language = core.get_language()
if current_language ~= "" then
languages = { current_language, "en;q=0.8" }
else
languages = { "en" }
end
return "Accept-Language: " .. table.concat(languages, ", ")
end