From af474d10a43b3e430c6f083132f1f12626a03a61 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 10 Nov 2023 01:00:17 +0100 Subject: [PATCH] Fix bad translation function names in builtin (#13977) --- builtin/mainmenu/settings/dlg_settings.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/builtin/mainmenu/settings/dlg_settings.lua b/builtin/mainmenu/settings/dlg_settings.lua index f54edabb5..c3cd04f6a 100644 --- a/builtin/mainmenu/settings/dlg_settings.lua +++ b/builtin/mainmenu/settings/dlg_settings.lua @@ -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 @@ -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", @@ -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 = {}, }) @@ -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