diff --git a/builtin/mainmenu/tab_local.lua b/builtin/mainmenu/tab_local.lua index b615eb83..fddb614d 100644 --- a/builtin/mainmenu/tab_local.lua +++ b/builtin/mainmenu/tab_local.lua @@ -15,12 +15,18 @@ --with this program; if not, write to the Free Software Foundation, Inc., --51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +local lang = core.settings:get("language") local function get_formspec() local index = filterlist.get_current_index(menudata.worldlist, tonumber(core.settings:get("mainmenu_last_selected_world"))) local creative_checkbox = core.settings:get_bool("creative_mode") and "creative_checkbox" or "blank" + local creative_bg = "creative_bg.png" + if lang and lang == "ru" then + creative_bg = "creative_bg_" .. lang .. ".png" + end + local retval = "image_button[0,4.84;3.31,0.92;" .. core.formspec_escape(defaulttexturedir .. @@ -36,11 +42,10 @@ local function get_formspec() "blank.png") .. ";play;;true;false]" .. "tooltip[play;".. fgettext("Play Game") .. "]" .. - "image_button[7.33,3.09;3.73,0.86;" .. - core.formspec_escape(defaulttexturedir) .. "creative_bg.png" .. + "image_button[7.2,3.09;4,0.83;" .. + core.formspec_escape(defaulttexturedir) .. creative_bg .. ";;;true;false]" .. - - "image_button[7.33,3.09;3.73,0.86;" .. + "image_button[7.2,3.09;4,0.83;" .. core.formspec_escape(defaulttexturedir) .. creative_checkbox .. ".png;cb_creative_mode;;true;false]" .. "tooltip[cb_creative_mode;".. fgettext("Creative mode") .. "]" .. diff --git a/textures/base/creative_bg.png b/textures/base/creative_bg.png index 7f269f65..f47fe38f 100644 Binary files a/textures/base/creative_bg.png and b/textures/base/creative_bg.png differ diff --git a/textures/base/creative_bg_ru.png b/textures/base/creative_bg_ru.png new file mode 100644 index 00000000..21716b34 Binary files /dev/null and b/textures/base/creative_bg_ru.png differ diff --git a/textures/base/creative_checkbox.png b/textures/base/creative_checkbox.png index afc0933f..add38174 100644 Binary files a/textures/base/creative_checkbox.png and b/textures/base/creative_checkbox.png differ