Module:Lang: Difference between revisionsGive feedback
Use <br/> tag for new lines |
Added additional check for localization key ending in "postvalue_label" |
||
| Line 204: | Line 204: | ||
-- Localize | -- Localize | ||
local label = data[KEY_OVERRIDES[key] or key] | local label = data[KEY_OVERRIDES[key] or key] | ||
-- Some labels use key with "_postvalue_label" instead, so check this if previous search failed | |||
if label == nil and key ~= nil and key:sub(-6) == '_label' then | |||
local postvalue_key = key:sub(1, -7) .. '_postvalue_label' | |||
label = data[postvalue_key] | |||
end | |||
if (label == nil) then | if (label == nil) then | ||
-- Apply fallback (without HTML processing for fallback) | -- Apply fallback (without HTML processing for fallback) | ||