Skip to content

Commit

Permalink
Fix bad translation function names in builtin (minetest#13977)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuzzy2 authored and kawogi committed Dec 19, 2023
1 parent 3fe05de commit 8dab728
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions builtin/mainmenu/settings/dlg_settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ local full_settings = settingtypes.parse_config_file(false, true)
local info_icon_path = core.formspec_escape(defaulttexturedir .. "settings_info.png")
local reset_icon_path = core.formspec_escape(defaulttexturedir .. "settings_reset.png")

local gettext = fgettext_ne
local all_pages = {}
local page_by_id = {}
local filtered_pages = all_pages
Expand Down Expand Up @@ -66,23 +65,23 @@ local change_keys = {

add_page({
id = "accessibility",
title = gettext("Accessibility"),
title = fgettext_ne("Accessibility"),
content = {
"language",
{ heading = gettext("General") },
{ heading = fgettext_ne("General") },
"font_size",
"chat_font_size",
"gui_scaling",
"hud_scaling",
"show_nametag_backgrounds",
{ heading = gettext("Chat") },
{ heading = fgettext_ne("Chat") },
"console_height",
"console_alpha",
"console_color",
{ heading = gettext("Controls") },
{ heading = fgettext_ne("Controls") },
"autojump",
"safe_dig_and_place",
{ heading = gettext("Movement") },
{ heading = fgettext_ne("Movement") },
"arm_inertia",
"view_bobbing_amount",
"fall_bobbing_amount",
Expand All @@ -97,7 +96,7 @@ local function load_settingtypes()
if not page then
page = add_page({
id = (section or "general"):lower():gsub(" ", "_"),
title = section or gettext("General"),
title = section or fgettext_ne("General"),
section = section,
content = {},
})
Expand All @@ -123,7 +122,7 @@ local function load_settingtypes()
elseif entry.level == 2 then
ensure_page_started()
page.content[#page.content + 1] = {
heading = gettext(entry.readable_name or entry.name),
heading = fgettext_ne(entry.readable_name or entry.name),
}
end
else
Expand Down

0 comments on commit 8dab728

Please sign in to comment.