aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorNikita Epifanov <nikgreens@protonmail.com>2020-09-10 08:58:53 +0000
committersfan5 <sfan5@live.de>2021-01-30 21:06:13 +0100
commit5871e32a842aa68b50af279e792ab8d1c47ea05f (patch)
tree1e37113fc53de4f5d311e2c231b1754b2e4690f3 /src/util
parent485e4d82a2c29d04a3b267e1de450e86b7c002a9 (diff)
downloadminetest-5871e32a842aa68b50af279e792ab8d1c47ea05f.tar.gz
minetest-5871e32a842aa68b50af279e792ab8d1c47ea05f.tar.bz2
minetest-5871e32a842aa68b50af279e792ab8d1c47ea05f.zip
Translated using Weblate (Russian)
Currently translated at 99.9% (1349 of 1350 strings)
Diffstat (limited to 'src/util')
0 files changed, 0 insertions, 0 deletions
ware Foundation, Inc., --51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -------------------------------------------------------------------------------- local function rename_modpack_formspec(dialogdata) dialogdata.mod = modmgr.global_mods:get_list()[dialogdata.selected] local retval = "size[12.4,5,true]" .. "label[1.75,1;".. fgettext("Rename Modpack:") .. "]".. "field[4.5,1.4;6,0.5;te_modpack_name;;" .. dialogdata.mod.name .. "]" .. "button[5,4.2;2.6,0.5;dlg_rename_modpack_confirm;".. fgettext("Accept") .. "]" .. "button[7.5,4.2;2.8,0.5;dlg_rename_modpack_cancel;".. fgettext("Cancel") .. "]" return retval end -------------------------------------------------------------------------------- local function rename_modpack_buttonhandler(this, fields) if fields["dlg_rename_modpack_confirm"] ~= nil then local oldpath = core.get_modpath() .. DIR_DELIM .. this.data.mod.name local targetpath = core.get_modpath() .. DIR_DELIM .. fields["te_modpack_name"] core.copy_dir(oldpath,targetpath,false) modmgr.refresh_globals() modmgr.selected_mod = modmgr.global_mods:get_current_index( modmgr.global_mods:raw_index_by_uid(fields["te_modpack_name"])) this:delete() return true end if fields["dlg_rename_modpack_cancel"] then this:delete() return true end return false end