fix problems caused by weblates spacing

This commit is contained in:
metamuffin 2024-11-05 01:54:30 +01:00
parent bbbcc3e1d5
commit 3badf67851
No known key found for this signature in database
GPG key ID: 718F9749DCDBD654

View file

@ -93,7 +93,7 @@ local function load_translations(langs)
if file ~= nil then
for l in file:lines("l") do
if l ~= "" then
local key, value = string.match(l, "^([^=]+)=([^=]*)")
local key, value = string.match(l, "^([^=%s]+)%s?=%s?([^=]*)")
if key ~= nil and value ~= nil then
t["+" .. key] = value
end